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

Remove PhantomFunding #9404

Conversation

jeremyschuurmans
Copy link
Contributor

@jeremyschuurmans jeremyschuurmans commented Aug 27, 2021

Description

This PR removes all references and code for the PhantomFunding model which is deprecated. It also includes a database migration to delete the model.

Refers/Fixes
Testing

Tests for PhantomFunding did not exist when this work was done.

@jeremyschuurmans jeremyschuurmans force-pushed the add-grants-unit-tests branch 3 times, most recently from 69bb98a to 81f1318 Compare September 22, 2021 18:35
Jeremy Schuurmans added 5 commits September 23, 2021 17:46
* create new directory for models, copy over Contribution model

* extract grants models to individual files

* rename relocated_models directory, remove original models directory, add imports, resolve circular dependencies

* extract CLRMatch into separate file

* extract Flag into separate file

* extract MatchPledge to separate file

* extract Donation and PhantomFunding

* extract GrantStat into separate file

* refactor

* extract GrantBrandingRoutingPolicy to separate file

* update migration

* add missing import to MatchPledge, remove imports from __init__.py

* add missing import

* decouple GrantCLRCalculation and move to own file

* extract GrantType to own file

* extract GrantCLR to own file

* add missing import

* refactor, add missing imports

* remove whitespace

* resolve circular dependency

* run 'make fix'

* import changes from gitcoinco#9314

* add try/except to migration file instead of editing migration directly

* refactor
@jeremyschuurmans jeremyschuurmans force-pushed the remove-deprecated-phantom-funding branch from 045b77a to cd6c282 Compare September 23, 2021 22:47
@jeremyschuurmans jeremyschuurmans changed the title WIP: Remove PhantomFunding Remove PhantomFunding Sep 23, 2021
@jeremyschuurmans jeremyschuurmans marked this pull request as ready for review September 23, 2021 23:20
Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

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

Left one comment but otherwise LGTM

@thelostone-mc thelostone-mc merged commit 82b28b0 into gitcoinco:add-grants-unit-tests Sep 29, 2021
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