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

Improve-cross project actions - Edit in Bulk #1479

Merged
merged 34 commits into from
Apr 29, 2024
Merged

Conversation

cnathe
Copy link
Contributor

@cnathe cnathe commented Apr 24, 2024

Rationale

As part of the effort to make "cross folder" action improvements in the apps, this set of PRs takes on the "Edit in Bulk" and "Edit Parents/Sources" actions. This will allow for users with proper permission to edit selected rows in a sample, source, and assay runs/results grid when the set of selections includes rows from multiple containers.

Related Pull Requests

Changes

  • Update getOperationNotPermittedMessage to work for both Edit in Grid and Edit in Bulk scenarios
  • BulkUpdateForm getUpdatedData() to include Folder in updated rows, if it exists in originalData
  • Add getSelectedIds(filterIds) to QueryModel
  • saveRowsByContainer prop for containerField to be optional since it has a default
  • AppendUnitsInput fixes for grid cell rendering and enable/disable in bulk form
  • Edit in Grid and Bulk lookup fields to use containerPath based on selected row(s) (for BulkUpdateForm, disable lookup fields toggle when more than one containerPath in selection)
  • Add getOperationConfirmationData and getParentTypeDataForLineage to ApiWrapper

cnathe added 5 commits April 25, 2024 08:29
# Conflicts:
#	packages/components/package-lock.json
#	packages/components/package.json
#	packages/components/releaseNotes/components.md
helpTipRenderer,
}}
showLabel={showLabel}
showToggle={allowDisable}
isDisabled={isDisabled}
toggleProps={{
onClick: this.toggleDisabled,
onClick: toggleDisabledTooltip ? undefined : this.onToggleChange,
Copy link
Contributor

Choose a reason for hiding this comment

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

What about lookup fields with fix container col.lookup?.containerPath and App.isAllProductFoldersFilteringEnabled() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes, good call. fix added so that we don't disable the bulk form lookup if there is a col.lookup.containerPath defined (this was changed in QueryFormInputs.tsx where toggleDisabledTooltip is set).

Copy link
Contributor

Choose a reason for hiding this comment

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

and App.isAllProductFoldersFilteringEnabled() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes, that applies here as well. I just added the check for that as well. thanks.

cnathe added 3 commits April 26, 2024 09:55
…ble bulk form lookup if col.lookup.containerPath defined
# Conflicts:
#	packages/components/package-lock.json
#	packages/components/package.json
#	packages/components/releaseNotes/components.md
@cnathe cnathe requested a review from XingY April 26, 2024 14:59
@cnathe cnathe requested review from XingY and removed request for XingY April 26, 2024 20:04
@cnathe cnathe merged commit d9b1be4 into develop Apr 29, 2024
1 check passed
@cnathe cnathe deleted the fb_crossFolderEditInBulk branch April 29, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants