Skip to content

feat(oauth): restore update flow and handle new inbound members#314

Open
codingLogan wants to merge 5 commits intomasterfrom
lr/CTT-178
Open

feat(oauth): restore update flow and handle new inbound members#314
codingLogan wants to merge 5 commits intomasterfrom
lr/CTT-178

Conversation

@codingLogan
Copy link
Copy Markdown
Collaborator

https://mxcom.atlassian.net/browse/CTT-178

This re-introduces the "update" path for OAuth members. See the above internal Jira for more details

@codingLogan codingLogan marked this pull request as ready for review May 1, 2026 18:37
Comment thread src/__tests__/ConnectWidget-test.tsx Outdated
Comment thread src/__tests__/ConnectWidget-test.tsx Outdated
Comment thread src/utilities/testingLibrary.tsx
Comment thread src/views/oauth/__tests__/OAuthStep-test.tsx
@wesrisenmay-mx
Copy link
Copy Markdown
Collaborator

This kind of a change makes me really wish we had better E2E tests.

}

function handleOAuthSuccess(memberGuid) {
function handleOAuthSuccess(memberGuid, member = null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think it would be clearer if we explicitly distinguished between the inbound member and the original member here. Better naming would make the flow easier to follow and maintain for future devs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The memberGuid and the member are always going to be related to each other. If member is populated we can update our store with that data for that memberGuid. It may be the outbound or inbound member in other words.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Okay, so does that mean we can’t tell which one is which at this point?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From what I can see in the code, memberGuid looks like it's a different member that may be returned from the backend during the OAuth process, while member is the original member. Might be worth renaming these to make the distinction clearer, since the current names are a bit ambiguous.

Comment thread src/__tests__/ConnectWidget-test.tsx
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.

3 participants