Skip to content

Add additional conversion methods to step & guest dataclasses#4727

Open
therazix wants to merge 1 commit intomainfrom
fvagner-conversion-methods
Open

Add additional conversion methods to step & guest dataclasses#4727
therazix wants to merge 1 commit intomainfrom
fvagner-conversion-methods

Conversation

@therazix
Copy link
Contributor

@therazix therazix commented Mar 20, 2026

This PR changes some to_spec/to_minimal_spec conversion methods in the step and guest dataclasses and also adds additional ones that were missing. Steps should now be correctly converted, and it should get rid of cannot represent an object errors.

Blocks: #4661

Pull Request Checklist

  • implement the feature

@therazix therazix requested a review from lbrabec as a code owner March 20, 2026 17:37
@therazix therazix added ci | full test Pull request is ready for the full test execution area | maintenance Changes important for efficiency and the long-term health of the project labels Mar 20, 2026
@github-project-automation github-project-automation bot moved this to backlog in planning Mar 20, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR introduces new to_spec and to_minimal_spec methods to several dataclasses within the tmt library, enhancing data serialization capabilities. It also fixes issues related to object representation during conversion. The changes include adding methods to GuestSshData, DiscoverFmfStepData, and other classes, along with necessary imports and adjustments to handle different data types and structures. Review comments have been provided focusing on potential efficiency and readability improvements in data transformation logic.

@LecrisUT LecrisUT moved this from backlog to review in planning Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | maintenance Changes important for efficiency and the long-term health of the project ci | full test Pull request is ready for the full test execution

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

2 participants