Skip to content

ID-1174 Combine loadTerraUser sam api calls into one #4844

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 20 commits into from
May 28, 2024

Conversation

Ghost-in-a-Jar
Copy link
Contributor

Jira Ticket: https://broadworkbench.atlassian.net/browse/ID-1174

New endpoint in sam: broadinstitute/sam#1414

Summary of changes:

This pr is to combine the 5 api calls the ui does to sam as it loads a terra user into 1. This should improve the speed of registration, terms of service, and login. It is also a followup from a prod incident.

What

Replace 5 sam api calls in loadTerraUser with a single one that hits a new endpoint.

Why

In general, Terra-UI is very chatty with Terra APIs. This leads to an increased risk of call failure. This change should make the ui less error prone and simplify things.

Testing strategy

I will test out the registration, tos acceptance, and login in a bee.

@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from 47f4a0c to 446e3d8 Compare May 20, 2024 19:19
@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from 5d6b49e to fe5381b Compare May 22, 2024 19:47
@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from c105f9d to e8c08c6 Compare May 22, 2024 21:34
@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from e8c08c6 to 37aee3d Compare May 22, 2024 21:55
@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from 37aee3d to 46bec17 Compare May 23, 2024 13:25
@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the ID-1174-combine-user-state-api-calls branch from d2ca63e to 2280d55 Compare May 23, 2024 14:00
Ghost-in-a-Jar and others added 2 commits May 23, 2024 11:40
@Ghost-in-a-Jar Ghost-in-a-Jar requested a review from nawatts May 23, 2024 15:46
@Ghost-in-a-Jar
Copy link
Contributor Author

My local merge did something weird and i ended up pushing up a bunch of changes to random files, then the pr requested review of a bunch of people and I cant undo it. I will probably remake the pr today.

@Ghost-in-a-Jar Ghost-in-a-Jar enabled auto-merge May 28, 2024 18:00
@Ghost-in-a-Jar Ghost-in-a-Jar added this pull request to the merge queue May 28, 2024
Copy link

Merged via the queue into dev with commit 89f42d8 May 28, 2024
10 of 11 checks passed
@Ghost-in-a-Jar Ghost-in-a-Jar deleted the ID-1174-combine-user-state-api-calls branch May 28, 2024 18:27
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.

4 participants