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
Unable to disable various karma/bug/test requirements #348
Comments
Here is the POST payload when trying to disable require bugs, testcases, and auto-request stable.
|
Issue 341 might be the same as this? |
It might be that the colander schema has diff --git a/bodhi/schemas.py b/bodhi/schemas.py
index 79a60a0..c919653 100644
--- a/bodhi/schemas.py
+++ b/bodhi/schemas.py
@@ -174,7 +174,7 @@ class SaveUpdateSchema(CSRFProtectedSchema, colander.MappingSchema):
)
autokarma = colander.SchemaNode(
colander.Boolean(),
- missing=True,
+ missing=False,
)
stable_karma = colander.SchemaNode(
colander.Integer(),
@@ -201,11 +201,11 @@ class SaveUpdateSchema(CSRFProtectedSchema, colander.MappingSchema):
)
require_bugs = colander.SchemaNode(
colander.Boolean(),
- missing=True,
+ missing=False,
)
require_testcases = colander.SchemaNode(
colander.Boolean(),
- missing=True,
+ missing=False,
) |
Yeah, I think you might be right @ralphbean. It seems that when the checkboxes are enabled, we get |
This fixes #397. The bug was introduced in 2c3bba9 when we were trying to fix something else. The bug stems from the way the list of submitted builds gets generated in javascript before it is POSTed to the server. It looks like this when you have one checkbox unchecked: ```javascript [ "foo-1.2.3-1.fc23", "bar-0.1.0-1.fc23", false, "baz-900-2.fc23", ] ``` The code in this patch only pushes that ``false`` value into the list **if** the checkbox is specially marked with a ``data-singleton`` HTML5 attribute (which I made up). So, now: - lists of checkboxes should *not* get the ``false`` value pushed (fixing #397). - singleton checkboxes will still get their ``false`` value included (keeping #348 in good shape).
This fixes #397. The bug was introduced in 2c3bba9 when we were trying to fix something else. The bug stems from the way the list of submitted builds gets generated in javascript before it is POSTed to the server. It looks like this when you have one checkbox unchecked: ```javascript [ "foo-1.2.3-1.fc23", "bar-0.1.0-1.fc23", false, "baz-900-2.fc23", ] ``` The code in this patch only pushes that ``false`` value into the list **if** the checkbox is specially marked with a ``data-singleton`` HTML5 attribute (which I made up). So, now: - lists of checkboxes should *not* get the ``false`` value pushed (fixing #397). - singleton checkboxes will still get their ``false`` value included (keeping #348 in good shape).
I am unable to edit an update and uncheck any of the Bug/Test/Karma requirement checkboxes, or even the "Automatically close bugs".
The text was updated successfully, but these errors were encountered: