-
Notifications
You must be signed in to change notification settings - Fork 554
feat: Add support for git hash in the app and app group overview section #4815
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
Conversation
…p and App Group Overview page (#4811) * Added OpenApi specs for the global plugins * Updated the Global-Plugin Specs for Patch Request handling * Fixes the GlobalPlugin PatchPlugin request * Fixes the GlobalPlugin PatchPlugin request modified * removed the commented code of the GlobalPlugin PatchPlugin filtering * Added the service of getting the Githash in the app overview and App group overview * Modified the unnecesaary code in the service layer of getting the Githash in the app overview and App group overview
| Type string `json:"type"` | ||
| AppId int `json:"appId"` | ||
| } | ||
| type CiArtifactWithParentArtifact struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should move at some common place
pkg/app/AppListingService.go
Outdated
| if _, ok := artifactChildParentMap[artifact.CiArtifactId]; ok { | ||
| ciArtifactIds = []int{artifactChildParentMap[artifact.CiArtifactId]} | ||
| } | ||
| } else if !slices.Contains(ciArtifactIds, artifactChildParentMap[artifact.CiArtifactId]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contains is a linear search, invoking inside for loop will make complexity exponential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved using map
pkg/app/AppListingService.go
Outdated
| } | ||
|
|
||
| gitCommits, exists := gitCommitsWithArtifacts[env.CiArtifactId] | ||
| if exists { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite it for only one assignment and one initialisation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
solved
| @@ -0,0 +1,615 @@ | |||
| openapi: "3.0.3" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it related ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related
|
|
this pr has been resolved in pr reference: |




Description
This include feature of getting the githash of artifacts deployed fot that app in app overview environment section
Also the same feature is there in the app group overview section too as requested.
Fixes #4797
Checklist:
Does this PR introduce a user-facing change?