Skip to content

Conversation

@bjoernricks
Copy link
Contributor

What

TypeScript for NvtFamiliesCommand and Alert commands

Noe: AlertCommand needs some additional refactoring when the Alert UI parts are converted to TypeScript.

Why

Convert NvtFamiliesCommand and Alert commands to TypeScript.

References

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

Checklist

  • Tests

Parsing from an empty element should behave (nearly) the same as
creating a new instance. Therefore return undefined if specific sub
elements are not available instead of creating default objects.
Also implement base tests for the Alert commands.
@bjoernricks bjoernricks requested a review from a team as a code owner January 12, 2026 09:51
@greenbonebot greenbonebot enabled auto-merge (rebase) January 12, 2026 09:51
@github-actions
Copy link

Dependency Review

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

Snapshot Warnings

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

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

❌ Patch coverage is 96.10390% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.95%. Comparing base (bd5154e) to head (bdda40b).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/gmp/commands/alert.ts 94.23% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5057      +/-   ##
==========================================
+ Coverage   75.74%   75.95%   +0.20%     
==========================================
  Files        1137     1138       +1     
  Lines       29668    29651      -17     
  Branches     8893     8859      -34     
==========================================
+ Hits        22471    22520      +49     
+ Misses       6435     6372      -63     
+ Partials      762      759       -3     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@greenbonebot greenbonebot merged commit 21a5b69 into main Jan 12, 2026
24 checks passed
@greenbonebot greenbonebot deleted the typescript-gmp-commands branch January 12, 2026 10:08
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.

4 participants