Open jeffy-mathew opened 3 weeks ago
A JIRA Issue ID is missing from your branch name, PR title and PR description! 🦄
Your branch: exp/add-edition-info-to-healthcheck
Your PR title: Add gateway edition to healthcheck response
Your PR description: ## Description ## Related Issue ## Motivation and Context ## How This Has Been Tested ## Screenshots (if appropriate) ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality) ## Checklist - [ ] I ensured that the documentation is up to date - [ ] I explained why this PR updates go.mod in detail with reasoning why it's required - [ ] I would like a code coverage CI quality gate exception and have explained why
If this is your first time contributing to this repository - welcome!
Please refer to jira-lint to get started.
Without the JIRA Issue ID in your branch name you would lose out on automatic updates to JIRA via SCM; some GitHub status checks might fail.
Valid sample branch names: ‣ feature/shiny-new-feature--mojo-10' ‣ 'chore/changelogUpdate_mojo-123' ‣ 'bugfix/fix-some-strange-bug_GAL-2345'Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪ |
🧪 No relevant tests |
🔒 No security concerns identified |
⚡ No major issues detected |
Explore these optional code suggestions:
Category | Suggestion | Score |
Possible bug |
Validate the
___
**Validate the | 9 |
API Changes
--- prev.txt 2024-10-29 07:41:57.696286096 +0000
+++ current.txt 2024-10-29 07:41:51.312279831 +0000
@@ -1862,6 +1862,7 @@
Output string `json:"output,omitempty"`
Description string `json:"description,omitempty"`
Details map[string]HealthCheckItem `json:"details,omitempty"`
+ Edition string `json:"edition,omitempty"`
}
type HealthCheckStatus string
Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
User description
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
enhancement
Description
Edition
field to theHealthCheckResponse
struct to include edition information in the health check response.GetEdition
function in separate files for Community and Enterprise editions to return the respective edition strings.liveCheckHandler
to populate theEdition
field using theGetEdition
function.PRDescriptionHeader.CHANGES_WALKTHROUGH
health_check.go
Add Edition field to HealthCheckResponse struct
apidef/health_check.go - Added `Edition` field to `HealthCheckResponse` struct.
health_check.go
Include Edition information in health check response
gateway/health_check.go
edition
package.Edition
field inHealthCheckResponse
usingedition.GetEdition()
.edition_ce.go
Define GetEdition function for Community edition
internal/edition/edition_ce.go - Added `GetEdition` function returning "Community".
edition_ee.go
Define GetEdition function for Enterprise edition
internal/edition/edition_ee.go - Added `GetEdition` function returning "Enterprise".