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

Emergency shutoff button is clickable when it is disabled #2610

Closed
allan-silva opened this issue Aug 1, 2022 · 13 comments
Closed

Emergency shutoff button is clickable when it is disabled #2610

allan-silva opened this issue Aug 1, 2022 · 13 comments

Comments

@allan-silva
Copy link
Contributor

Found while working on #2604 (maybe a good first bug)

When product/channel is not selected:
image

When updates is already disabled:
image

@mays4
Copy link

mays4 commented Oct 5, 2023

I am an outreach applicant, I don't see the first-bug issue available (all assigned or commented by applicants), so can I work on this issue?

@allan-silva
Copy link
Contributor Author

Hey @gabrielBusta, can you assign this issue to @mays4 ?
It looks like a good-first-bug.

@MelakuAlehegn
Copy link
Contributor

@gabrielBusta @bhearsum there has been no PR on this issue, can I work on it?

@MelakuAlehegn
Copy link
Contributor

@allan-silva can you provide more context on which pages to look for, files to edit?

@bhearsum
Copy link
Contributor

The fix will almost certainly be in https://github.com/mozilla-releng/balrog/blob/main/ui/src/views/Rules/ListRules/index.jsx#L137. Based on @allan-silva's earlier comment & screenshot it sounds like productChannelQueries may not be set when an emergency shutoff has been done. My suggestion would be to add some console.log messages to this file and then:

  • Visit https://localhost:9000/rules?product=Firefox&channel=release
  • Open the Developer Tools Console
  • Reload the page, and make note of any log messages that show up
  • Use "Disable updates" in the bottom right of the view to set the emergency shutoff
  • Reload the page, and compare the log messages that show up this time

@MelakuAlehegn
Copy link
Contributor

@bhearsum Thanks for your prompt response. Taking a look..

@AMUZY
Copy link
Contributor

AMUZY commented Oct 20, 2023

I tried to replicate the issue @bhearsum but there seems to be no issue with this. I followed the steps as well as @allan-silva's message and the page seems to be fine.
I had no errors in my debug tools when I disabled updates for a product (Firefox : Release) in my case, and then selected All Rules.
Maybe this has been fixed? Or I'm not replicating the issue correctly?
@MelakuAlehegn have you been able to replicate this issue?

@AMUZY
Copy link
Contributor

AMUZY commented Oct 20, 2023

Can't see any error that looks like the image @allan-silva shared

@allan-silva
Copy link
Contributor Author

Hello everyone, try to reproduce in the following order:

  1. Click on rules;
  2. On rules page, select a product/channel (eg.: Firefox : Nightly);
  3. Click on "pause button" to disable product/channel updates;
  4. Optionally say the reason and click "Yes".

Now updates for product/channel are disabled.

image

  1. repeate the steps 3 and 4 (notice the pause button is disabled, but is clickable)

image
image

@AMUZY
Copy link
Contributor

AMUZY commented Oct 21, 2023

Ooooh ! Let me do this

@MelakuAlehegn
Copy link
Contributor

MelakuAlehegn commented Oct 21, 2023

@allan-silva it looks like the button is clickable for disabled updates, as you explained. Confirming that the error exists.
image

When Clicked again
image

@AMUZY
Copy link
Contributor

AMUZY commented Nov 16, 2023

Hi @bhearsum @gabrielBusta this ISSUE has been solved HERE and is safe to be closed now I guess. Bless y'all

@bhearsum
Copy link
Contributor

Thanks, we missed that!

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

No branches or pull requests

5 participants