Ran
|
Jobs
1
|
Files
555
|
Run time
1min
|
Badge
README BADGES
|
push
github
Migrate to Redux Toolkit part 7 (#2971) * Migrate `evalStory` handler to Stories Saga * Add Redux utils Originally done in f1cf593ac. Amended to fix some bugs with types. --------- Co-authored-by: Lee Yi <leeyi45@gmail.com> * Migrate some stories actions to use helper Type errors will be fixed later. * Migrate more stories actions to use helper * Fix old reducer/actions helper compatibility issues * Migrate new stories users handler to BackendSaga Done to align with where the action creator is located. * Migrate StoriesSaga to use helper Original implementation in bbf4f090e. Adapted to match current state of codebase. --------- Co-authored-by: Lee Yi <leeyi45@gmail.com> * Fix tests * Fix compile errors Also added a TODO for a testing util. * Remove unnecessary rootReducer creator * Fix combineSagaHandlers * Migrate SessionActions to use helper Some are left unmigrated to preserve the readability of the diff. * Remove old session types * Update tests and non-related sagas Only updated sagas that require a simple fix of the imported action types. Remaining sagas will be done in a later commit. * Fix SessionActions compatibility with ActionsHelper * Comment out most of mock backend saga To minimise potentially unnecessary development effort while pending removal decision outcome. Only commented handlers that are incompatible with the type changes. * Fix SessionReducer tests * Use action creator in components Use the action creator instead of creating the action object manually to enforce abstraction. * Migrate BackendSaga to use new helpers Intentionally done in a very specific way, mixing new and old code styles, in order to keep the diff legible for such a large migration. Further refactoring will be done in the future. * Update backend saga tests * Remove duplicate action types... (continued)
1919 of 6894 branches covered (27.84%)
Branch coverage included in aggregate %.
196 of 423 new or added lines in 13 files covered. (46.34%)
5 existing lines in 1 file now uncovered.5146 of 14691 relevant lines covered (35.03%)
20.98 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
2 |
0.0 |
0.0% | src/commons/achievement/AchievementOverview.tsx |
3 |
0.0 |
0.0% | src/commons/achievement/AchievementView.tsx |
10 |
46.67 |
src/commons/redux/utils.ts | |
12 |
39.13 |
-34.94% | src/features/stories/StoriesActions.ts |
17 |
1.61 |
-9.68% | src/commons/sagas/StoriesSaga.ts |
18 |
77.11 |
-13.49% | src/commons/application/actions/SessionActions.ts |
22 |
13.08 |
0.0% | src/commons/mocks/BackendMocks.ts |
143 |
43.14 |
-2.66% | src/commons/sagas/BackendSaga.ts |
Lines | Coverage | ∆ | File |
---|---|---|---|
5 |
43.14 |
-2.66% | src/commons/sagas/BackendSaga.ts |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 8937138713.1 | 555 |
32.73 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|