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

Objects_drafts_permissions_set #253

Closed
wants to merge 20 commits into from
Closed

Conversation

Reeya123
Copy link
Contributor

"""Set permissions for a bco draft

Tests for 200 and 403

Gives 200 instead of 400 and 300
"""

HadleyKing and others added 20 commits July 27, 2023 17:33
* unit tests

test_fixtures.py - Exports the database as a pytest fixture that can be used for testing

* Add files via upload

* New api test files

* Fixed test_api_accounts_describe
Changes to be committed:
	modified:   api/apps.py
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	deleted:    api/tests/test_bcos.json
	deleted:    api/tests/test_forms.py
	deleted:    api/tests/test_group_post_api.py
	deleted:    api/tests/test_model_bco.py
	deleted:    api/tests/test_model_groups.py
	deleted:    api/tests/test_model_prefix.py
	deleted:    api/tests/test_model_user.py
	deleted:    api/tests/test_prefix_post_api.py
	deleted:    api/tests/test_views.py
	deleted:    api/tests_automated.py
	modified:   api/views.py
	modified:   bcodb/settings.py
	renamed:    api/tests/__init__.py -> tests/__init__.py
	new file:   tests/fixtures/test_data.json
	modified:   tests/test_fixtures.py
	new file:   tests/test_views/__init__.py
	modified:   tests/test_views/test_api_accounts_describe.py

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* new test - auth/remove

* conflicts solved and merged

* new bracnh for conflict resolution
Changes to be committed:
	modified:   .github/workflows/django.yml
	modified:   tests/test_views/test_api_objects_drafts_create.py

* update (#198)

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* added new test file- api/auth/remove.py (#196)

* unit tests

test_fixtures.py - Exports the database as a pytest fixture that can be used for testing

* Add files via upload

* New api test files

* Fixed test_api_accounts_describe
Changes to be committed:
	modified:   api/apps.py
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	deleted:    api/tests/test_bcos.json
	deleted:    api/tests/test_forms.py
	deleted:    api/tests/test_group_post_api.py
	deleted:    api/tests/test_model_bco.py
	deleted:    api/tests/test_model_groups.py
	deleted:    api/tests/test_model_prefix.py
	deleted:    api/tests/test_model_user.py
	deleted:    api/tests/test_prefix_post_api.py
	deleted:    api/tests/test_views.py
	deleted:    api/tests_automated.py
	modified:   api/views.py
	modified:   bcodb/settings.py
	renamed:    api/tests/__init__.py -> tests/__init__.py
	new file:   tests/fixtures/test_data.json
	modified:   tests/test_fixtures.py
	new file:   tests/test_views/__init__.py
	modified:   tests/test_views/test_api_accounts_describe.py

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* new test - auth/remove

* conflicts solved and merged

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Hadley King <[email protected]>
Co-authored-by: hadleyking <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Reeya Gupta <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Reeya Gupta <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Reeya Gupta <[email protected]>
* unit tests

test_fixtures.py - Exports the database as a pytest fixture that can be used for testing

* Add files via upload

* New api test files

* Fixed test_api_accounts_describe
Changes to be committed:
	modified:   api/apps.py
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	deleted:    api/tests/test_bcos.json
	deleted:    api/tests/test_forms.py
	deleted:    api/tests/test_group_post_api.py
	deleted:    api/tests/test_model_bco.py
	deleted:    api/tests/test_model_groups.py
	deleted:    api/tests/test_model_prefix.py
	deleted:    api/tests/test_model_user.py
	deleted:    api/tests/test_prefix_post_api.py
	deleted:    api/tests/test_views.py
	deleted:    api/tests_automated.py
	modified:   api/views.py
	modified:   bcodb/settings.py
	renamed:    api/tests/__init__.py -> tests/__init__.py
	new file:   tests/fixtures/test_data.json
	modified:   tests/test_fixtures.py
	new file:   tests/test_views/__init__.py
	modified:   tests/test_views/test_api_accounts_describe.py

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* new test - auth/remove

* conflicts solved and merged

* new bracnh for conflict resolution
Changes to be committed:
	modified:   .github/workflows/django.yml
	modified:   tests/test_views/test_api_objects_drafts_create.py

* update (#198)

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* added new test file- api/auth/remove.py (#196)

* unit tests

test_fixtures.py - Exports the database as a pytest fixture that can be used for testing

* Add files via upload

* New api test files

* Fixed test_api_accounts_describe
Changes to be committed:
	modified:   api/apps.py
	modified:   api/model/groups.py
	modified:   api/model/prefix.py
	deleted:    api/tests/test_bcos.json
	deleted:    api/tests/test_forms.py
	deleted:    api/tests/test_group_post_api.py
	deleted:    api/tests/test_model_bco.py
	deleted:    api/tests/test_model_groups.py
	deleted:    api/tests/test_model_prefix.py
	deleted:    api/tests/test_model_user.py
	deleted:    api/tests/test_prefix_post_api.py
	deleted:    api/tests/test_views.py
	deleted:    api/tests_automated.py
	modified:   api/views.py
	modified:   bcodb/settings.py
	renamed:    api/tests/__init__.py -> tests/__init__.py
	new file:   tests/fixtures/test_data.json
	modified:   tests/test_fixtures.py
	new file:   tests/test_views/__init__.py
	modified:   tests/test_views/test_api_accounts_describe.py

* Fix Bulk Publish function

Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_publish.py
	modified:   api/scripts/utilities/JsonUtils.py

* Add reset_token API

Issue #158

* Formatting for Add/Remove ORCID

updated dev DB
Related to biocompute-objects/portal_userdb#90
Changes to be committed:
	modified:   admin_only/db.sqlite3.dev
	modified:   authentication/apis.py

* Fix #134
Changes to be committed:
	modified:   authentication/services.py

* Bump django from 3.2.10 to 3.2.13

Bumps [django](https://github.com/django/django) from 3.2.10 to 3.2.13.
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@3.2.10...3.2.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* new test - auth/remove

* conflicts solved and merged

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Hadley King <[email protected]>
Co-authored-by: hadleyking <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Reeya Gupta <[email protected]>

* Fix Swagger for `GET_published_object_by_id`

* tests and documentation for 'get_object_id'

Fix #178

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Reeya Gupta <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Reeya Gupta <[email protected]>
Fix #169
Changes to be committed:
	modified:   authentication/apis.py
	modified:   authentication/services.py
	modified:   tests/fixtures/test_data.json
	modified:   tests/test_views/test_api_auth_add.py
Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   api/views.py
Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_drafts_publish.py
	modified:   api/views.py
	modified:   tests/fixtures/test_data.json
	modified:   tests/test_views/test_api_objects_drafts_publish.py
* objects_search

* Fix #175
Changes to be committed:
	modified:   search/apis.py
	modified:   tests/test_views/test_api_objects_drafts_publish.py
	modified:   tests/test_views/test_api_objects_search.py

---------

Co-authored-by: hadleyking <[email protected]>
Base automatically changed from 23.09 to main October 17, 2023 19:05
@HadleyKing HadleyKing closed this Oct 17, 2023
@HadleyKing HadleyKing deleted the objects_drafts_permissions_set branch October 17, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants