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

Feature/0.9.10 #1689

Merged
merged 393 commits into from
Aug 16, 2021
Merged

Feature/0.9.10 #1689

merged 393 commits into from
Aug 16, 2021

Conversation

gregelin
Copy link
Contributor

Developer changes

  • Component tags now correctly included on OSCAL component export and included on OSCAL component import.
  • Component tags now correctly included on OSCAL SSP generation.

Bug fix

  • Add the catalog_key to statement's sid_class and source fields when adding new statement to a component in library.

Data fix

  • Add migration in controls to load default control catalogs into CatalogData in database. Remove loading of catalogs via first_run command.

davidpofo and others added 30 commits May 20, 2021 12:24
…rieval of security impact levels. todo on separate form for levels.
…ponent library display. including component_metadata template to keep styling consistent
…would come from questionnaires. system_information_types is not used at all.
Use self.element.tags.exists() in checking if tags exist.
Improve project pages appearance: decrease action button width ...
* make sure component_type not element_type is exported

* ssp versions should be floats not integers. Information types needs a uuid

* adding empty placeholders for the required keys.

* using updated for component version

* party-uuids is still a todo

* categorizations is still a todo

* parties is still a todo
…1602)

Refactor creating system control statements from component library
prototype statements when adding a component from the library to a system
and reduce by an order a magnitude the time it takes to add a component to system.

Rename smt.create_instance_from_prototype to smt.create_system_control_smt_from_component_prototype_smt

Fix bug breaking rendering of system's control detail page by
removing an errant login_required decorator on a function.
Add test for system control page. Will add test(s) for system control detail page.

Co-authored-by: Greg Elin <greg.elin@govready.com>
Performnce of document generation now sufficiently fast
to not require cache and manual "Refresh documents" button.
Automatically clear, refresh output document content downloading docs
…1605)

* Fixed an issue where statement didn't exist while exporting to oscal

* Update CHANGELOG

Co-authored-by: Alexander Ward <alexander.ward1@gmail.com>
Co-authored-by: Greg Elin <greg.elin@govready.com>
davidpofo and others added 28 commits August 3, 2021 11:45
* created a de-oscalizing function and applied to selected controls on import.

* some super route way of making sure the catalogs produce 3.1.

* add test of de_oscalize_control
* get task for the attached object. added some more notes

* fixed signature for getting a task for the attached object.

* Added get_discussion_autocompletes changes to get the organization from the discussion(should be 1 to 1). If another models wants to implement it they can look at the get_discussion_autocompletes in TaskAnswer

* Added get_discussion_autocompletes changes to get the organization from the discussion(should be 1 to 1). If another models wants to implement it they can look at the get_discussion_autocompletes in TaskAnswer
…H issues 1659 (#1670)

Co-authored-by: root <root@MSI.localdomain>
Remove duplicate loads of select2 in base.html
… it shouldn't just return an empty string as this errors out. Also the controls are already in oscal format. (#1676)
* [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 <Greg Elin>
Co-authored-by: Greg Elin <greg.elin@govready.com>
…1673)

* Move Catalog data into database, faster control select autocomplete

Move control catalog data into database so catalogs shipped
with GovReady and user added catalogs all accessed in database.
Also faster reading in containers.
Adjust first_run to load catalogs.
Speed up auocomplete by only selecting matching controls.

* Fix tests: add catalogs to db in setup

* Read baselines from database

* Sync with 0.9.7

* Fix tests

* Fix tests 2

* Use better DB query instead of closure

Co-authored-by: Greg Elin <greg.elin@govready.com>
* [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

* Provide selected ocmponent data to project page

* 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

* Add route for single system-component-control

* issue in bootstrap

* better styling for the drag-n-fill area

* missing carrot. reverting the removal of project import form done in 29ff7c2

* Fix skip buttons and question action crash

* Update CHANGELOG.md

* Update CHANGELOG.md

* Produce dictionary of producer_element control impl smts

* Templatetags for math

* Calculate dict of element ctl impl smts status

Co-authored-by: Greg Elin <Greg Elin>
Co-authored-by: Greg Elin <greg.elin@govready.com>
Co-authored-by: davidpofo <dampofo@umd.edu>
* Improve Control Search, migrate CatalogData to Django models.JSONField

* Dramatically improve control selection auot-complete

* Further improve add smt control select and form

Refactor add_statement form.
Better UI with "Add Statement" button in center.
Better alignment.
Validate control is set before saving to avoid error.
Remove unneeded Delete button.
Show/hide "Add Statement button appropriately.

Co-authored-by: Greg Elin <greg.elin@govready.com>
Co-authored-by: Greg Elin <greg.elin@govready.com>
…ce catalog handling (#1683)

* Move user creation earlier in first_run

* Update sample components to OSCAL 1.0.0

* Friendlier component importart, refactor source catalog handling

Import components and their statements even when catalog
not found or statement control ids are not found in referenced catalog.

* Fix source of sample components

* bump version

* Fix name of ILIAS component

* Use faster bulk_create importing components

* Small fixes and synchronizations

* Comment out soon-to-be deprecated account settings

Co-authored-by: Greg Elin <greg.elin@govready.com>
* Fix adding catalog_key during new smt creation

* Avoid creating orphaned smt when adding smt in cmpt library

* Fix test

* Fix tests

Co-authored-by: Greg Elin <greg.elin@govready.com>
Co-authored-by: Greg Elin <greg.elin@govready.com>
* Add migration to load default catalogs to DB

* Remove loading catalogdata in first_frun

Co-authored-by: Greg Elin <greg.elin@govready.com>
* Bump version

* Export/import tags for OSCAL components

* Add component tags to OSCAL SSPs

* Add tags to sample components

* Refactor importing tags

* Nest SQLITE timeout to fix database locking in tests

Co-authored-by: Greg Elin <greg.elin@govready.com>
@gregelin gregelin merged commit 8be41a0 into main Aug 16, 2021
@gregelin gregelin deleted the feature/0.9.10 branch August 16, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants