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 2000499: dismiss toast if export cr gives 404 #9961

Merged
merged 1 commit into from Sep 3, 2021

Conversation

invincibleJai
Copy link
Member

@invincibleJai invincibleJai commented Sep 1, 2021

Fixes:
https://issues.redhat.com/browse/ODC-6286

Analysis / Root cause:

  1. if export app toast is not cleared by the user (i.e user doesn't click on download or close) and a new one is triggered then the old toast still shows and the download link gives 404.
  2. If export app toast is shown and the user deletes export CR manually then toast still shows and the download link gives 404.

Solution Description:

  1. once a new export trigger happens then the old toast should be auto removed if exists.
  2. If user deletes export CR then associated toast should get dismissed

Screen shots / Gifs for design review:

  1. once a new export trigger happens then the old toast should be auto removed if exists.

Kapture 2021-09-02 at 22 46 23

  1. If the user deletes export CR then associated toast should get dismissed

Kapture 2021-09-02 at 22 48 53

Test setup:

image

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci openshift-ci bot added component/topology Related to topology approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 1, 2021
@invincibleJai invincibleJai changed the title dismiss toast if export cr gives 404 Bug 2000499: dismiss toast if export cr gives 404 Sep 2, 2021
@openshift-ci openshift-ci bot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Sep 2, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 2, 2021

@invincibleJai: This pull request references Bugzilla bug 2000499, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 2000499: dismiss toast if export cr gives 404

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 2, 2021
@invincibleJai
Copy link
Member Author

/king bug

@invincibleJai
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 2, 2021
@openshift-ci openshift-ci bot added the component/shared Related to console-shared label Sep 2, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 2, 2021

@invincibleJai: This pull request references Bugzilla bug 2000499, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 2000499: dismiss toast if export cr gives 404

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1 similar comment
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 2, 2021

@invincibleJai: This pull request references Bugzilla bug 2000499, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 2000499: dismiss toast if export cr gives 404

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@invincibleJai
Copy link
Member Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 2, 2021
@christianvogt
Copy link
Contributor

If i start a new export, the toast disappears immediately.
However if I manually delete the export CR, the toast still lingers around for some time.

@invincibleJai
Copy link
Member Author

invincibleJai commented Sep 3, 2021

If i start a new export, the toast disappears immediately.
However if I manually delete the export CR, the toast still lingers around for some time.

yeah for restart the export app, am doing the cleanup and in this case watchresources get the update quick but for another scenario i.e deletion of export CR watchresources for some reason takes a bit to update with 404 hence takes a couple of seconds and eventually toast gets auto dismissed.

we can look at this later.

Copy link
Contributor

@sahil143 sahil143 left a comment

Choose a reason for hiding this comment

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

/lgtm

verified locally, works as expected overall however in one scenario if user manually deletes export CR then toast dismiss takes a while

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 3, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: invincibleJai, sahil143

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit acbd0ba into openshift:master Sep 3, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 3, 2021

@invincibleJai: All pull requests linked via external trackers have merged:

Bugzilla bug 2000499 has been moved to the MODIFIED state.

In response to this:

Bug 2000499: dismiss toast if export cr gives 404

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@spadgett spadgett added this to the v4.9 milestone Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/shared Related to console-shared component/topology Related to topology lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants