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

Add question restrictions to polls #7206

Merged
merged 7 commits into from
Aug 12, 2020

Conversation

zoek1
Copy link
Contributor

@zoek1 zoek1 commented Aug 10, 2020

Description
  • minimum character count for open questions
  • multiple choice (mandatory or not toggle)
  • single choice (mandatory or not toggle)
  • single option (leave as is)

https://www.loom.com/share/3ccdcc43a69d42c387481be328dddb29

Refers/Fixes

closes #7181

Testing

@codecov
Copy link

codecov bot commented Aug 10, 2020

Codecov Report

Merging #7206 into master will increase coverage by 0.02%.
The diff coverage is 42.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7206      +/-   ##
==========================================
+ Coverage   26.18%   26.20%   +0.02%     
==========================================
  Files         297      297              
  Lines       29385    29390       +5     
  Branches     4342     4343       +1     
==========================================
+ Hits         7694     7702       +8     
+ Misses      21420    21417       -3     
  Partials      271      271              
Impacted Files Coverage Δ
app/dashboard/views.py 10.37% <20.00%> (-0.02%) ⬇️
app/dashboard/models.py 48.77% <100.00%> (+0.03%) ⬆️
app/dashboard/embed.py 31.60% <0.00%> (+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 36a7abc...cd4a325. Read the comment docs.

@@ -5191,6 +5191,10 @@ class Question(SuperModel):
('OPEN', 'Open'),
)

TYPE_RESTRICTIONS = (
Copy link
Member

Choose a reason for hiding this comment

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

Is this used anywhere ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed, thanks @thelostone-mc :)

@frankchen07
Copy link
Contributor

minimum character count for open questions looks good
multiple choice (mandatory or not toggle) looks good
single choice (mandatory or not toggle) looks good
single option (leave as is) looks good

Can you show the functionality of where we can toggle each question on or off for the restriction?

otherwise LGTM

@zoek1
Copy link
Contributor Author

zoek1 commented Aug 11, 2020

@danlipert danlipert merged commit 6af0d3b into gitcoinco:master Aug 12, 2020
@PixelantDesign
Copy link
Contributor

yayyyy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants