Skip to content

PUT /me/token: Remove unused revoked field from response payload #6316

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 1 commit into from
Apr 13, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 12, 2023

The revoked field is not used by the frontend, and the only API endpoint that returns the revoked field is the one that creates a brand new token, in which case it makes no sense for the token to be immediately revoked.

This is technically a breaking change, but since this endpoint is only meant to be used by the frontend when creating new tokens via the user interface the risk of breaking something should be fairly small.

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Apr 12, 2023
The `revoked` field is not used by the frontend, and the only API endpoint that returns the `revoked` field is the one that creates a brand new token, in which case it makes no sense for the token to be immediately revoked.

This is technically a breaking change, but since this endpoint is only meant to be used by the frontend when creating new tokens via the user interface the risk of breaking something should be fairly small.
@Turbo87
Copy link
Member Author

Turbo87 commented Apr 13, 2023

The cargo team confirmed on Zulip that they are okay with this change, so I'll go ahead and merge this :)

@Turbo87 Turbo87 merged commit ff14a57 into rust-lang:master Apr 13, 2023
@Turbo87 Turbo87 deleted the remove-revoked branch April 13, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant