Skip to content

Add: missing notification Level urgent#295

Merged
alex-heine merged 2 commits intomainfrom
VTI-784/Add_Ruleoptions_Endpoint
Mar 4, 2026
Merged

Add: missing notification Level urgent#295
alex-heine merged 2 commits intomainfrom
VTI-784/Add_Ruleoptions_Endpoint

Conversation

@alex-heine
Copy link
Copy Markdown
Contributor

What

  • Add missing notification urgent Level
  • Add AllowedLevels slice

Why

To cover all possible notification Levels

References

Checklist

@alex-heine alex-heine requested review from a team as code owners March 4, 2026 14:19
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Dependency Review

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

Snapshot Warnings

⚠️: No snapshots were found for the head SHA c8e1785.
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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Conventional Commits Report

Type Number
Changed 1
Added 1

🚀 Conventional commits found.

@alex-heine alex-heine added the alpha release Set label to create an alpha pre release label Mar 4, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.29%. Comparing base (a753feb) to head (c8e1785).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #295   +/-   ##
=======================================
  Coverage   57.29%   57.29%           
=======================================
  Files          70       70           
  Lines        3939     3939           
=======================================
  Hits         2257     2257           
  Misses       1486     1486           
  Partials      196      196           
Flag Coverage Δ
opensearch-tests 95.68% <ø> (ø)
postgres-tests 92.03% <ø> (ø)
unit-tests 51.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alex-heine alex-heine merged commit 4284233 into main Mar 4, 2026
13 checks passed
@alex-heine alex-heine deleted the VTI-784/Add_Ruleoptions_Endpoint branch March 4, 2026 14:36
alex-heine added a commit to greenbone/opensight-notification-service that referenced this pull request Mar 6, 2026
## What
- Add ruleoptions endpoint
- Change all Level references to notificaitons.Level

## Why
To ensure no wrong level's are saved and the ruleoptions return
everything needed to create a notification rule.

## References
- greenbone/opensight-golang-libraries#295
- https://jira.greenbone.net/browse/VTI-784

## Checklist
- [ ] Tests
- [ ] Got all spots for the Rule.Level type string replaced by
notifications.Level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alpha release Set label to create an alpha pre release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants