Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15760)

Issue 7066059: Update QA form to handle the individual checks.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by rharding
Modified:
11 years, 3 months ago
Reviewers:
mp+142515, hazmat
Visibility:
Public.

Description

Update QA form to handle the individual checks. - Add the new migration for loading the question data. - Update the form schema to dynamically generate/add the scoring checks - Make sure the form is rendered with the proper bootstrap templates (mapping.pt, radio_choice.pt) - Lint fixes for makeUser - Update the QAAssessment factory method to generate the new schema for POST - Add a factory method to add the db.qa collection so questions are processed. - Update the qa form tests to check the new schema. - Update the ingest script to know where it's located and find all paths relative to itself. All deployments (even charm) are in a venv so safe. - Screenshot of the updated form rendering with the grouped radio buttons: http://uploads.mitechie.com/lp/charmworld_radio_controls.png https://code.launchpad.net/~rharding/charmworld/qa_assessment_form2/+merge/142515 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Update QA form to handle the individual checks. #

Patch Set 3 : Update QA form to handle the individual checks. #

Patch Set 4 : Update QA form to handle the individual checks. #

Total comments: 7

Patch Set 5 : Update QA form to handle the individual checks. #

Patch Set 6 : Update QA form to handle the individual checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -114 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/forms/qa_assessment.py View 1 2 3 4 3 chunks +42 lines, -74 lines 0 comments Download
A charmworld/templates/form/mapping.pt View 1 chunk +26 lines, -0 lines 0 comments Download
A charmworld/templates/form/radio_choice.pt View 1 chunk +17 lines, -0 lines 0 comments Download
M charmworld/testing/factory.py View 1 2 3 4 2 chunks +177 lines, -22 lines 0 comments Download
M charmworld/views/charms.py View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M charmworld/views/tests/test_charms.py View 2 chunks +19 lines, -0 lines 0 comments Download
M charmworld/views/tests/test_reports.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M migrations/migrate.py View 1 2 3 4 5 5 chunks +7 lines, -4 lines 0 comments Download
A migrations/versions/001_load_qa_questions.py View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
D scripts/dev-ingest View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M scripts/ingest View 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 12
rharding
Please take a look.
11 years, 3 months ago (2013-01-09 15:09:46 UTC) #1
rharding
Please take a look.
11 years, 3 months ago (2013-01-09 15:11:35 UTC) #2
rharding
Please take a look.
11 years, 3 months ago (2013-01-09 15:16:24 UTC) #3
rharding
Please take a look.
11 years, 3 months ago (2013-01-09 16:10:40 UTC) #4
hazmat
needs work https://codereview.appspot.com/7066059/diff/13/charmworld/forms/qa_assessment.py File charmworld/forms/qa_assessment.py (right): https://codereview.appspot.com/7066059/diff/13/charmworld/forms/qa_assessment.py#newcode114 charmworld/forms/qa_assessment.py:114: ('1', 'Yes'), seems a little strange to ...
11 years, 3 months ago (2013-01-09 19:41:12 UTC) #5
rharding
Thanks, I'll go back at things. Appreciate the time for the review. https://codereview.appspot.com/7066059/diff/13/charmworld/forms/qa_assessment.py File charmworld/forms/qa_assessment.py ...
11 years, 3 months ago (2013-01-09 20:07:06 UTC) #6
hazmat
On 2013/01/09 20:07:06, rharding wrote: > Thanks, I'll go back at things. Appreciate the time ...
11 years, 3 months ago (2013-01-10 04:08:25 UTC) #7
rharding
Please take a look.
11 years, 3 months ago (2013-01-11 18:04:15 UTC) #8
rharding
On 2013/01/10 04:08:25, hazmat wrote: > does the deform scheme node respect None as a ...
11 years, 3 months ago (2013-01-11 18:16:29 UTC) #9
rharding
Please take a look.
11 years, 3 months ago (2013-01-11 18:17:39 UTC) #10
hazmat
On Fri, Jan 11, 2013 at 12:16 PM, <rharding@mitechie.com> wrote: > On 2013/01/10 04:08:25, hazmat ...
11 years, 3 months ago (2013-01-11 20:19:51 UTC) #11
rharding
11 years, 3 months ago (2013-01-11 21:46:38 UTC) #12
On 2013/01/11 20:19:51, hazmat wrote:
> >
> > So, I've moved half way on this. I renamed the questions
> > $category.$number. So that it's a bit readable. However, I feel that any
> > UI for doing these searches would present a list of fields/options from
> > the list of questions and the id would be known.
> >
> > With the new id, say secure.2. It's easy for us to do that search using:
> > db.charms.find({"qa.secure.**secure_3": "1"})
> >
> 
> not sure that half-way gets us anywhere different, it still needs a lookup
> table to resolve. what's the issue with the short key per question?
> 
> thanks,
> 
> kapil

The problem with the short key is that it's vague. What's short, and as a key,
it's completely up to the person that enters it. As this is something that we
eventually want to enable users to add/remove questions via the webui, I really
hate putting the key into user hands like that. 

In this way, it's searchable, short, and 'makes sense' when looked at. Honestly,
the data is in the db and exposed via the api/ui and the only reason a 'words'
short string id would help is for use cases where users would be on the fly
doing queries by hand into the db itself. 

The short key still needs a lookup table to solve because you have to know what
the inserter of the record thought a 'short key' that made sense would be. 

Maybe I'm misunderstanding the use case. What's the user story/UX that we're
looking to solve/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b