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/WP-249 Shared Workspace Copy Bug Fix #858

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

shayanaijaz
Copy link
Contributor

Overview

The goal for this was to fix a bug where no backend requests were sent when doing a file copy operation from a private system to a shared workspace.

Upon further investigation this bug seems to stem from a previous PR bug/FP-1567. In that PR a side effect was added that cleared the data file selection whenever a shared workspace listing happened to fix a toolbar bug that was occurring. Due to this, when a file is selected for copy and the user selects a shared workspace to copy it to, the getProjectsListing saga clears the selected file in the state, and since there is no file to copy anymore no backend request was made when the copy button is clicked.

Related

Changes

  • Added a modal param to the payload in DataFilesProjectsList saga that indicates whether or not a modal is active
  • Added a condition in getProjectsListing saga where the DATA_FILES_CLEAR_FILE_SELECTION side effect isn't run when a modal is active

Testing

  1. Go to a private system and select a file to copy
  2. Select a shared workspace to copy the file to
  3. Click Copy and ensure that the operation successfully completes

UI

No UI changes

Notes

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #858 (49367ee) into main (ab5b772) will decrease coverage by 0.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
- Coverage   63.08%   63.07%   -0.01%     
==========================================
  Files         427      427              
  Lines       12148    12150       +2     
  Branches     2490     2492       +2     
==========================================
+ Hits         7663     7664       +1     
- Misses       4280     4281       +1     
  Partials      205      205              
Flag Coverage Δ
javascript 68.88% <66.66%> (-0.01%) ⬇️
unittests 57.31% <ø> (ø)

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

Files Changed Coverage
...s/DataFiles/DataFilesModals/DataFilesCopyModal.jsx 0.00%
...es/DataFilesProjectsList/DataFilesProjectsList.jsx ø
client/src/redux/sagas/projects.sagas.js 100.00%

@shayanaijaz shayanaijaz marked this pull request as ready for review September 13, 2023 17:02
Copy link
Member

@rstijerina rstijerina left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@chandra-tacc chandra-tacc left a comment

Choose a reason for hiding this comment

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

LGTM, also tested locally

@rstijerina rstijerina merged commit 185b715 into main Sep 15, 2023
@rstijerina rstijerina deleted the bug/WP-249--shared-workspace-copy-fix branch September 15, 2023 14:58
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.

3 participants