Skip to content

Comments

Host and operating system assets can be exported again.#5111

Open
jhelmold wants to merge 3 commits intomainfrom
GEA-1564_Export_of_host_and_os_is_broken
Open

Host and operating system assets can be exported again.#5111
jhelmold wants to merge 3 commits intomainfrom
GEA-1564_Export_of_host_and_os_is_broken

Conversation

@jhelmold
Copy link
Member

What

Fixed the problem with the export of hosts and operating systems and added some Tests.

Why

This was a bug.

References

GEA-1564

Checklist

Tested manually on my local development system.

  • Tests

@github-actions
Copy link

github-actions bot commented Feb 11, 2026

Dependency Review

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

Snapshot Warnings

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

@jhelmold jhelmold marked this pull request as ready for review February 12, 2026 08:24
@jhelmold jhelmold requested a review from a team as a code owner February 12, 2026 08:24
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.06%. Comparing base (a82ff70) to head (ee47a88).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5111   +/-   ##
=======================================
  Coverage   77.05%   77.06%           
=======================================
  Files        1170     1170           
  Lines       30514    30519    +5     
  Branches     9124     9089   -35     
=======================================
+ Hits        23514    23519    +5     
  Misses       6260     6260           
  Partials      740      740           

☔ 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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please split the tests for the HostCommand and the HostsCommand into two distinct test.ts files?

Copy link
Contributor

Choose a reason for hiding this comment

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

Same for os. Would be best to have two distinct test files operatingsystem.test.ts and operatingsystems.test.ts.

data: {
cmd: 'bulk_export',
resource_type: this.name,
asset_type: this.getParams().asset_type,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not correct. The getParams method is for getting the params of a GET request and this is a POST request. I am not completely sure how to fix this issue best. Either the export needs to call httpPostWithTransform or you need to allow to pass additional parameters to the export method and override it for operating and host commands. I am not sure why httpRequestWithRejectionTransform is called here instead of httpPostWithTransform. Maye httpPostWithTransform has some unwanted side effects for the export method and adds some unwanted extra parameters. Having the tests now should allow for getting this right now.

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.

2 participants