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

UI (when 2 tabs open) 3.6.0rc4 - submit workflowtemplate greyed out #13892

Closed
3 of 4 tasks
tooptoop4 opened this issue Nov 12, 2024 · 8 comments · Fixed by #13913 or #13915
Closed
3 of 4 tasks

UI (when 2 tabs open) 3.6.0rc4 - submit workflowtemplate greyed out #13892

tooptoop4 opened this issue Nov 12, 2024 · 8 comments · Fixed by #13913 or #13915
Assignees
Labels

Comments

@tooptoop4
Copy link
Contributor

Pre-requisites

  • I have double-checked my configuration
  • I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
  • I have searched existing issues and could not find a match for this bug
  • I'd like to contribute the fix myself (see contributing guide)

What happened? What did you expect to happen?

in the ui it lets me create a new workflowtemplate and update it, but the button to submit it is greyed out. i'm using the quickstart

Version(s)

3.6.0rc4

Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

default

Logs from the workflow controller

kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

n/a

Logs from in your workflow's wait container

kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

n/a
@tooptoop4 tooptoop4 changed the title UI 3.6.0rc4 - submit workflowtemplate greyed out UI (safari only issue, chrome is ok) 3.6.0rc4 - submit workflowtemplate greyed out Nov 12, 2024
@tooptoop4
Copy link
Contributor Author

tooptoop4 commented Nov 12, 2024

for this to happen looks like you need 2 workflow tabs open (in any of chrome or safari), workaround is to hard refresh via hold down command+shift keys and click the refresh icon in address bar

@MasonM maybe caused by 68adbcc#diff-0494089cd084aa91c5d8e043b283fe327f53ecf94623bf82be945dea2e2587fd ?

@tooptoop4 tooptoop4 changed the title UI (safari only issue, chrome is ok) 3.6.0rc4 - submit workflowtemplate greyed out UI (when 2 tabs open) 3.6.0rc4 - submit workflowtemplate greyed out Nov 12, 2024
@Joibel
Copy link
Member

Joibel commented Nov 13, 2024

I can reproduce this on firefox 131 on linux. I don't need a hard refresh, just a normal refresh to make the button appear, and the button appears greyed out without 2 tabs.

@MasonM
Copy link
Contributor

MasonM commented Nov 13, 2024

@tooptoop4 The "submit" button was completely broken before that change for the reasons described at #13593, so it definitely didn't cause this. If this was a regression, it dates back at least to #13069

@MasonM
Copy link
Contributor

MasonM commented Nov 13, 2024

Looking at this more, I think this is a consequence of reference equality checking. In my original fix for #13593, I had it use deep equality comparisons, which doesn't have this problem. However, I reverted that in 24c0206 because Anton had concerns about performance (see #13593 (comment)). I did figure out a way to fix this without affecting performance (see #13593 (comment)), but the problem is that's a significant change, and I don't know if there's anyone left that can code review such a change. So I think we're just going to have to live with this until there's someone available to code review UI changes.

@isubasinghe
Copy link
Member

@MasonM I did initially start on argo with some UI contributions, I am a bit rusty, but I can review your code.

@MasonM
Copy link
Contributor

MasonM commented Nov 18, 2024

@isubasinghe Thanks! I cleaned up the POC and entered #13915 for this

@MasonM
Copy link
Contributor

MasonM commented Nov 19, 2024

Re-opening because #13913 didn't fully fix the issue, e.g. the "Submit" button is still grayed out after clicking "Update" button. #13915 will completely fix it.

@MasonM MasonM reopened this Nov 19, 2024
@MasonM MasonM self-assigned this Nov 19, 2024
@hmoulart
Copy link

Description:
After upgrading Argo Workflows to version 3.6.0, I encountered a regression where the "Submit" button is grayed out and cannot be clicked when attempting to submit a WorkflowTemplate.

Steps to Reproduce:

  1. Go to the Argo Workflows UI.
  2. Navigate to a WorkflowTemplate.
  3. Attempt to click the "Submit" button (it is disabled).

Workaround:
I found a simple workaround:

  1. Refresh the page by pressing Enter in the browser's URL bar.
  2. After the refresh, the "Submit" button becomes clickable.

Environment:
Argo Workflows version: 3.6.0
Browser: Version 131.0.6778.71 (Build officiel) (x86_64)

Attachments:
Below are screenshots showing the issue:
Before refresh: "Submit" button is grayed out.
Capture d’écran 2024-11-22 à 09 35 04

After refresh: "Submit" button is active.
Capture d’écran 2024-11-22 à 09 37 53

@Joibel Joibel closed this as completed in 1392ef5 Nov 22, 2024
Joibel pushed a commit that referenced this issue Nov 22, 2024
)

Signed-off-by: instauro <[email protected]>
Co-authored-by: instauro <[email protected]>
(cherry picked from commit 2fd5488)
Joibel pushed a commit that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment