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

Workshop 1 #1130

Merged
merged 50 commits into from
Dec 6, 2024
Merged

Workshop 1 #1130

merged 50 commits into from
Dec 6, 2024

Conversation

Mohamed-Hacene
Copy link
Collaborator

No description provided.

ab-smith and others added 30 commits November 29, 2024 11:06
…tion

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@Mohamed-Hacene Mohamed-Hacene changed the title Ca 674 step 1.4 Workshop 1 Dec 5, 2024
@Mohamed-Hacene Mohamed-Hacene marked this pull request as ready for review December 5, 2024 09:54
Comment on lines 604 to 611
ebios_rm_studies = serializers.SlugRelatedField(
many=True,
slug_field="id",
queryset=EbiosRMStudy.objects.all(),
required=False,
allow_null=True,
write_only=True,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

EBIOS RM stuff leaking on core should be avoided unless absolutely necessary. Since this field would only be needed in EBIOS RM contexts, what about having a serializer inheriting from this one in the ebios_rm app, with the additional field?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, let's take this shortcut.

This allows to parse the value of a select option if it is a number
Copy link
Contributor

@nas-tabchiche nas-tabchiche left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines 604 to 611
ebios_rm_studies = serializers.SlugRelatedField(
many=True,
slug_field="id",
queryset=EbiosRMStudy.objects.all(),
required=False,
allow_null=True,
write_only=True,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, let's take this shortcut.

Copy link
Contributor

Choose a reason for hiding this comment

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

This route should be called baseline instead of base to reflect the naming used by the ANSSI

@nas-tabchiche nas-tabchiche merged commit fa206e5 into main Dec 6, 2024
20 checks passed
@nas-tabchiche nas-tabchiche deleted the CA-674-Step-1.4 branch December 6, 2024 14:04
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants