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

[RHOAIENG-1154]: Apply modal to alert user error #3512

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jenny-s51
Copy link
Contributor

Towards https://issues.redhat.com/browse/RHOAIENG-1154.

Description

Before:
Screenshot 2024-11-22 at 11 21 22 AM

After:
Screenshot 2024-11-22 at 11 21 55 AM

How Has This Been Tested?

Edit "--cookie-expire=23h0m0s" in the Dashboard deployment to a lower value (you should also scale down to 0 the rhods operator pod).

Test Impact

Needs info - no existing tests and no updates to the back end in this PR.

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign manosnoam for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@jenny-s51 jenny-s51 removed the request for review from dpanshug November 22, 2024 16:41
@jenny-s51 jenny-s51 marked this pull request as draft November 22, 2024 16:41
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress This PR is in WIP state label Nov 22, 2024
@jenny-s51 jenny-s51 marked this pull request as ready for review November 26, 2024 15:10
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress This PR is in WIP state label Nov 26, 2024
@emilys314
Copy link
Contributor

emilys314 commented Nov 26, 2024

Would there be a way to detect specifically that the user's session timed out to show the new modal? I feel like it may be slightly misleading because it looks like the code is a catch all, but the message is specific for session expiration? Unless that was the idea, it also doesn't seem that straightfoward to figure out a expired session

@christianvogt
Copy link
Contributor

I agree, we should look to identify the exact error response that comes from an expired session to show this modal otherwise we show the old error or update it with some other text if it's not related to expired session.

@xianli123
Copy link

Thanks @jenny-s51. The implementation looks good to me.
As for the description in the modal, it's based on the context of RHOAIENG-1154. I agree with @emilys314 @christianvogt. It would be better to identify the exact errors, and then we can update the description in the modal. If you have any concrete idea, please let me know and I can provide new design if needed.

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.

4 participants