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

server: Add /debug/package/<id> endpoint #174

Closed
wants to merge 6 commits into from
Closed

Conversation

lann
Copy link
Collaborator

@lann lann commented Jul 25, 2023

This dumps a package's log and derived (validated) state as a debugging tool.

Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

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

Just the one minor nit.

@@ -18,18 +35,144 @@ impl Config {
pub fn into_router(self) -> Router {
Router::new()
.route("/packages", get(list_package_names))
.route("/package/:name", get(get_package_info))
Copy link
Member

Choose a reason for hiding this comment

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

Nit: while name is pretty synonymous with package id, perhaps this just for clarity?

Suggested change
.route("/package/:name", get(get_package_info))
.route("/package/:package_id", get(get_package_info))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, I even changed it in the function signature...

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.

2 participants