-
Notifications
You must be signed in to change notification settings - Fork 308
Bring back the payouts UI behind a flag #4072
Conversation
cb834fc
to
d0466c7
Compare
This works around a bug in Sphinx where the print function under Python 2.7 prevents class attributes from showing up in documentation. I want to be able to document some attributes on the Team class.
This gives us more control. Rarely is alphabetical order the right sort order.
Conflicts: sql/branch.sql
The page is broken, but that's okay because no-one will see it until we set available.
def test_distributing_doesnt_redirect_when_money_is_available(self): | ||
self.make_team() | ||
self.db.run("UPDATE teams SET available=537") | ||
assert self.client.GET('/TheEnterprise/distributing/', raise_immediately=False).code == 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing for a 500
? 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a 500 that no user would've hit, since it's behind a flag (available
) which no Team has the power to set themselves—making this PR deployable while also keeping it reasonably sized. However, this PR landed on master together with the next one (#4073), which includes a fix for the 500 (17b9bd3). Now, #4073 also introduces a test for another 500, which is still on master
. Again, my thinking is that deploying broken code behind the available
flag allows us to keep chipping away with manageable PRs instead of batching up until everything is "perfect." You okay with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha! Yes, that is fine :)
⬑ #3994
← #4070 (diff) — #4073 →
See #3994 (comment).