This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Initial support for funding-goals-over-time; #141 #745
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO: * Tests * Migration of current `goal` field to goals table entry for each user * Removing the `goal` column from participant
Let's go tests. |
Current Status:
|
This is in part b/c the tests are failing when trying to set the goal attribute of a participant. Setting that attribute now uses the current db.session and adds a row to the goals table.
Previously it was NOT NULL. That was not right at all.
It's a descriptor that handles getting the latest value from Postgres and adding new rows when the goal changes.
Current Status:
|
So liberal review of the code is in order, but tests are passing and the
|
@whit537 suggests adding the migration code to |
I'm getting a 500 on profile pages from this, both my own and others. For some reason I'm not getting a traceback in the browser(?).
We should write a test to catch this and then fix it. |
Isn't this the meat of it: |
Derp-de-derp. Don't mind me! :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is for issue #141.
TODO:
goal
field data togoals
table entry for each usergoal
fromparticipant
table (safer after migration is complete)I might be missing some places where goals are referenced. I tried to keep the API the same so hopefully it won't matter, but who knows, I've never used SQLAlchemy before.