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 invite to work on a bounty detail and user directory #4781

Merged
merged 4 commits into from
Jul 17, 2019

Conversation

octavioamu
Copy link
Contributor

Description

Change the query to be by bounty id instead of github url, to avoid errors when the issue is duplicated

Refers/Fixes

Fix #4780

Testing

Tested locally in bounty details + users directory

@codecov
Copy link

codecov bot commented Jul 11, 2019

Codecov Report

Merging #4781 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4781      +/-   ##
==========================================
+ Coverage   30.43%   30.43%   +<.01%     
==========================================
  Files         216      216              
  Lines       17272    17271       -1     
  Branches     2344     2344              
==========================================
  Hits         5256     5256              
+ Misses      11808    11807       -1     
  Partials      208      208
Impacted Files Coverage Δ
app/dashboard/views.py 14.41% <0%> (+0.01%) ⬆️

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 7a5761d...0235146. Read the comment docs.

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

left one minor comment ! otherwise lgtm 🙌

@@ -21,7 +21,7 @@ $('.modal-link').click(function(e) {
const sendInvites = (users) => {
let usersId = [];
let msg = $('#shareText').val();
const url = document.issueURL;
let bountyId = document.result.pk;
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't look like bountyId gets updated within this !
should we just leave it as const ?

Also should we be extra safe and do const bountyId = document.result && document.result.pk ?

@octavioamu octavioamu merged commit 0ba380b into master Jul 17, 2019
@thelostone-mc thelostone-mc deleted the fix/invite-bounty branch June 27, 2020 00:48
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.

Invite to work to a bounty in bounty detail
3 participants