-
Notifications
You must be signed in to change notification settings - Fork 23
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
"fields" and "additional_fields" ignored in sync/config.json #327
Comments
Hi, Do you mind linking the URL to your app (looks like Jonathan |
Hi @jonatlee Here's my app PS: forgot to mention I'm using realm-cli v 2.6.2 |
Hey, I took a look and tested this out on my own app, and was able to reproduce the same behavior (ie, field-level permissions silently getting ignored in pushing/pulling the app). I've filed a ticket to resolve this -- thank you for alerting the team of this issue. As an FYI, this way of setting permissions is becoming deprecated in the near future (within the next few releases). The new system that we are introducing will merge in these permissions with the Rules that are defined in the "Rules" page, with the idea being that the set of permissions defined there will be the single source of truth for all app services involving a MongoDB cluster (GraphQL, Flexible Sync, DataAPI, etc.) Jonathan |
Thank you @jonatlee 🙏 Hope it'll get fixed soon. Regarding the new rules, is it something that we should already start to implement ? I noticed the new "rules" tab on the App Services UI but there is still a textbox in the device sync section to set rules |
Hi @RenaudAubert, we will be performing a migration to handle moving everything over; no additional action items will be necessary from your end. At this time, if you want to modify your permissions, please continue to use the permissions JSON editor in the Device Sync configuration page. Jonathan |
Hi!
I have permissions for a type object and default rules. I've deployed these changes using web UI and it works great.
The problem is when I try to pull the changes made in the UI using realm-cli the fields "fields" and "additional_fields" are not included same if I add them in my code and then push using cli.
Here's what I have
And here's what I get if I pull
I thought it might be the cli or app services simplifying my rules because they were unnecessarily complex but after testing my version is working as expected wheras the one with missing field is not what I want.
The text was updated successfully, but these errors were encountered: