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

Fix edit info on grant page #4793

Merged
merged 15 commits into from
Jul 31, 2019

Conversation

PierrickGT
Copy link
Contributor

@PierrickGT PierrickGT commented Jul 13, 2019

Description

As a grant owner, I wish to be able to edit infos of my grant.
This PR fix a bug who made it impossible to edit infos of a grant if you where not doing it from the first tab, it was due to the Quill editor not being conditioned to be loaded only on the first tab.

Screencast

Here is a recording of the fix
fix screencast

Refers/Fixes

Bounty: https://gitcoin.co/issue/gitcoinco/web/4786/3227
Issue: #4786

@codecov
Copy link

codecov bot commented Jul 13, 2019

Codecov Report

Merging #4793 into master will decrease coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4793      +/-   ##
=========================================
- Coverage   30.63%   30.6%   -0.04%     
=========================================
  Files         216     216              
  Lines       17488   17489       +1     
  Branches     2385    2386       +1     
=========================================
- Hits         5358    5352       -6     
- Misses      11915   11922       +7     
  Partials      215     215
Impacted Files Coverage Δ
app/grants/views.py 13.85% <0%> (-0.04%) ⬇️
app/dashboard/embed.py 28.16% <0%> (-3.45%) ⬇️

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 7e2290a...60f8772. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 13, 2019

Codecov Report

Merging #4793 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4793      +/-   ##
==========================================
- Coverage   30.41%   30.41%   -0.01%     
==========================================
  Files         216      216              
  Lines       17247    17248       +1     
  Branches     2340     2341       +1     
==========================================
  Hits         5246     5246              
- Misses      11793    11794       +1     
  Partials      208      208
Impacted Files Coverage Δ
app/grants/views.py 13.85% <0%> (-0.04%) ⬇️

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 7e23f9f...f9b5a58. Read the comment docs.

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.

Could you add a recording of the fix + update the GitHub description so other folks know exactly what is done before they check out the code ?

Code looks alright ! Will pull it in and check it out locally ^_^

@PierrickGT
Copy link
Contributor Author

Could you add a recording of the fix + update the GitHub description so other folks know exactly what is done before they check out the code ?

Code looks alright ! Will pull it in and check it out locally ^_^

I've added a better description of the issue and a gif recording of the fix.

thelostone-mc
thelostone-mc previously approved these changes Jul 20, 2019
@PierrickGT
Copy link
Contributor Author

PierrickGT commented Jul 20, 2019

Thanks for accepting my PR @thelostone-mc !
Do you know how I could fix the coverage errors?

@thelostone-mc
Copy link
Member

@PierrickGT Ah i guess that's alright for now! we are yet to wire in a testing library for frontend

@PierrickGT
Copy link
Contributor Author

@thelostone-mc ok thanks! Waiting for my work to be approved on Gitcoin before sending this PR and then merging it.

@thelostone-mc
Copy link
Member

@PierrickGT you should be able to apply for work on it ^_^
Could you click on start work and I'll go ahead and approve you

@thelostone-mc
Copy link
Member

@PierrickGT looks like we have CI failures :| could you resolve that ?

@PierrickGT
Copy link
Contributor Author

@PierrickGT looks like we have CI failures :| could you resolve that ?

I've fixed it, there was a formatting error introduced by merging master.

thelostone-mc
thelostone-mc previously approved these changes Jul 24, 2019
Copy link
Contributor

@danlipert danlipert left a comment

Choose a reason for hiding this comment

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

Hey @PierrickGT - looks like there were a lot of unrelated style changes in your PR here, can you revert those so its easier to review? Generally we keep the changes limited to the scope of the issue. Thanks!

@PierrickGT PierrickGT force-pushed the fixes/grant-edit_info branch from 8fa9e6b to 162ee56 Compare July 30, 2019 13:25
@PierrickGT
Copy link
Contributor Author

Hey @PierrickGT - looks like there were a lot of unrelated style changes in your PR here, can you revert those so its easier to review? Generally we keep the changes limited to the scope of the issue. Thanks!

I've fixed it, except for some indentations that were not right: 162ee56
You should definitely use Prettier or even eslint in order to have a more readable JS codebase.

thelostone-mc
thelostone-mc previously approved these changes Jul 31, 2019
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.

@PierrickGT we've got precommit hooks which run eslint + stylelint.
It's documented in our Contributing.md file

Did you check that out ?

@thelostone-mc thelostone-mc requested a review from danlipert July 31, 2019 05:11
@PierrickGT
Copy link
Contributor Author

@PierrickGT we've got precommit hooks which run eslint + stylelint.
It's documented in our Contributing.md file

Did you check that out ?

Oh I didn't know about it. I've set it up so we'll see how it works out for the future commits.

error: function() {
_alert({ message: gettext('Changing the contract owner address failed to save. Please try again.') }, 'error');
}
});
Copy link
Member

Choose a reason for hiding this comment

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

@PierrickGT could you undo the linting you've done here ?
It makes it confusing for reviewers to see what exactly your changes are

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've fixed it: 3a57279

@danlipert danlipert merged commit 90bb0ff into gitcoinco:master Jul 31, 2019
@PierrickGT PierrickGT deleted the fixes/grant-edit_info branch July 31, 2019 14:37
danlipert added a commit that referenced this pull request Jul 31, 2019
@danlipert
Copy link
Contributor

Hey @PierrickGT - I just tested this before our production deploy and its broken - the quill library is not loading correctly when I view a grant somebody else created - see screenshot:
Screen Shot 2019-08-01 at 12 25 45 AM

please fix and resubmit

danlipert added a commit that referenced this pull request Jul 31, 2019
@PierrickGT
Copy link
Contributor Author

Hey @PierrickGT - I just tested this before our production deploy and its broken - the quill library is not loading correctly when I view a grant somebody else created - see screenshot:
Screen Shot 2019-08-01 at 12 25 45 AM

please fix and resubmit

My bad, I'm gonna take a look at it and fix it.

@PierrickGT PierrickGT restored the fixes/grant-edit_info branch July 31, 2019 18:07
@PierrickGT
Copy link
Contributor Author

I've reopened a PR where I've fixed the condition to initialize Quill in the file app/grants/templates/grants/detail/tabs.html, I've forgot about the case where you don't have ?tab=description in the url.

#4928

@octavioamu
Copy link
Contributor

@PierrickGT is that PR with this PR changes also? because we had reverted this merge since was failing in our deploy tests.

@PierrickGT
Copy link
Contributor Author

PierrickGT commented Jul 31, 2019

@PierrickGT is that PR with this PR changes also? because we had reverted this merge since was failing in our deploy tests.

Yes, it's the same PR but with the fix.
Here is the commit that fix it: 0f524dd

@danlipert danlipert mentioned this pull request Aug 7, 2019
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.

4 participants