-
Notifications
You must be signed in to change notification settings - Fork 45
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-6544) Limited PFB Export from the Files Tab #729
Conversation
- Reason: easier time configuring specific behavior for specific tabs (e.g. Data and Files tab). For example, if the `export` button type is present it triggers `refreshManifestEntryCount` behavior, which is not needed for the files tab.
This pull request introduces 2 alerts when merging b7099ad into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 38ebc57 into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 376aa8e into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging c2b7a70 into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 1200fdc into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 425e92a into 38e68f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 7b8c61c into 38e68f7 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally lgtm, only 1 minor comment
if (buttonConfig.type === 'export-files-to-pfb') { | ||
// disable the pfb export button if any other pfb export jobs are running | ||
const otherPFBJobsRunning = this.state.exportingToTerra | ||
|| this.state.exportingToSevenBridges; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we don't check for isPFBRunning()
in here (also in export-to-pfb
)?
and there are so many trios of this.state.exportingToTerra || this.state.exportingToSevenBridges || this.isPFBRunning()
, maybe we should consolidate them 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we don't check for isPFBRunning() in here (also in export-to-pfb)?
I wasn't sure why and I was scared to change it 😆. But I can't imagine how adding that extra check for isPFBRunning()
would break anything, so I'll consolidate the check for this.state.exportingToTerra || this.state.exportingToSevenBridges || this.isPFBRunning()
into a single function.
This pull request introduces 2 alerts when merging fb8dd05 into 0ce11bb - view on LGTM.com new alerts:
|
@@ -494,9 +622,28 @@ class ExplorerButtonGroup extends React.Component { | |||
|| this.state.exportingToSevenBridges | |||
|| this.isPFBRunning()); | |||
} | |||
if (buttonConfig.type === 'export-files') { | |||
if (!this.props.buttonConfig.terraExportURL) { | |||
console.error('Export to Terra button is present, but there is no `terraExportURL` specified in the portal config. Disabling the export to Terra button.'); // eslint-disable-line no-console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something worth noting: each re-render (like clicking a checkbox) produces this error print 12 times :O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's too much work, no worries, but -- the constructor might be a better place to do these error prints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya good idea, I just stuck these checks in the constructor!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I tested with an unaligned reads PFB, downloaded the PFB, checked the contents, it matches what I expected. Left 2 comments heads up ~
This pull request introduces 2 alerts when merging 49f5dd7 into 0ce11bb - view on LGTM.com new alerts:
|
Link to Jira ticket: PXP-6544
Link to design doc: https://docs.google.com/document/d/12FkAYOpDuSdQScEgYBxXsPUdm8GUuUZgD6xU7EQga5A/edit#heading=h.53vab1pwrz1y
Link to relevant Pelican PR: uc-cdis/pelican#33
Link to manual test plan: uc-cdis/gen3-qa#454
Adds a limited ability to export PFBs of data files from the Files tab. The limitation is that users cannot export data files of different data types (e.g.
Aligned Reads
,Imaging Files
, etc.). (More specifically, users cannot export data files that are on different nodes in the graph.) We're accepting this limitation in order to avoid a significant rewrite of the pelican-export job, which assumes all entities to export are on the same node.Deployed in https://mpingram.planx-pla.net/. Please feel free to run the test plan (uc-cdis/gen3-qa#454)
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes
fileExplorerConfig.enableLimitedFilePFBExport: { sourceNodeField: "source_node" }
and by adding buttons of buttonTypeexport-files
(Export to Terra),export-files-to-pfb
(Download PFB), orexport-files-to-seven-bridges
(Export to Seven Bridges) tofileExplorerConfig.buttons
. Example:source_node
property to be ETL'd --source_node
should be added toprops
in thefile
section ofetlMapping.yaml
. Example:export-files
job block to be added to the Sower config in manifest.json. The $ROOT_NODE environment variable must be set to"file"
, or the name of the Guppy file index if it isn't "file". For BioDataCatalyst, the EXTRA_NODES environment variable must be set to""
. (This is for backwards compatibility: pelican-export includesreference_file
by default on all BDCat PFB exports unless $EXTRA_NODES is set to an empty string). Example sower config: