-
Notifications
You must be signed in to change notification settings - Fork 119
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
NullPointerException on isReadRestrictingStaticGroup when using dynamic group authorization #1574
Comments
I imagine it has something to do with a known limitation that is mentioned in the new documentation:
Nonetheless, pretty disappointing. |
Hi @ObeA, what jwshyns has said above is correct, and agreed that this is a pretty disappointing user experience. In the immediate future this is not supported, but we are looking at ways to unblock use cases like this this year. |
With this finally released for AppSync, https://aws.amazon.com/blogs/mobile/appsync-enhanced-filtering/ |
@djorgji Our plan for the functionality mentioned in that comment includes providing some mechanism to pass server-side sync metadata up from the client, but the DX for that and associated API changes haven't been designed yet from a DataStore perspective. We are, however, tracking that as part of our support model across Amplify for enhanced server-side filtering. I believe this should remove the primary technical blocker to dynamic group subscription filtering, but will tag this to the project so we evaluate this use-case as part of the design process. |
@alharris-at Thank you for the reply! I am excited for the update, it is validating our choice to pick AWS Amplify and stick out through the limitations. Ideally from a security, scalability and optimization perspective running dynamic group filtering, and running sync expressions (or a similar mechanism) in the backend, would be amazing. Please keep us updated. |
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
DataStore
Gradle script dependencies
I'm not really sure. Dependencies are transient via amplify-flutter.
pubspec.yaml
Environment information
Please include any relevant guides or documentation you're referencing
https://docs.amplify.aws/cli/graphql-transformer/auth/#dynamic-group-authorization
Describe the bug
I'm trying to use Datastore via Amplify Flutter on a schema with a dynamic group authorization rule. After configuration the app immediately throws a
NullPointerException
onisReadRestrictingStaticGroup
. I'm opening the issue in this repo because it seems to be coming from this codebase.Reproduction steps (if applicable)
No response
Code Snippet
Repo with minimal repro (Flutter required)
Log output
amplifyconfiguration.json
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: