-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
fix for https://github.com/gitcoinco/web/issues/1661 #1662
Conversation
@@ -71,9 +71,9 @@ def add_arguments(self, parser): | |||
|
|||
def handle(self, *args, **options): | |||
force_refresh = options['force_refresh'] | |||
if force_refresh: | |||
Activity.objects.all().delete() |
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.
👍
user_profile = Profile.objects.filter(handle__iexact=fulfillment.fulfiller_github_username).first() | ||
if not user_profile: | ||
user_profile = sync_profile(fulfillment.fulfiller_github_username) | ||
funder_actions = ['new_bounty', 'worker_approved', 'killed_bounty', 'increased_bounty', 'worker_rejected'] |
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.
should we also cover start / stop work here ?
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.
those are not funder actions.. those are fulfiller actions, no?
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.
Derp! 👍
Codecov Report
@@ Coverage Diff @@
## master #1662 +/- ##
==========================================
- Coverage 29.16% 29.15% -0.02%
==========================================
Files 134 134
Lines 10056 10060 +4
Branches 1317 1319 +2
==========================================
Hits 2933 2933
- Misses 7018 7022 +4
Partials 105 105
Continue to review full report at Codecov.
|
for interest in latest_old_bounty.interested.all(): | ||
new_bounty.interested.add(interest) | ||
|
||
# pull the activities off the last old bounty |
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.
W291 trailing whitespace
# pull the activities off the last old bounty | ||
for activity in latest_old_bounty.activities.all(): | ||
new_bounty.activities.add(activity) | ||
|
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.
W293 blank line contains whitespace
did some local testing.. merging soon |
Looked good to me. :) |
sorry to jump in front of you for triage @SaptakS @thelostone-mc -- i just couldnt let this stand in prod :P |
fix for #1661
force_refresh
, not just for current_bountyTODOS:
http://localhost:8000/actions/api/v0.1/bounties/?github_url=https://github.com/XLNT/gnarly/issues/11&network=mainnet&standard_bounties_id=677¬_current=1
and
http://localhost:8000/actions/api/v0.1/bounties/?github_url=https://github.com/XLNT/gnarly/issues/11&network=mainnet&standard_bounties_id=677
??
i think we should only care about activites related to teh current bounty and we should migrate the actions to the current_bounty=1 when we create a new current_bounty