8000 Grants - v0.2 soft launch by mbeacom · Pull Request #3239 · gitcoinco/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Grants - v0.2 soft launch #3239

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

Merged
merged 126 commits into from
Dec 19, 2018
Merged

Grants - v0.2 soft launch #3239

merged 126 commits into from
Dec 19, 2018

Conversation

mbeacom
Copy link
Contributor
@mbeacom mbeacom commented Dec 18, 2018
Description

The goal of this PR is to get grants closer to being ready for public consumption.

Checklist
Affected core subsystem(s)
Refers/Fixes
Testing and Sign-off
Contributor
  • Read and followed the Contributor Guidelines
  • Tested all changes locally
  • Verified existing functionality
  • Ran make test and everything passed!
Reviewer
  • Affirm contributor guidelines have been followed and requested changes made
  • CI tests and linting pass
  • No conflicts (migrations, files, etc)
  • Regression tested against staging
Funder
  • Validated requested changes were made to specification
  • Bounty payout released to the contributor

captnseagraves and others added 30 commits December 4, 2018 17:31
@codecov
Copy link
codecov bot commented Dec 18, 2018

Codecov Report

Merging #3239 into master will decrease coverage by 0.03%.
The diff coverage is 26.26%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3239      +/-   ##
=========================================
- Coverage   30.13%   30.1%   -0.04%     
=========================================
  Files         193     193              
  Lines       14533   14568      +35     
  Branches     1900    1906       +6     
=========================================
+ Hits         4380    4386       +6     
- Misses      10015   10044      +29     
  Partials      138     138
Impacted Files Coverage Δ
app/grants/admin.py 77.77% <ø> (ø) ⬆️
app/grants/abi.py 0% <ø> (ø) ⬆️
app/grants/templatetags/grants_extra.py 71.42% <ø> (ø) ⬆️
app/grants/forms.py 100% <ø> (ø) ⬆️
app/grants/management/commands/subminer.py 0% <0%> (ø) ⬆️
app/retail/emails.py 20.43% <33.33%> (-0.05%) ⬇️
app/app/settings.py 78.07% <47.05%> (-2.24%) ⬇️
app/grants/views.py 14.79% <5.88%> (-0.82%) ⬇️
app/marketing/mails.py 11.5% <50%> (ø) ⬆️
app/grants/models.py 61.23% <65%> (+0.64%) ⬆️

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 63c5f32...d37259f. Read the comment docs.

@codecov
Copy link
codecov bot commented Dec 18, 2018

Codecov Report

Merging #3239 into master will decrease coverage by 0.02%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3239      +/-   ##
=========================================
- Coverage   30.13%   30.1%   -0.03%     
=========================================
  Files         193     193              
  Lines       14533   14570      +37     
  Branches     1900    1907       +7     
=========================================
+ Hits         4380    4387       +7     
- Misses      10015   10045      +30     
  Partials      138     138
Impacted Files Coverage Δ
app/grants/admin.py 77.77% <ø> (ø) ⬆️
app/grants/abi.py 0% <ø> (ø) ⬆️
app/grants/templatetags/grants_extra.py 71.42% <ø> (ø) ⬆️
app/grants/forms.py 100% <ø> (ø) ⬆️
app/grants/management/commands/subminer.py 0% <0%> (ø) ⬆️
app/app/urls.py 90.19% <0%> (+1.96%) ⬆️
app/retail/emails.py 20.43% <33.33%> (-0.05%) ⬇️
app/app/settings.py 78.07% <47.05%> (-2.24%) ⬇️
app/grants/views.py 14.79% <5.88%> (-0.82%) ⬇️
app/marketing/mails.py 11.5% <50%> (ø) ⬆️
... and 1 more

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 63c5f32...6e3c180. Read the comment docs.

contract_owner_address
).send({
from: accounts[0],
gasPrice: 8000000000
Copy link
Contributor

Choose a reason for hiding this comment

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

gas price should not be hardcoded -- why not web3.utils.toHex($('#gasPrice').val() * Math.pow(10, 9) ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Need to add gasSettings to owner change as well.

@@ -22,6 +22,12 @@ var gas_amount = function(page_url) {
gasLimitEstimate = 21000;
} else if (page_url.indexOf('tip/receive') != -1) { // tip
gasLimitEstimate = 21000;
} else if (page_url.indexOf('/fund') != -1) { // grant contribution
gasLimitEstimate = 318730;
Copy link
Contributor

Choose a reason for hiding this comment

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

funding / creating a new subscription cost the same gas-wise? that doesnt seem right

<script src="{% static "v2/js/abi.js" %}"></script>
<script src="/dynamic/js/tokens_dynamic.js"></script>
<script src="{% static "v2/js/tokens.js" %}"></script>
<script src="{% static "v2/js/shared.js" %}"></script>
<script src="{% static "v2/js/ipfs-api.js" %}"></script>
<script src="{% static "v2/js/ipfs.js" %}"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

can we host these locally instead of using an external CDN?

<div class="progressbar">
<div class="progress-completed" style="width: {{ grant.percentage_done|floatformat:0 }}%;">
</div>
<!-- #TODO - Change object that takes the percentage value of removed contribution. -->
Copy link
Contributor

Choose a reason for hiding this comment

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

still a TODO?

Copy link
Contributor
@owocki owocki left a comment

Choose a reason for hiding this comment

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

left a few comments.. afre that feel free to :shipit:

@owocki owocki merged commit 77d5f4a into master Dec 19, 2018
@mbeacom
Copy link
Contributor Author
mbeacom commented Dec 20, 2018

Looks like we missed this: #3239 (comment)

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.

5 participants
0