Skip to content

Require Model ID#5443

Merged
greenbonebot merged 6 commits into
mainfrom
require-model-id
Jul 23, 2026
Merged

Require Model ID#5443
greenbonebot merged 6 commits into
mainfrom
require-model-id

Conversation

@bjoernricks

Copy link
Copy Markdown
Contributor

What

Require Model ID

Why

With the split of the filter into two different classes it is now possible to require the id for all model classes. Filter was the only model that couldn't have an ID. The Filter model class implemented several use cases where no ID is available. These cases are now split into a different class.

References

https://jira.greenbone.net/browse/GEA-1957

Checklist

  • Tests

@bjoernricks
bjoernricks requested a review from a team as a code owner July 22, 2026 11:13
@greenbonebot
greenbonebot enabled auto-merge (rebase) July 22, 2026 11:13
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA e59f8dc.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

All EntityModels need to have an id now.
Allow to pass different init data to the model testing helpers. This is
required if some model requires additional data besides the id.
Set id for all model tests now it's required.
@greenbonebot
greenbonebot merged commit 473f329 into main Jul 23, 2026
25 checks passed
@greenbonebot
greenbonebot deleted the require-model-id branch July 23, 2026 08:59
@mergify

mergify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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