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

feat: /1 crosschain etc integration #5600

Merged
merged 1 commit into from
Dec 11, 2019
Merged

feat: /1 crosschain etc integration #5600

merged 1 commit into from
Dec 11, 2019

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Dec 5, 2019

Description
  • introduce new endpoint for ETH + EC20 bounties
  • splits code for ETH and ETC bounty creation to ensure ETH
    bounties go normal flow while ETC bounties hit new endpoint
  • sync_etc url + create API are restricted to admin
  • update bounty details condition to ensure for ETH bounties
    actions needs user to be logged in and have the right address
Pending
  • sync up with @willsputra to figure out how display pill button for ETC bounties
  • check TODOs to evaluate duplicate/redundant fields in bounty models
  • Wire in email creation for /create endpoint
  • Wire in activity updates for /create endpoint
  • Add in more strict checks for /create endpoint
Testing

image

Screenshot 2019-12-11 at 4 17 56 PM

@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

Merging #5600 into master will decrease coverage by 0.16%.
The diff coverage is 5.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5600      +/-   ##
==========================================
- Coverage   30.19%   30.03%   -0.17%     
==========================================
  Files         248      248              
  Lines       21215    21348     +133     
  Branches     3075     3095      +20     
==========================================
+ Hits         6406     6411       +5     
- Misses      14533    14658     +125     
- Partials      276      279       +3
Impacted Files Coverage Δ
app/app/urls.py 90.19% <ø> (ø) ⬆️
app/dashboard/helpers.py 14.64% <0%> (+0.03%) ⬆️
app/dashboard/models.py 56.3% <100%> (ø) ⬆️
app/dashboard/views.py 12.24% <4.8%> (-0.55%) ⬇️
app/dashboard/utils.py 42.3% <8.33%> (-0.85%) ⬇️
...rketing/management/commands/no_applicants_email.py 0% <0%> (ø) ⬆️

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 38f9972...e28547c. Read the comment docs.

app/dashboard/views.py Outdated Show resolved Hide resolved
@thelostone-mc thelostone-mc changed the title feat: built out sync_etc which checks txn mining status feat: built out sync_etc + create bounty API for nonETH Dec 11, 2019
@thelostone-mc thelostone-mc marked this pull request as ready for review December 11, 2019 13:43
@@ -62,8 +62,8 @@
# oauth2 provider
url('^o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
# create bounty
url(r'^create?', dashboard.views.new_bounty, name='create_bounty'), # TODO: Remove
Copy link
Contributor

Choose a reason for hiding this comment

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

This definitely isn't used anywhere? or by some weird 3rd party integration that we forgot about or something?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah ! This was introduced as a means to have multiple ways to access the same way !
the 3rd part were with -> /new OR /fund (cause one of those were added cause of that )

I don't know if that 3rd part integration even exists (separate story all together )

app/dashboard/views.py Outdated Show resolved Hide resolved
@thelostone-mc thelostone-mc changed the title feat: built out sync_etc + create bounty API for nonETH feat: /1 crosschain etc integration Dec 11, 2019
- introduce new endpoint for ETH + EC20 bounties
- splits code for ETH and ETC bounty creation to ensure ETH
  bounties go normal flow while ETC bounties hit new endpoint
- sync_etc url + create API are restricted to admin
- update bounty details condition to ensure for ETH bounties
  actions needs user to be logged in and have the right address
@octavioamu octavioamu merged commit 81406e6 into master Dec 11, 2019
@thelostone-mc thelostone-mc deleted the sync_etc branch June 27, 2020 00:54
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