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

Change Audit models ACLs on Flaw unembargo #857

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

superbuggy
Copy link
Contributor

  • Changes ACL read/write groups on Audit models on Flaw unembargo
  • Adds test to check Flaw ACL groups after unembargo

Closes OSIDB-3463

@superbuggy superbuggy requested a review from a team December 10, 2024 22:13
@superbuggy superbuggy force-pushed the feature/OSIDB-3463-reset-flaw-audit-acls-on-unembargo branch 2 times, most recently from 82bf250 to 1cfd63a Compare December 11, 2024 14:21
Comment on lines +540 to +541
db, model_name = ref.pgh_model.split(".")
model_audit = apps.get_model(db, model_name).objects.filter(
Copy link
Member

Choose a reason for hiding this comment

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

There's no need to split the name, you can pass it directly

Suggested change
db, model_name = ref.pgh_model.split(".")
model_audit = apps.get_model(db, model_name).objects.filter(
model_audit = apps.get_model(ref.pgh_model).objects.filter(

Copy link
Contributor

@osoukup osoukup left a comment

Choose a reason for hiding this comment

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

I think this is going the right direction. I have some comments and a few of them seems to me important enough to address

osidb/mixins.py Outdated Show resolved Hide resolved
osidb/tests/endpoints/flaws/test_unembargo.py Show resolved Hide resolved
osidb/mixins.py Outdated Show resolved Hide resolved

```sh
$ podman logs -f osidb-service
```
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not strongly against this but I wonder whether documenting Podman is not beyond OSIDB documentation. There are certainly tons of potentially useful Podman commands but it has its own documentation. If it was some specific OSIDB procedure, it was non-intuitive, etc. then probably let us document it here.

.secrets.baseline Show resolved Hide resolved
@superbuggy superbuggy force-pushed the feature/OSIDB-3463-reset-flaw-audit-acls-on-unembargo branch from 8672b33 to 1c3bc36 Compare December 13, 2024 17:07
Copy link
Contributor

@osoukup osoukup left a comment

Choose a reason for hiding this comment

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

LGTM now. Thank you for addressing my feedback!

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