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

KG - Survey/Form Builder Merge #1245

Merged
merged 85 commits into from Feb 26, 2018
Merged

KG - Survey/Form Builder Merge #1245

merged 85 commits into from Feb 26, 2018

Conversation

kayla-glick
Copy link
Contributor

@kayla-glick kayla-glick commented Feb 15, 2018

Main Pivotal Story:
https://www.pivotaltracker.com/story/show/151232661

Related Bug Stories:
https://www.pivotaltracker.com/story/show/154739723
https://www.pivotaltracker.com/story/show/154743223

Note: This is a massive story due to the back-end refactors that had to be made to make this branch stable. Please thoroughly test each component listed below. There are extensive specs for this, but specs can't always find every little bug.

Note 2: For testing, you will have to run migrations. This will cause issues if you need to do something on another branch and will require you to re-import your data. Sorry in advance!

Note 3: We are aware that if you edit a Form after having responded to it then the Response becomes inconsistent with the Form. This story https://www.pivotaltracker.com/story/show/155199579 will resolve that case.

Description

This story combines Surveys and Questionnaires into a polymorphic model. We have Surveys with types SystemSurvey and Form.

SystemSurveys are the same as the old Surveys, used for the System Satisfaction Survey and sent out via survey emails upon SSR completion.

Forms are the equivalent of Questionnaires. However, their workflow has been changed significantly.

This story moves the form builder onto the same page as the survey builder. This page can be accessed temporarily via button in SPARCCatalog (See image 1).

On the survey builder page, only Site Admins can access the SystemSurvey table, while only Super Users, Service Providers, and Catalog Overlords can access the Form table (See images 2, 3 and 4). Super Users and Service Providers can only access forms for organization and services they have admin rights to. Catalog Overlords can access all forms.

Creating a Form uses the same process as SystemSurveys with one addition. The user must search for an Organization or Service to attach the Form to (See image 5). Once a form is created, the forms will appear on ServiceRequests using SubServiceRequests for those Organizations and Services. These forms can be filled out on the Documents, Notes, and Forms page of SPARC Proper, or in the Dashboard (See images 6 and 7).

The Proper/Dashboard functionality remains the same, though some improvements were made to it for consistency. For example, the tables were made into JSON-populating Bootstrap Tables.

Image 1 - Accessing the Builder

screen shot 2018-02-15 at 10 15 05 am

Image 2 - Survey/Form Builder Screen, Site Admin Only

image

Image 3 - Survey/Form Builder Screen, Super User/Service Provider/Catalog Manager Only

image

Image 4 - Survey/Form Builder Screen, Site Admin AND SuperUser/Service Provider/Catalog Manager

image

Image 5 - Form Builder Association Search

image

Image 6 - Dashboard View

image

Image 7 - Proper Step 5 View

image

Kyle Glick and others added 30 commits October 30, 2017 16:22
@amcates amcates merged commit 4dd1e8a into v3.1.0 Feb 26, 2018
@amcates amcates deleted the kg-survey_form_builder_merge branch February 26, 2018 16:40
@amcates amcates restored the kg-survey_form_builder_merge branch February 26, 2018 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants