Skip to content

Conversation

@ShenyiCui
Copy link
Contributor

@ShenyiCui ShenyiCui commented Dec 14, 2022

Description

Add a total XP table so that admins can view the total xp of all students and download a CSV of all their total XP.

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

Checklist

  • I have tested this code

Screenshots

Screenshot 2022-12-14 at 9 52 45 AM

@coveralls
Copy link

coveralls commented Dec 14, 2022

Pull Request Test Coverage Report for Build 3870115319

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 10 of 60 (16.67%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 34.437%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/application/reducers/SessionsReducer.ts 0 1 0.0%
src/commons/sagas/BackendSaga.ts 1 5 20.0%
src/commons/sagas/RequestsSaga.ts 1 6 16.67%
src/pages/academy/xpCalculation/XpCalculation.tsx 4 44 9.09%
Totals Coverage Status
Change from base Build 3870084889: -0.1%
Covered Lines: 4581
Relevant Lines: 12376

💛 - Coveralls

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

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

Understand that there were time constraints involved hence the priority was to get things working at the time, but if you don't mind, could you take another look at the potential code quality improvements below?

@chownces chownces merged commit d47cc0e into master Jan 9, 2023
@chownces chownces deleted the feat-add-total-xp-table branch January 9, 2023 02:30
shenyih0ng pushed a commit that referenced this pull request Jan 9, 2023
* ✨ feat: add api call to redux and saga

* ✨ feat: add new Xp Calculation page

* ✨ feat: add nav-link to new page

* 🧪 tests: add academy navigation bar test

* ✨ feat: add conditional render for xp calculation

* 🧪 tests: remove unused snapshot

* use React.FC typing for component

* shift constants out of react component

* memoize callbacks as per PR comment

* remove commented out table filter code

* shift to useDispatch

* update actions to fit naming convention

Co-authored-by: En Rong <53928333+chownces@users.noreply.github.com>
@RichDom2185
Copy link
Member

As discussed offline, we will revert this. Unfortunately, this is hundreds of commits behind the main branch so we'll have to create the revert commit manually.

RichDom2185 added a commit that referenced this pull request Feb 13, 2024
RichDom2185 added a commit that referenced this pull request Feb 14, 2024
* Revert ":sparkles: feat: add total xp table (#2281)"

This reverts commit d47cc0e.

* Fix revert from conflicting changes

* Fix tests post-revert

* Update conflicting test files
* Update snapshots
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.

6 participants