-
Notifications
You must be signed in to change notification settings - Fork 51
feat: storage box api changes #745
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2e5d33c
feat(storage-box): allow sorting in list opt
lukasmetzner 2510f6f
feat(storage-box): stats not nullable
lukasmetzner bcbbebc
refactor(storage-box): make username required nullable
lukasmetzner f1c6777
feat(storage-box): access settings can be omitted in create opts
lukasmetzner 861ff78
feat(subaccount): query by username and sort parameters
lukasmetzner 40cd3ca
feat(snapshot): sort list and filter by is_automatic
lukasmetzner e9ec3c2
refactor(snapshot): remove todo as preimplemented api change in hclou…
lukasmetzner 46e6809
feat(storage-box): make name optional in update opts
lukasmetzner 2064044
style(schema-gen): group interface methods
lukasmetzner 10fb71f
feat(storage-box): create opts location id or name
lukasmetzner d0e358a
feat(subaccount): remove home directory from access settings
lukasmetzner fc565e5
feat(subaccount): change home directory action
lukasmetzner f131c1a
feat(subaccount): get by username and get by id or username
lukasmetzner eb10d53
docs: missing schema docstrings
lukasmetzner fc7f2ce
feat(storage-box): accept snapshot id or name for rollback action
lukasmetzner d0609ae
docs: add relative links to types
lukasmetzner a02dfa1
docs(storage-box): missing schema docstrings
lukasmetzner 891f12d
fix(subaccount): home directory should be required
lukasmetzner 9830b68
test: improve test coverage
lukasmetzner 88e0f31
fix(storage-box): remove pointer from name in update call
lukasmetzner 9694b91
feat(snapshot): allow labels in create opts
lukasmetzner ac0c7d3
refactor(storage-box): simplify tests (#746)
lukasmetzner 97ff733
feat(storage-box): require minute and hour
lukasmetzner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change feels backward. The fields in update requests will become optional for all three resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pointer was orignally there, because the API allowed empty strings to be set as a Storage Box name. This won't be the case in the future and an empty name will be ignored.
I thought this makes it somewhat easier to the user, as a pointer is not required.
We have a mixed pattern in the codebase, so I was unsure what the best option is. Both are fine for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer without pointer, reduces the complexity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apricote I would go ahead and merge this now, to proceed with the other review points in the main PR. We can discuss this topic there again, if you want.