From 72a8846ec049845c13e84d2c975b3d25cab880f2 Mon Sep 17 00:00:00 2001 From: Greg Elin Date: Sun, 8 Aug 2021 16:12:43 +0000 Subject: [PATCH] Auto-start a particular project (#1640) * [WIP] Auto-start a particular project Enable the auto-starting of a particular project, e.g., start a project without having to visit the compliance app store. Eventually, start a project and launch the first question. * Rename auto start app variables * Finish project auto start, auto start question, redirect actions Complete work on automatically starting a project defined in by a System Setting. Allow the auto start system setting to define the project template (e.g. compliance app) to use and even the module to automatically start. Also add new question actions to redirect to project page or project component after answering a question. TO DO: - Add error handling (e.g., missing/incorrect project) - Add tests * Bump VERSION Co-authored-by: Greg Elin Co-authored-by: Greg Elin --- CHANGELOG.md | 12 +++- VERSION | 2 +- guidedmodules/views.py | 20 ++++++- siteapp/views.py | 57 +++++++++++++++++++ system_settings/admin.py | 4 +- .../migrations/0010_auto_20210713_1031.py | 23 ++++++++ system_settings/models.py | 10 +++- templates/navbar.html | 2 +- templates/projects.html | 2 +- 9 files changed, 122 insertions(+), 10 deletions(-) create mode 100644 system_settings/migrations/0010_auto_20210713_1031.py diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d632b44..475e569db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ GovReady-Q Release Notes ======================== +v0.9.8-dev (August xx, 2021) +---------------------------- + +**Developer changes** + +* Support autostart of a project, taking user to first question of a project when starting a new project. + v0.9.7 (August 06, 2021) ------------------------ @@ -36,6 +43,7 @@ v0.9.6 (July 15, 2021) * Added a Select/Deselect button for component comparison choice. * Add accordion to assessment page to provide information on getting data from Wazuh. * Add form to Assessments page to collect Wazuh information. +* Support auto start of project via global System Setting. **Bug fixes** @@ -46,13 +54,15 @@ v0.9.6 (July 15, 2021) * Add custom Django command to batch import legacy control implementation statements from legacy SSPs Excel spreadsheet exports. Currently supports CSAM. * Added missing unit test for portfolio project endpoint. * Add `sec_srvc.SecurityService` class to represent a security service from which data could be collected. +* Add SystemSettings `auto_start_project` to permit the automatic start of a particular project and automatic start of a question. +* Add questions actions to redirect to project home page or project components. **Data changes** * Set all `StatementTypeEnum.