Repository navigation
[bot] Merge master/99b56b21 into rel/dev - #1995
Merged
Merged
Conversation
The backend declares object-level grants on metrics and visualization objects in the analytics layout, and reads and writes the grants a child workspace gives on inherited objects as metricExtensions and visualizationObjectExtensions (F1-2984). The declarative models had none of these fields, and from_dict discards unknown keys, so a layout loaded through the SDK lost the grants without an error and the PUT left the objects with the default workspace-wide view. Metrics and visualization objects get an optional `permissions`, and the analytics layer gets the two extension lists. All four default to None and are left out of the payload when unset, because the backend reads a missing property as "keep the existing grants" and an empty list as "remove them". On disk each extension list is a folder with one file per object, and the folder stands for the list: no folder is None, a folder is a list. An empty list is stored as a folder holding only a .gitkeep, since git does not track an empty folder and the list would come back from a clone as None, turning "remove the grants" into "keep them". Storing replaces the folder, so files of an earlier store are not sent with the current ones. jira: F1-2944 risk: low
…issions feat(gooddata-sdk): carry metric and visualization grants in layouts
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## rel/dev #1995 +/- ##
===========================================
+ Coverage 88.09% 88.12% +0.03%
===========================================
Files 361 361
Lines 30204 30294 +90
===========================================
+ Hits 26608 26698 +90
Misses 3596 3596 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
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.
🚀 Automated PR to perform merge from master into rel/dev with changes up to 99b56b2 (created by https://github.com/gooddata/gooddata-python-sdk/actions/runs/45639457863).