Skip to content

Refactor result package#152

Merged
martialblog merged 19 commits into
mainfrom
refactor_result
Jun 16, 2026
Merged

Refactor result package#152
martialblog merged 19 commits into
mainfrom
refactor_result

Conversation

@RincewindsHat

@RincewindsHat RincewindsHat commented Jun 15, 2026

Copy link
Copy Markdown
Member

This patch removes some parts of the overall object in favor of putting everything into subcheck objects.

See #151

This patch removes some parts of the overall object in favor
of putting everything into subcheck objects.

@martialblog martialblog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice.

Note:

	if state < check.OK || state > check.Unknown {
		return errors.New("Default State is not a valid result state. Got " + state.String() + " which is not valid")
	}

We can probably remove this, since we now have proper types.

Comment thread result/overall.go Outdated
@martialblog martialblog added this to the v1.0.0 milestone Jun 15, 2026
@RincewindsHat

Copy link
Copy Markdown
Member Author

Very nice.

Note:

	if state < check.OK || state > check.Unknown {
		return errors.New("Default State is not a valid result state. Got " + state.String() + " which is not valid")
	}

We can probably remove this, since we now have proper types.

done

@RincewindsHat

Copy link
Copy Markdown
Member Author

sadly this conflicts with the recent changes on main which I did not have at that time. Gotta do an ugly merge now.

@martialblog martialblog marked this pull request as ready for review June 15, 2026 12:30
Lorenz Kästle added 4 commits June 15, 2026 15:27
This patch removes the "Summary" attribute from the overall
object and replaces the functionality with a generated
summary.
If the overall state is OK, the summary is either a user given
string from a new "OKSummary" attribute or auto generated
(as previously) with just a small statistics over the states
of all PartialResults.

If the overall state is NOT OK, the summary is fetched
from the worst-deepest-first PartialResult Output.
Comment thread status.go
Comment thread result/overall.go Outdated
Comment thread result/overall.go Outdated
Comment thread result/overall.go
@martialblog martialblog merged commit b2d5b91 into main Jun 16, 2026
2 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.

2 participants