-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(amplify): make GraphQLOperationType extends from String #3719
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## flutter-datastore-v2 #3719 +/- ##
========================================================
+ Coverage 68.46% 68.65% +0.19%
========================================================
Files 1078 1078
Lines 37552 37552
========================================================
+ Hits 25709 25783 +74
+ Misses 11843 11769 -74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
lawmicha
approved these changes
May 29, 2024
9 tasks
5d
added a commit
that referenced
this pull request
Jun 3, 2024
…LBehavior (#3666) * WIP * DataStore compiles without SDK dependency * refactor(datastore-v2): use api plugin with async sequences * change to use Publisher operators for auth type streams * add nondeterminsitc operation for better testability * fix unit test cases * fix broken unit test cases of AWSAPIPlugin * fix broken AWSDataStorePlugin unit test cases * fix OutgoingMutationQueue test case * remove unused methods * fix broken test cases of SyncMutationToCloudOperationTests * fix broken unit test cases of API and DataStore * resolve plugins build issues (#3654) * remove lock from SyncMutationToCloudOperation * remove test case of retryable for signOut error * resolve comments * fix(datastore): propagate remote mutationEvents to Hub for sync received (#3697) * rename the package to InternalAmplifyCredentials * rewrite NondeterminsticOperation constructor with makeStream * resolve broken test case after merging latest orgin/main * feat(amplify): make GraphQLOperationType extends from String (#3719) * refactor(datastore): new enum to represent inferred and designated authType (#3694) * refactor(datastore): new enum to represent inferred and designated auth type * resolve failed multi auth integ tests * resolve comments * fix(datastore): use error description to produce clearer error info (#3733) --------- Co-authored-by: Michael Law <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #
During the
amplify-flutter
migration to datastore v2, and with SPM not yet supported by the Google Flutter framework, the Amplify Flutter team needs to copy datastore v2 and its dependency packages into the Flutter repository and build for theamplify-flutter
project. TheGraphQLOperationType
data structure appears in both theAmplify
package and theAmplifyPluginsCore
package, causing a name collision. This issue did not arise in the Swift package due to different package namespaces, but it is problematic in amplify-flutter as all the code shares the same namespace.Description
In this PR, we propose a solution to retain the
GraphQLOperationType
declaration in theAmplify
package and extend it with a String value. The declaration in theAmplifyPluginsCore
package is removed, as it is an internal package.Is this a breaking change?
Removing the public declaration of GraphQLOperationType in the AmplifyPluginsCore package
This should not be considered a breaking change, as AmplifyPluginsCore is an internal package.
Adding a String value to the existing public declaration of GraphQLOperationType in the Amplify package
It is unclear if this qualifies as a breaking change. While adding a String value is generally considered an additive change, it does alter the definition of the public data structure.
General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.