Skip to content

Miscellaneous site crate cleanups #1029

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 8 commits into from
Sep 24, 2021

Conversation

tgnottingham
Copy link
Contributor

Miscellaneous site cleanups, including unused and duplicated code removal, increased consistency, simplification.

Follows the convention for handlers which have an associated
`api::xxx::Response` object.
This is a bit neater and enables support for the previously
non-functioning `cid` parameter on the raw profile endpoint (support
for the processed profile endpoint will be added in a later commit).
It's always false, and we don't really need to worry about backwards
compatibility with clients in the wild, so remove it.
Instead of reusing `self_profile_raw` request and response types, use
separate `self_profile_processed` types.

Also, remove `get_self_profile_raw` and use serde to deserialize
requests, which automatically enables support for the previously
non-functioning `cid` parameter.
@tgnottingham
Copy link
Contributor Author

By the way, I smoke-tested the changes locally. E.g. self profile endpoints still parse the existing query parameter formats correctly and will pass along additional parameters to crox, etc.

@Mark-Simulacrum
Copy link
Member

Looks good to me. Let's merge this in, and we can always fix any issues that come up.

Thanks!

@Mark-Simulacrum Mark-Simulacrum merged commit b3b52c5 into rust-lang:master Sep 24, 2021
@tgnottingham tgnottingham deleted the server-cleanup branch September 25, 2021 17:16
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