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

MNTOR-3155 - Add dev-admin-only server action to look up fxa uid by email address #4574

Merged
merged 3 commits into from
May 22, 2024

Conversation

rhelmer
Copy link
Collaborator

@rhelmer rhelmer commented May 22, 2024

References:

Jira: MNTOR-3155

Description

PR #4573 changed the admin/user API to look up by FxA UID instead of email address, but I didn't make the equivalent change to the local-dev-only admin/dev UI. This adds a local-dev-only, admin-only server action to look up the fxa UID for the sha1 hash of an email address.

This isn't the most efficient way to do things since it's introducing another round-trip to the server. We might consider as a follow-up just moving all the server-side work into a server action and not using the API, but on the other hand it's nice to have the client exercise the API.

How to test

Use the local-dev-only admin/dev UI to look up a user and perform actions on the account.

Checklist (Definition of Done)

@rhelmer rhelmer requested a review from mansaj May 22, 2024 00:14
@rhelmer rhelmer self-assigned this May 22, 2024
Copy link

@rhelmer rhelmer requested a review from Vinnl May 22, 2024 03:28
Copy link
Collaborator

@Vinnl Vinnl left a comment

Choose a reason for hiding this comment

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

Yeah, this looks like a fine solution to me. I think we'll survive the extra roundtrip :)

@rhelmer rhelmer merged commit aa3507f into main May 22, 2024
15 checks passed
@rhelmer rhelmer deleted the MNTOR-3155/lookup-users-by-fxa-uid-dev-admin branch May 22, 2024 13:52
Copy link

Cleanup completed - database 'blurts-server-pr-4574' destroyed, cloud run service 'blurts-server-pr-4574' destroyed

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