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

Quests improvements #5433

Merged
merged 5 commits into from
Nov 13, 2019
Merged

Conversation

straumer
Copy link
Contributor

@straumer straumer commented Oct 30, 2019

Description

This PR fulfills issue #5379. The changes are the following on the page where a new quest is created.

Clean new answers when added:

Before:
click_new_answer

After:
get_new_answer

Clean new questions when added:

Before:
click_new_question

After:
get_new_question

Limit on the number of answers for each question:

answer_limit

Refers/Fixes

#5379 - Main issue this addresses
It also builds upon these PRs: #5393 and #5409

Testing

No tests. I just changed javascript.

@codecov
Copy link

codecov bot commented Oct 30, 2019

Codecov Report

Merging #5433 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5433      +/-   ##
==========================================
+ Coverage   29.63%   29.66%   +0.02%     
==========================================
  Files         242      242              
  Lines       20660    20660              
  Branches     2991     2991              
==========================================
+ Hits         6123     6129       +6     
+ Misses      14285    14279       -6     
  Partials      252      252
Impacted Files Coverage Δ
app/dashboard/embed.py 31.6% <0%> (+3.44%) ⬆️

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 399ca6c...02544fa. Read the comment docs.

@straumer straumer changed the title WIP Quests improvements Quests improvements Oct 30, 2019
pytest-cov==2.6.0
pytest-isort==0.2.1
pytest-django==3.4.4
pytest==5.2.2
Copy link
Contributor

Choose a reason for hiding this comment

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

@danlipert ok with bumping these versions?

Copy link
Contributor

Choose a reason for hiding this comment

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

definitely not - needs to be removed from this PR @straumer

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 removed the commit, rebased on master, resolved a small conflict, tested again manually and did a forced push on the branch. It doesn't seem to be updating the PR though, should I make a new PR? @owocki

@owocki
Copy link
Contributor

owocki commented Oct 31, 2019

code LGTM if the versiuon bumps are ok with @danlipert

@straumer
Copy link
Contributor Author

Ok. If not okay, I can remove that commit. It's just for the tests to run properly on my end.

@owocki
Copy link
Contributor

owocki commented Nov 5, 2019 via email

@straumer
Copy link
Contributor Author

straumer commented Nov 5, 2019

@owocki Github is supposed to update it according to the branch, so I can't do much about that. The branch is already updated.

@owocki
Copy link
Contributor

owocki commented Nov 5, 2019

maybe you pushed to the wrong branch or remote

@straumer
Copy link
Contributor Author

straumer commented Nov 5, 2019

No. Looking at the branch, it says 5 commits (this PR has 6 commits) and there are changes made very recently. Those changes aren't reflected in the PR for some reason.

@straumer
Copy link
Contributor Author

straumer commented Nov 5, 2019

I also resolved the conflict showing on this PR (app/quests/views.py) already on that branch.

@straumer
Copy link
Contributor Author

straumer commented Nov 6, 2019

@owocki Oh wow. Now it has updated, but takes into account all the commits I rebased on from master. That's messed up.

@straumer straumer force-pushed the quests-improvements branch from 29eb386 to 02544fa Compare November 6, 2019 00:30
@straumer
Copy link
Contributor Author

straumer commented Nov 6, 2019

@owocki Okay there we go. Tip to self to rebase directly on upstream/master and not pull onto origin/master first and rebase on that for github to register.

@danlipert danlipert merged commit f10898a into gitcoinco:master Nov 13, 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.

5 participants