Repository navigation
PB-15775: Drop 14 fields, move the per-run record - #466
Merged
Merged
Conversation
A field review found fields a reader can derive, fields in the wrong object, and a tier check a caller can bypass. Dropped, each reserved by number and by name: - AdminScopeInfo tier, granted_time and last_committed_time, and MaterializedResourceSet materialized_time. The service has only two write paths and both set Metadata create_time and last_update_time to the same instant, so the pair could never differ - DelegationRuleInfo delegate_tier. The check compared a value the caller sent, and was skipped when nothing was sent, so a caller could claim a low tier and pass. The server now reads each delegate's tier from the identity - DelegationRuleInfo include_future_children. The kind of the granted resource decides this, so a flag could only make it wrong - DerivedSchedule CR names and uid, and BindingInfo backup_schedule_uid. BindingInfo already reserved its own CR names as a digest of schedule_key - RecoveryPointInfo accessible. A caller is shown only the points of resources they can see, so filtering answers it - ProtectionIntent Classification, an enum with no field left Moved to RecoveryPointInfo, which is the only per-run object: - hook_revision off BindingInfo, plus new origin and hook_outcome, because every run must record all three - The SLA Policy and its revision off BackupInfo, which one shared backup cannot hold for a whole schedule group Added: - BindingInfo vsc_overrides, so a Binding Rule's vsc_override_template has somewhere to land - PlacementAssignmentInfo elevations, replacing a single string the next elevation overwrote - preview_token on the AdminScope create and update responses. The commit requires one and no call returned it - repeated delegate_ids, because one delegation names several users Also removed every journey reference from the comments.
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.
A field review found fields a reader can derive, fields in the wrong object, and a tier check a caller can bypass.
Dropped, each reserved by number and by name:
Moved to RecoveryPointInfo, which is the only per-run object:
Added:
Also removed every journey reference from the comments.
What this PR does / why we need it:
Which issue(s) this PR fixes (optional)
Closes #
Special notes for your reviewer: