Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fix quality metadata and fixedFindings for changeset entry #32

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

drdavella
Copy link
Member

No description provided.

@drdavella drdavella requested review from nahsra and gilday December 4, 2024 19:25
@@ -15,22 +16,33 @@ public final class CodeTFChangesetEntry {
private final List<CodeTFChange> changes;

private final CodeTFAiMetadata ai;
private final Strategy strategy;
private final boolean provisional;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the spec already calls for this to be a boolean, so I'm probably too late on this feedback, but replacing "boolean" with "enum that has two items" leaves room for expansion and better describes what this is e.g.

enum Maturity { MATURE, PROVISIONAL; }

Copy link
Member Author

Choose a reason for hiding this comment

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

Noted, but at this point I think we will need to revisit it at a later date.

Comment on lines +38 to +39
this.strategy = strategy;
this.provisional = provisional;
this.fixedFindings = CodeTFValidator.toImmutableCopyOrEmptyOnNull(fixedFindings);
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume all of these may be null to allow for backwards compatibility, but do we expect to eventually make these required?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have a strong opinion about this. Provisional has a reasonable default of false but strategy does not.

@drdavella drdavella force-pushed the spec-update-metadata branch from ad881f0 to 265ba8a Compare December 9, 2024 19:32
@drdavella drdavella merged commit d324d56 into main Dec 9, 2024
1 check passed
@drdavella drdavella deleted the spec-update-metadata branch December 9, 2024 19:33
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.

3 participants