-
Notifications
You must be signed in to change notification settings - Fork 15
Endpoint for a device profile questions #668
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
Endpoint for a device profile questions #668
Conversation
jboddey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure of the use of an ID in these questions. For single select answers we have previously just used the string
@jboddey I primarily did this for multiselect answer options, but I added IDs to other questions for consistency. |
* Add not started and disabled test results * Small fix * Add new device type & tech endpoints * store in the json file device types with risks, but return only a list of device types * Update NTP report (#666) * Update NTP report * cleanup imports * pylint updates * Adds qualification form and creates first step (#670) * Adds qualification form and creates first step * Select device type (#679) * Refactoring - create common dynamic form; adds dynamic form in risk profile and device qualification process; generate 2nd step dynamically * Endpoint for a device profile questions (#668) * device profile questions endpoint * test "device/format" endpoint * 404 enstead of 400 * step title and description * Remove old endpoint files * Step 3 qualification process (#681) * Adds validation between steps * delete device type and data coollect from risk profile (#685) * Adds summary step; add close form pop-up; save is not in scope (#689) * 356882947: (feat) add pilot program section to welcome modal (#694) * Display outdated device Banner (#693) * Adds expired device callout * Save state of callout in session storage * Save state of callout in session storage (#696) * Fix test_orc path * Fix tests (#708) * Remove duplicate method * Fix testrun refernce --------- Signed-off-by: J Boddey <boddey@google.com> Co-authored-by: Aliaksandr Nikitsin <aliaksandrn@google.com> Co-authored-by: jhughesbiot <jonathan.hughes@buildingsiot.com> Co-authored-by: Sofia Kurilova <kurilova@google.com> Co-authored-by: Olga Mardvilko <mardvilka@google.com>
I refactored the code so that a single endpoint will be used for all questions and answers. The questions are divided into steps, and if there is a subsequent step, a link to the next step will be included in the response. Each question and each answer has been assigned an ID. We discussed this solution with the team and concluded that it would be more convenient this way. Of course, at the moment, there is no need for such a structure, but it is implemented with the addition of new questions in mind.