-
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
Detected multiple owner type auth rules with a READ operation. #1590
Comments
Hi @TimmBaier, |
If I have the env deployed with the schema above, just comment out the second owner locally and generate the swift code with |
What if I need the second owner? |
Unfortunately dynamic auth rules like array of owners aren’t fully compatible with DataStore at the moment as subscriptions with multiple owner rules require extra support from the service, therefore we'll need to hold off a bit on the PR. |
Hi @diegocstn. Thanks for the reply. Is there a workaround? Our product relies on multiple owners, without this we cannot launch, ever. |
Any update on this one? Our project is still stuck. |
I too am looking for this feature. After finally figuring out the right way to handle this I got hit by this error with subscriptions. I filed an issue #10110 that talks about what use case I'm seeking BUT the relevant info related to this issue is in my first comment which speaks to exactly this. |
You mentioned "subscriptions", what if we do not use subscriptions? As far as I can see the iOS SDK fails with the presence of arrays without initiating any subscriptions. |
With this finally released for AppSync, https://aws.amazon.com/blogs/mobile/appsync-enhanced-filtering/ |
Any update? |
We do also require the feature to have multiple owner type auth rules to share data from the "creator" of the record to many different read-users. The auth rules look like this:
Is there any update by when this will be available? |
@dnys1 this is the same issue I reported to you way back in November of 2021, correct? I know there are a few issues open on this, do any of them have additional information that may be useful to @bflatone and myself? I'm still looking to implement multiple owner records with subscriptions using DataStore. Please advise and thanks for your continued help. |
Any progress? |
I'm looking at this stuff as we speak. I uncovered this re:Invent video last night and this looks promising. The video link below is at the current time of the auth rules that coincide to the ones I need for my project. They talk about real-time sync between customer order and the driver flutter app so this all seems very promising. FYI, they are using BETA flutter plugins. |
Bumping for an update |
Any progress? |
Any update on this, we have a similar use case? |
I believe the changes to enable this use case was merged in from #3223 Please try with the latest Amplify version and let us know in a new issue with your schema use case if something isn't working. |
|
Describe the bug
I have this schema:
When I use DataStore I can query and create Profiles, but I can't update Profiles and get following warning:
Is it correct, that the use case above is not possible with amplify (DataStore) on iOS, or do anyone have an idea what I'm doing wrong?
Steps To Reproduce
Expected behavior
I should be able to update models that have two owner types defined.
Amplify Framework Version
1.18.1 (2021-12-15)
Amplify Categories
DataStore
Dependency manager
Swift PM
Swift version
5.0
CLI version
7.6.5
Xcode version
13.2.1
Relevant log output
No response
Is this a regression?
No
Regression additional context
No response
Device
iPhone 12 simulator
iOS Version
iOS 15.2
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: