Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Bring back the payouts UI behind a flag #4072

Merged
merged 5 commits into from
Jul 13, 2016
Merged

Bring back the payouts UI behind a flag #4072

merged 5 commits into from
Jul 13, 2016

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre chadwhitacre commented Jul 1, 2016

#3994

#4070 (diff) — #4073

See #3994 (comment).

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.
@chadwhitacre chadwhitacre merged commit 5db8760 into master Jul 13, 2016
@chadwhitacre chadwhitacre deleted the available branch July 14, 2016 21:32
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing for a 500? 😕

Copy link
Contributor Author

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is still on master

(It's fixed in 77e8334 on #4077, which is still a work in progress.)

Copy link
Contributor

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 :)

@chadwhitacre chadwhitacre mentioned this pull request Dec 8, 2016
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants