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

bug/FP-896: Fix add definition to list #342

Merged
merged 4 commits into from
Feb 5, 2021

Conversation

rstijerina
Copy link
Member

@rstijerina rstijerina commented Feb 4, 2021

Overview:

Fixes adding definitions to the state.definitions.list via the addSystemDefinition function in datafiles.reducers.js.

Related Jira tickets:

Summary of Changes:

Testing Steps:

  1. Click "View Path" on a file and ensure it works correctly. (Before this PR the app would crash after clicking the button)

@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #342 (26ec79a) into main (a9756fb) will increase coverage by 0.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #342      +/-   ##
==========================================
+ Coverage   63.06%   63.45%   +0.38%     
==========================================
  Files         371      186     -185     
  Lines       11281     4520    -6761     
  Branches     1868     1140     -728     
==========================================
- Hits         7114     2868    -4246     
+ Misses       3864     1538    -2326     
+ Partials      303      114     -189     
Flag Coverage Δ
javascript 63.45% <100.00%> (+0.16%) ⬆️
unittests ?

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

Impacted Files Coverage Δ
client/src/redux/reducers/datafiles.reducers.js 14.92% <ø> (+10.44%) ⬆️
...c/redux/sagas/fixtures/systemDefinition.fixture.js 100.00% <100.00%> (ø)
server/portal/apps/licenses/admin.py
...rtal/apps/notifications/migrations/0001_initial.py
server/portal/apps/projects/urls.py
...ortal/apps/workspace/managers/user_applications.py
server/portal/apps/workspace/apps.py
server/portal/apps/accounts/managers/abstract.py
server/portal/apps/tickets/rtUtil.py
server/portal/apps/auth/apps.py
... and 180 more

Copy link
Member

@nathanfranklin nathanfranklin left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing.

Do we need a ticket for handling these unhandled exceptions in our reducers? I'll create that as we've seen this with different regressions. EDIT: @rstijerina added ticket https://jira.tacc.utexas.edu/browse/FP-900

I've also added a note to cover these reducers with unit tests during some planned refactor in https://jira.tacc.utexas.edu/browse/FP-872 but see you have already started that! 💯

@rstijerina
Copy link
Member Author

Merging, pipelines were working before poetry broke itself

@rstijerina rstijerina merged commit a04f7a5 into main Feb 5, 2021
@rstijerina rstijerina deleted the fix/FP-866--add-system-definition branch February 5, 2021 18:53
wesleyboar pushed a commit that referenced this pull request Jan 7, 2022
* fix add definition to list

* add system def list unit test

Co-authored-by: Owais Jamil <47395902+owaisj@users.noreply.github.com>
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.

4 participants