-
Notifications
You must be signed in to change notification settings - Fork 174
Remove GitHub Assessments feature #2841
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
Conversation
* Remove components * Remove pages * Remove routes * Remove snapshots * Remove tests * Miscellaneous changes to other files
Pull Request Test Coverage Report for Build 8279795347Details
💛 - Coveralls |
| readonly notifications: Notification[]; | ||
| readonly googleUser?: string; | ||
| readonly githubAssessment?: MissionRepoData; | ||
| readonly githubOctokitObject: { octokit: Octokit | undefined }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm leaving this object here just in case the folders team would require it (to minimise conflicts); but if it turns out to not be needed then it can be removed in the future.
| function* githubLogoutSaga() { | ||
| if (store.getState() && store.getState().workspaces.githubAssessment.hasUnsavedChanges) { | ||
| yield call(showWarningMessage, 'You have unsaved changes!', 2000); | ||
| return; | ||
| } | ||
|
|
||
| yield put(actions.removeGitHubOctokitObjectAndAccessToken()); | ||
| yield call(showSuccessMessage, `Logged out from GitHub`, 1000); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto, I'll keep these sagas just in case (leaving them in won't break anything), but we can remove in the future if the folders team do not require them.
| // const conditionalLoader = (condition: boolean, redirectTo: string, returnValue?: any) => () => { | ||
| // if (condition) { | ||
| // return redirect(redirectTo); | ||
| // } | ||
| // return returnValue ?? null; | ||
| // }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept for future refactoring purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
* Update .env example file * Update workflows, README * Remove most GitHub Assessments-related files * Remove components * Remove pages * Remove routes * Remove snapshots * Remove tests * Miscellaneous changes to other files * Remove GitHub Assessments CSS module * Remove missed component * Remove GitHub Assessments-related types * Update test snapshots * Fix compile error
Description
Closes #2838.
Type of change
How to test
Checklist