-
Notifications
You must be signed in to change notification settings - Fork 920
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
[Workspace] Disable copy all button when there is no saved objects in assets page #8581
[Workspace] Disable copy all button when there is no saved objects in assets page #8581
Conversation
Signed-off-by: yubonluo <yubonluo@amazon.com>
It seems we only disable the button instead of fixing the root cause. Can we fix the place giving the error? |
@@ -91,7 +91,7 @@ export class DuplicateResultFlyout extends React.Component<DuplicateResultFlyout | |||
{copiedCount && ( | |||
<EuiFlexItem grow={false}> | |||
<EuiTitle size="xs"> | |||
<h4 className="savedObjectsManagementImportSummary__copiedCountCount"> | |||
<h4 className="savedObjectsManagementImportSummary__createdCount"> |
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.
Nit: This change does not seem related to the copy issue, was it made intentionally?
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.
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.
Great fix. After testing, it looks good on my local environment.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8581 +/- ##
==========================================
- Coverage 60.92% 60.89% -0.03%
==========================================
Files 3777 3786 +9
Lines 89847 90120 +273
Branches 14083 14128 +45
==========================================
+ Hits 54738 54883 +145
- Misses 31673 31794 +121
- Partials 3436 3443 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: yubonluo <yubonluo@amazon.com>
…Dashboards into 2.17/fix-copy-issue
Sure, the root cause is when selectedObjectCount is 0, we can not get the |
… assets page (#8581) * fix copy issue Signed-off-by: yubonluo <yubonluo@amazon.com> * Changeset file for PR #8581 created/updated * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> --------- Signed-off-by: yubonluo <yubonluo@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 4334ecf) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… assets page (#8581) (#8590) * fix copy issue * Changeset file for PR #8581 created/updated * optimize the code --------- (cherry picked from commit 4334ecf) Signed-off-by: yubonluo <yubonluo@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
… assets page (opensearch-project#8581) * fix copy issue Signed-off-by: yubonluo <yubonluo@amazon.com> * Changeset file for PR opensearch-project#8581 created/updated * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> --------- Signed-off-by: yubonluo <yubonluo@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
… assets page (opensearch-project#8581) * fix copy issue Signed-off-by: yubonluo <yubonluo@amazon.com> * Changeset file for PR opensearch-project#8581 created/updated * optimize the code Signed-off-by: yubonluo <yubonluo@amazon.com> --------- Signed-off-by: yubonluo <yubonluo@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Page crashed after click "Copy assets to ..." button in workspace assets page when assets table is empty
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration