Skip to content

Conversation

@baxeaz
Copy link
Contributor

@baxeaz baxeaz commented May 22, 2025

What was the problem/requirement? (What/Why)

Recent changes to FormatString to support and require a context made conversion and initialization of subclasses in _model overly verbose.

What was the solution? (How)

Add a default context to subclasses.

What is the impact of this change?

Simplify converting existing subclasses

How was this change tested?

openjd-sessions-for-python unit tests needed converting. Initially converting them required both the class constructor and the context initializer at every occurrence. Reconverted with this change and it significantly reduced the overhead. (Conversion PR is in a follow on)

  • Have you run the unit tests?
    Yes

Was this change documented?

NA

Is this a breaking change?

No, it's simplifying converting to support the previous change which was breaking.

Does this change impact security?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…odel classes inheriting from FormatString to simplify conversion/initialization

Signed-off-by: Brian Axelson <[email protected]>
@baxeaz baxeaz requested a review from a team as a code owner May 22, 2025 04:14
@sonarqubecloud
Copy link

@epmog epmog merged commit 9bc839f into OpenJobDescription:mainline May 22, 2025
19 checks passed
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