-
Notifications
You must be signed in to change notification settings - Fork 62
[nexus] Add TUF repo list endpoint, make other endpoints conventional #9106
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
36 commits
Select commit
Hold shift + click to select a range
5f8076c
update status endpoint
david-crespo f3b99a2
delete target_release_view, rework TargetRelease
david-crespo 37ba90f
avoid _ in match, avoid future surprises
david-crespo 1f82889
Option -> Nullable, helpful doc comment
david-crespo e2bb69e
merge main
david-crespo be43a1f
merge main
david-crespo 3ca18a7
address dave's comments: docs, add paused field
david-crespo 321374d
get current target blueprint from watch channel
david-crespo a2d6054
avoid redundant tuf repo retrieval
david-crespo d8e1e82
merge main
david-crespo 5ab24ec
tuf repo list endpoint
david-crespo 324aeed
add integration test for tuf repo list
david-crespo 350c44c
switch to paginating by version
david-crespo 0708c53
do artifacts fetch in a single query (still bad)
david-crespo 442e9e1
try doing views::TufRepo
david-crespo 8cc58c1
replace TufRepoInsertResponse with views::TufRepoUpload (tests fail)
david-crespo 0ddef05
add lockstep endpoint for listing artifacts for a repo
david-crespo 78373e2
make repo upload test pass using artifacts endpoint
david-crespo 5cfe2b3
fetch artifacts directly from datastore, no endpoint required
david-crespo 23a785b
never mind about that lockstep endpoint
david-crespo 9e33fc9
make repo get and put endpoints more conventional
david-crespo de3c39e
self-review fixes
david-crespo 9365744
no reference to "external" types in external API call tree
david-crespo 4a9d869
remove targets_role_version and valid_until from TufRepo view, add ti…
david-crespo d73c2fe
make diff slightly smaller
david-crespo 7693a68
use our own channel watcher instead of the quiesce handle
david-crespo e804964
address more comments from dave, including <= bug
david-crespo 273058f
time_last_blueprint -> time_last_step_planned
david-crespo 99f5d98
paused -> suspended
david-crespo 576581d
a couple of helpful suggestions from gpt-5
david-crespo 17b2ce7
merge update status PR
david-crespo 894bef9
address dave's comments
david-crespo 6293043
use view struct directly for datastore upload status
david-crespo 9f004f6
delete unused tuf_list_repos, test pruned filtering
david-crespo a831883
merge main, tweak a couple more doc comments
david-crespo 4d204b0
get repo should 404 on pruned repos
david-crespo 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
I kinda thought I already had this, but I guess not. We can sort by version because we store the version in the DB as a lexicographically-sortable string. Thanks, 2023 me.
omicron/nexus/db-model/src/semver_version.rs
Lines 48 to 65 in 504ffcd