Skip to content
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

Goal loading cleanup #925

Merged
merged 11 commits into from
Jan 21, 2021
Merged

Goal loading cleanup #925

merged 11 commits into from
Jan 21, 2021

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Jan 19, 2021

Cleanup and refactor:

  • Remove unused GoalSelectorScroll.
  • Remove useless goal update in CharacterInventoryActions.
  • Replace custom functions getIndexInHistory and findGoalByName with use of .find().
  • Make consistent usage of async/await with goal actions.

Bug-fix: Remove .reverse() on the goal history in the state, and only reverse what is given to the history display.

There's still some funny business with loading MergeDups (e.g. #588), so additional work is needed on general loading and advancing of multi-step goals.

This change is Reviewable

@imnasnainaec imnasnainaec self-assigned this Jan 19, 2021
@codecov-io
Copy link

codecov-io commented Jan 19, 2021

Codecov Report

Merging #925 (57c5849) into master (7f06e93) will decrease coverage by 0.57%.
The diff coverage is 74.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #925      +/-   ##
==========================================
- Coverage   50.40%   49.83%   -0.58%     
==========================================
  Files         238      234       -4     
  Lines        6660     6508     -152     
  Branches      425      406      -19     
==========================================
- Hits         3357     3243     -114     
+ Misses       2985     2961      -24     
+ Partials      318      304      -14     
Flag Coverage Δ
backend 55.47% <ø> (ø)
frontend 43.83% <74.41%> (-1.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/App/DefaultState.tsx 100.00% <ø> (ø)
...ojectScreen/CreateProject/CreateProjectActions.tsx 39.39% <0.00%> (ø)
src/rootReducer.tsx 100.00% <ø> (ø)
src/types/goals.tsx 100.00% <ø> (ø)
src/components/GoalTimeline/GoalsActions.tsx 77.61% <76.92%> (-0.17%) ⬇️
.../components/GoalTimeline/GoalTimelineComponent.tsx 68.96% <100.00%> (+0.21%) ⬆️
...harInventoryCreation/CharacterInventoryActions.tsx 17.64% <100.00%> (-7.36%) ⬇️
src/components/ContextMenu/ContextMenu.tsx 90.00% <0.00%> (+5.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f06e93...57c5849. Read the comment docs.

@imnasnainaec imnasnainaec marked this pull request as ready for review January 21, 2021 15:39
@imnasnainaec imnasnainaec added goal refactor bug Something isn't working labels Jan 21, 2021
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 17 of 19 files at r1, 3 of 3 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec merged commit 7e6c4ad into master Jan 21, 2021
@imnasnainaec imnasnainaec deleted the goal-loading-cleanup branch January 21, 2021 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working goal refactor
Projects
None yet
3 participants