Skip to content

Conversation

@RichDom2185
Copy link
Member

Description

Closes #2838.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Checklist

  • I have tested this code
  • I have updated the documentation

@RichDom2185 RichDom2185 requested a review from chownces March 14, 2024 11:11
@RichDom2185 RichDom2185 self-assigned this Mar 14, 2024
@RichDom2185 RichDom2185 requested a review from sayomaki March 14, 2024 11:11
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8279795347

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 4 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.5%) to 38.462%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/mobileWorkspace/MobileWorkspace.tsx 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/commons/navigationBar/NavigationBar.tsx 1 68.82%
src/commons/sideContent/content/githubAssessments/SideContentEditableTestcaseCard.tsx 1 0.0%
src/commons/sideContent/content/githubAssessments/SideContentTaskEditor.tsx 1 0.0%
src/commons/sideContent/content/githubAssessments/SideContentMarkdownEditor.tsx 1 0.0%
Totals Coverage Status
Change from base Build 8246132849: 0.5%
Covered Lines: 5680
Relevant Lines: 13831

💛 - Coveralls

@RichDom2185 RichDom2185 marked this pull request as ready for review March 15, 2024 00:46
@RichDom2185 RichDom2185 requested a review from martin-henz March 15, 2024 00:46
readonly notifications: Notification[];
readonly googleUser?: string;
readonly githubAssessment?: MissionRepoData;
readonly githubOctokitObject: { octokit: Octokit | undefined };
Copy link
Member Author

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.

Comment on lines 60 to 63
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);
}
Copy link
Member Author

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.

Comment on lines +17 to +22
// const conditionalLoader = (condition: boolean, redirectTo: string, returnValue?: any) => () => {
// if (condition) {
// return redirect(redirectTo);
// }
// return returnValue ?? null;
// };
Copy link
Member Author

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.

Copy link
Member

@martin-henz martin-henz left a comment

Choose a reason for hiding this comment

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

Looks good!

@martin-henz martin-henz merged commit 18a4880 into master Mar 15, 2024
@martin-henz martin-henz deleted the remove-gh-assessments branch March 15, 2024 01:18
CYX22222003 pushed a commit that referenced this pull request Mar 22, 2024
* 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
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.

Remove Github Assessments feature

4 participants