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 CodeIssue check type #470

Merged
merged 8 commits into from
Oct 24, 2024
Merged

add CodeIssue check type #470

merged 8 commits into from
Oct 24, 2024

Conversation

davidbloss
Copy link
Contributor

Resolves #504

Added CodeIssue check and update check tests to be more robust

Problem

Solution

Checklist

  • I have run this code, and it appears to resolve the stated issue.
  • This PR does not reduce total test coverage
  • This PR has no user interface changes or has already received approval from product management to change the interface.
  • Does this change require a Terraform schema change?
    • If so what is the ticket or PR #
  • Make a changie entry that explains the customer facing outcome of this change

@davidbloss davidbloss requested a review from rocktavious October 4, 2024 17:36
@davidbloss davidbloss self-assigned this Oct 4, 2024
check_code_issue.go Outdated Show resolved Hide resolved
input.go Outdated Show resolved Hide resolved
input.go Outdated Show resolved Hide resolved
input.go Outdated Show resolved Hide resolved
check_code_issue.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rocktavious rocktavious left a comment

Choose a reason for hiding this comment

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

Lots of issues with this one. Let me know if you want to sit down and chat through it.

@davidbloss davidbloss marked this pull request as draft October 11, 2024 19:56
@davidbloss davidbloss marked this pull request as ready for review October 18, 2024 16:17
check_test.go Outdated
"severity": []string{"sev1", "sev2"},
}),
},
"UpdateCodeIssue": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we'll want to throw a few more "update" test cases in here to ensure it generates the right input for a few of these optional fields. maxAllowed, resolutionTime etc etc

Copy link
Collaborator

@rocktavious rocktavious left a comment

Choose a reason for hiding this comment

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

If the extra tests are too tricky to write correctly because of API validation - then this is 👍

@davidbloss davidbloss changed the title add CodeIssue check type, more robust check testing add CodeIssue check type Oct 24, 2024
check_code_issue.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rocktavious rocktavious left a comment

Choose a reason for hiding this comment

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

Heafty but good work!!

@davidbloss davidbloss merged commit b7f5d59 into main Oct 24, 2024
4 checks passed
@davidbloss davidbloss deleted the db/code-issue-check branch October 24, 2024 19:39
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