-
Notifications
You must be signed in to change notification settings - Fork 148
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
Balrog accepts scheduled rule changes with duplicate alias' #2942
Comments
Hello @gabrielBusta @bhearsum, I am in the contribution phase for Outreachy. Can you please assign this task to me. Thanks ) |
Hey @bhearsum @gabrielBusta , I have some doubts regarding this issue - |
Hi, please feel free to work on the issue and open a PR when you feel it is ready. |
Yes - only one rule can exist with the same alias at any given time. This works correctly for the |
Yes @bhearsum I think I got the fix. I am working on it |
This is fixed by #3010. @michellemounde - I'm happy to help you work through your own fix for it as well, if you like, but if you'd prefer to focus on something else that's not yet fixed that's fine too. |
@bhearsum I'll focus on something else |
@jcristau Should I do some changes to my commit so as to fix this issue? or should I approach it differently? |
I can work with you on this. The first thing we should do is write some additional tests that reproduce these issues. |
Just to summarize: I think the tests we have for Here's a commit with a couple of tests as a starting point for this, which both currently fail for different reasons:
(The second is failing in the same way as reported in #3048, which is a good thing.) We'll want some additional tests added here for the scheduled changes endpoint that utilizes other balrog/tests/admin/views/test_rules.py Line 2286 in cbc1977
rule_id 2 like the test I linked to.
|
Ok got it! I am in a crunch for a couple of days 😅 . I will try to add a test for this as soon as possible 😄 |
Alias' must be unique, yet the scheduled rule change endpoints accept the idea of a new rule being scheduled with an alias that already exists. I highly doubt these rules would successfully be enacted, but regardless we should not accept their scheduling in the first place.
The text was updated successfully, but these errors were encountered: