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

PXP-8448 - Register users for download #912

Merged
merged 13 commits into from
Aug 26, 2021
Merged

PXP-8448 - Register users for download #912

merged 13 commits into from
Aug 26, 2021

Conversation

rnerella92
Copy link
Contributor

@rnerella92 rnerella92 commented Aug 18, 2021

Description of changes
When the users are not logged in and try to download data they will be redirected to the login page. This change will come into effect if the 'loginForDownload' variable is set to 'true' in gitops.json.

New Features

  • Explorer: Redirects users to the login page if they try to download the data without logging in.

Breaking Changes

Bug Fixes

Improvements

Dependency updates

Deployment changes

Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

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

Besides each individual comments, there are some eslint errors exist

You should run npm run eslint and commit in the changes

src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
src/GuppyDataExplorer/configTypeDef.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

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

Much better, but I found 1 problem when testing on qa-midrc

When I get redirected to the Login page, after login I was presented with the Fence registration page. But if I click Maybe Later instead of filling out the form, portal still redirects me back. And I can begin to download even if I didn't actually finishes the registration

Maybe this is a bug from your Fence branch? Maybe you should check from Portal whether a user has finished registrastion from Fence? Maybe you should just remove the Maybe Later button from Fence so they will have no chance not registering them? 🤔

src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
src/GuppyDataExplorer/ExplorerButtonGroup/index.jsx Outdated Show resolved Hide resolved
docs/portal_config.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

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

👍

jacquayj pushed a commit to bioteam/data-portal that referenced this pull request Apr 6, 2022
* added new config variable to turn on/off registered users functionality for MIDRC

* updated button logic for download

* updated config variable name

* removed unused proptypes

* updated config variable name and included config i portal_config.md

* updated enlist errors

* updated logic to redirect only for download buttons

* added updates based on comments

* added updates based on comments

* Updated location prop

* updated the config variable name

* updated markdown file

* removed commented code and updated function blocks

Co-authored-by: Ramu Nerella <ramunerella@Ramus-MacBook-Pro.local>
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.

2 participants