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

add permission on operation #803

Merged
merged 7 commits into from
Dec 16, 2024
Merged

add permission on operation #803

merged 7 commits into from
Dec 16, 2024

Conversation

Sispheor
Copy link
Contributor

  • Fix UI
  • add perm on operation
  • bulk perm update from service page and portfolio page
  • drop compose v2 support

#724

@Sispheor Sispheor changed the base branch from master to dev December 13, 2024 14:52
@@ -1,6 +1,4 @@
# add this file to the docker compose execution when developing Squest
version: '3.7'

services:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG Breaking changes does not support docker compose v1 anymore

ContentType = apps.get_model('contenttypes', 'ContentType')
operation_content_type = ContentType.objects.get_for_model(Operation)

is_admin_operation, _ = Permission.objects.get_or_create(codename="is_admin_operation", content_type=operation_content_type)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

view_admin_operation to stay consistent

@@ -116,6 +115,8 @@ def __str__(self):
@property
def docs(self):
filtered_doc = list()
if self.service is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

service shouldn't be None, it should be required in Instance

@@ -1,4 +1,5 @@
import logging
from gc import enable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment on lines +15 to +25
"permission": FormUtils.get_default_permission_for_operation(),
},
{
"name": "new_service_2",
"description": "a new service 2",
"permission": FormUtils.get_default_permission_for_operation(),
},
{
"name": "new_service_3",
"description": "a new service 3"
"description": "a new service 3",
"permission": FormUtils.get_default_permission_for_operation(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three times the same

Copy link
Collaborator

@a-belhadj a-belhadj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small changes to do before merge

@Sispheor Sispheor force-pushed the perm branch 3 times, most recently from 541d768 to 1a9afb5 Compare December 16, 2024 09:29
@Sispheor Sispheor merged commit b730d28 into HewlettPackard:dev Dec 16, 2024
2 checks passed
@Sispheor Sispheor deleted the perm branch December 16, 2024 10:22
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.

3 participants