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

Create codeql-analysis.yml #101

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Create codeql-analysis.yml #101

merged 1 commit into from
Apr 22, 2022

Conversation

syntheticgio
Copy link
Collaborator

Adding in the basic code quality analysis scan.

Adding in the basic code quality analysis scan.
@syntheticgio
Copy link
Collaborator Author

This is just enabling the CodeQL analysis built into Github. Should give us feedback on some potential problems with the code.

@syntheticgio syntheticgio merged commit 1dc78ca into 22.05 Apr 22, 2022
@syntheticgio syntheticgio deleted the codeql-analysis branch April 22, 2022 16:52
syntheticgio added a commit that referenced this pull request Apr 22, 2022
* Rename models.bco to models.BCO
Changes to be committed:
	modified:   bco_api/api/admin.py
	modified:   bco_api/api/models.py
	modified:   bco_api/api/scripts/method_specific/GET_draft_object_by_id.py
	modified:   bco_api/api/scripts/method_specific/GET_published_object_by_id.py
	modified:   bco_api/api/scripts/method_specific/GET_published_object_by_id_with_version.py
	modified:   bco_api/api/scripts/method_specific/POST_api_accounts_new.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_modify.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions_set.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_read.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_token.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_published.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_search.py
	modified:   bco_api/api/scripts/utilities/DbUtils.py
	modified:   bco_api/api/signals.py

* Move Groups and Prefix to separate model files

Also added tests for Prefix, Group, and BCO creation
Changes to be committed:
	deleted:    bco_api/api/.vscode/settings.json
	modified:   bco_api/api/admin.py
	new file:   bco_api/api/model/__init__.py
	renamed:    bco_api/api/groups.py -> bco_api/api/model/groups.py
	new file:   bco_api/api/model/prefix.py
	modified:   bco_api/api/models.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_search.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_create.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_delete.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_modify.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_permissions_set.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_token.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_token_flat.py
	modified:   bco_api/api/scripts/utilities/DbUtils.py
	modified:   bco_api/api/scripts/utilities/UserUtils.py
	deleted:    bco_api/api/tests.py
	new file:   bco_api/api/tests/test_bcos.json
	new file:   bco_api/api/tests/test_model_bco.py
	new file:   bco_api/api/tests/test_model_groups.py
	new file:   bco_api/api/tests/test_model_prefix.py
	deleted:    bco_api/api/tests/test_models.py
	modified:   bco_api/api/views.py
	modified:   requirements.txt

* Clean up imports
Changes to be committed:
	modified:   ../.gitignore
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	modified:   api/models.py
	modified:   api/tests/test_model_groups.py
	modified:   api/tests/test_model_prefix.py
	modified:   api/views.py

* Add dev db
Changes to be committed:
	new file:   admin_only/db.sqlite3.dev

* Create codeql-analysis.yml (#101)

Adding in the basic code quality analysis scan.

Co-authored-by: Hadley King <[email protected]>
syntheticgio added a commit that referenced this pull request Apr 22, 2022
* added in basic django workflow focused on this branch

* Update django.yml

Need to move to be local with the manage.py file.

* File automatically created by django interferes with tests, renamed

* 22.05 (#102)

* Rename models.bco to models.BCO
Changes to be committed:
	modified:   bco_api/api/admin.py
	modified:   bco_api/api/models.py
	modified:   bco_api/api/scripts/method_specific/GET_draft_object_by_id.py
	modified:   bco_api/api/scripts/method_specific/GET_published_object_by_id.py
	modified:   bco_api/api/scripts/method_specific/GET_published_object_by_id_with_version.py
	modified:   bco_api/api/scripts/method_specific/POST_api_accounts_new.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_modify.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_permissions_set.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_read.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_token.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_published.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_search.py
	modified:   bco_api/api/scripts/utilities/DbUtils.py
	modified:   bco_api/api/signals.py

* Move Groups and Prefix to separate model files

Also added tests for Prefix, Group, and BCO creation
Changes to be committed:
	deleted:    bco_api/api/.vscode/settings.json
	modified:   bco_api/api/admin.py
	new file:   bco_api/api/model/__init__.py
	renamed:    bco_api/api/groups.py -> bco_api/api/model/groups.py
	new file:   bco_api/api/model/prefix.py
	modified:   bco_api/api/models.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_create.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   bco_api/api/scripts/method_specific/POST_api_objects_search.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_create.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_delete.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_modify.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_permissions_set.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_token.py
	deleted:    bco_api/api/scripts/method_specific/POST_api_prefixes_token_flat.py
	modified:   bco_api/api/scripts/utilities/DbUtils.py
	modified:   bco_api/api/scripts/utilities/UserUtils.py
	deleted:    bco_api/api/tests.py
	new file:   bco_api/api/tests/test_bcos.json
	new file:   bco_api/api/tests/test_model_bco.py
	new file:   bco_api/api/tests/test_model_groups.py
	new file:   bco_api/api/tests/test_model_prefix.py
	deleted:    bco_api/api/tests/test_models.py
	modified:   bco_api/api/views.py
	modified:   requirements.txt

* Clean up imports
Changes to be committed:
	modified:   ../.gitignore
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	modified:   api/models.py
	modified:   api/tests/test_model_groups.py
	modified:   api/tests/test_model_prefix.py
	modified:   api/views.py

* Add dev db
Changes to be committed:
	new file:   admin_only/db.sqlite3.dev

* Create codeql-analysis.yml (#101)

Adding in the basic code quality analysis scan.

Co-authored-by: Hadley King <[email protected]>

* fixed stray code

* Update django.yml

Changed for all PRs and any Pushes directly to main.

Co-authored-by: John Torcivia <[email protected]>
Co-authored-by: Hadley King <[email protected]>
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.

1 participant