Skip to content

Refactor rest api and manager services in spa#2268

Merged
gxueatlassian merged 4 commits intomainfrom
NONE-cleanup-spa-api
Jul 21, 2023
Merged

Refactor rest api and manager services in spa#2268
gxueatlassian merged 4 commits intomainfrom
NONE-cleanup-spa-api

Conversation

@gxueatlassian
Copy link
Copy Markdown
Contributor

What's in this PR?
Refactor the rest api.

Why
Right now, due to the location of github token, everything needs to sit within the OAuthManager service, even things like fetchOrgs unrelated to oauth.
I want to split the managers, and this will require the github token stored within the axios instances.

Added feature flags
N/A

Affected issues
Jira Issues

How has this been tested?
Unit test
Local

Whats Next?

@gxueatlassian gxueatlassian marked this pull request as ready for review July 21, 2023 02:16
@gxueatlassian gxueatlassian requested a review from a team as a code owner July 21, 2023 02:16
gitHubToken = newToken;
}

const hasGitHubToken = () => {
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.

/nit

Suggested change
const hasGitHubToken = () => {
const hasGitHubToken = () => !!gitHubToken

@gxueatlassian gxueatlassian enabled auto-merge (squash) July 21, 2023 03:59
@gxueatlassian gxueatlassian merged commit e60fdc9 into main Jul 21, 2023
@gxueatlassian gxueatlassian deleted the NONE-cleanup-spa-api branch July 21, 2023 04:08
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