Skip to content
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

Introduce definitions and simplify structure #11

Merged
merged 28 commits into from
Oct 29, 2024

Conversation

cristian-recoseanu
Copy link
Contributor

@cristian-recoseanu cristian-recoseanu commented May 14, 2024

  • removal of property traits
  • introduction of restore modes
  • document two restore scenarios for fixed/dynamic devices
  • introduce the rebuildable concept
  • update relevant diagrams

cristian-recoseanu and others added 20 commits May 21, 2024 10:50
Remove normative language

Co-authored-by: jonathan-r-thorpe <[email protected]>
Remove normative language

Co-authored-by: jonathan-r-thorpe <[email protected]>
Remove normative language

Co-authored-by: jonathan-r-thorpe <[email protected]>
Fix type for "selective"
- complete / incomplete restore are statuses/outcomes
- selective restore is a user choice/action
to change text to use "Incomplete restore"
Remove allowPartial as it is not an argument for validation.
Remove examples reference
To mention property exceptions have to be returned when validating or restoring and the status returned is 206
by
- reducing definitions
- adding a General concepts section
- refocusing the scenarios described on actual possible user scenarios (starting with one and more to be added later)
To be more generic in the use of validation fingerprint.
We're proposing the following changes:
- changing NcObjectPropertiesSetValidation: exceptions to "notices"
- changing NcPropertyRestoreException to NcPropertyRestoreNotice
- adding an enum NcPropertyRestoreNoticeType = { Warning, Error } which means adding the NcPropertyRestoreNotice: noticeType property
- removing NcRestoreValidationStatus: PartiallyOk
- changing NcRestoreValidationStatus: InvalidData to "Failed"
- removing NcRestoreValidationStatus: MissingDependency as these are now reported at property level using notices
- removal of propertyTraits
- introduction of restoreMode
- document two restore scenarios for fixed/dynamic devices
- update relevant diagrams
To swap dynamic/fixed scenarios around as some of the diagrams are specific to the dynamic scenario
Comment on lines +86 to +90
Retrieving properties through the `bulkProperties` endpoint allows a user to perform a `full backup` or a `partial backup`.

A `full backup` is a [backup data set](Backup%20&%20restore.md#definitions) returned by a `GET` operation on the `/bulkProperties` endpoint of the root block with the `recurse` parameter set to true.

A `partial backup` is a [backup data set](Backup%20&%20restore.md#definitions) returned by a `GET` operation on the `/bulkProperties` endpoint of any object of the device model, other than the root block. A partial backup can also be obtained by a `GET` operation on the `/bulkProperties` endpoint of the root block with the `recurse` query parameter set to false; however this will only result in a backup of the root block only.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full backup and partial backup are redefined in the Backup and Restore document. Can they be deleted here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we struggled a bit with this. In this document the backup is explained with regards to how it is achieved by interacting with the API whereas in the other document it is explained with regards to the contents of the backup data set. They both link to each other. I don't think we can remove one or the other without moving that part of the explanation as well?

Add PR review suggestion

Co-authored-by: jonathan-r-thorpe <[email protected]>
@TheSaneWonko TheSaneWonko merged commit 421ca63 into publish-backup-restore Oct 29, 2024
3 checks passed
@cristian-recoseanu cristian-recoseanu deleted the publish-backup-restore-revision branch October 29, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants