Skip to content
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

purge: amount_goal in Grants #6457

Merged
merged 3 commits into from
Apr 22, 2020
Merged

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Apr 17, 2020

Description
  • removes amount_goal field which has been removed from UI in the previous round
  • updates emails + backend + UI code which uses as all of those are dead code
  • update fixtures
  • removed un-used css from emails
Flows Tested
  • Grant Creation
  • One Time Payment (+Splitter)
  • Recurring Payment
  • Cancel Grant

TO-CHECK @danlipert + @octavioamu :
Had to update 0034_data_for_old_grants.py which was a custom migration created to populate grants activity when the feature was introduced

@codecov
Copy link

codecov bot commented Apr 17, 2020

Codecov Report

Merging #6457 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6457      +/-   ##
==========================================
+ Coverage   27.18%   27.20%   +0.02%     
==========================================
  Files         289      289              
  Lines       26464    26458       -6     
  Branches     3923     3922       -1     
==========================================
+ Hits         7194     7198       +4     
+ Misses      19003    18993      -10     
  Partials      267      267              
Impacted Files Coverage Δ
app/dashboard/export.py 60.36% <ø> (ø)
app/grants/forms.py 0.00% <ø> (ø)
app/grants/models.py 48.67% <ø> (+0.08%) ⬆️
app/grants/serializers.py 100.00% <ø> (ø)
app/grants/views.py 15.99% <ø> (+0.02%) ⬆️
app/grants/admin.py 42.46% <100.00%> (ø)
app/dashboard/embed.py 31.60% <0.00%> (+3.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a911bb5...470eb07. Read the comment docs.

@@ -22,7 +22,6 @@ def record_grant_activity_helper(activity_type, grant, profile, date):
metadata = {
'id': grant.id,
'value_in_token': '{0:.2f}'.format(grant.amount_received),
'amount_goal': '{0:.2f}'.format(grant.amount_goal),
Copy link
Contributor

Choose a reason for hiding this comment

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

This migration is cursed, would love to get rid of it somehow

@thelostone-mc thelostone-mc merged commit db7cb15 into gitcoinco:master Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants