-
Notifications
You must be signed in to change notification settings - Fork 554
feat: App grouping BE #2979
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
Merged
Merged
feat: App grouping BE #2979
Changes from 28 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
71df80d
added environment wise app workflow
vikramdevtron c0d29ad
app workflow list for environment
vikramdevtron 8abed14
Merge branch 'main' into app-grouping
vikramdevtron 601bc86
fix
vikramdevtron 6af1f28
added new api for app grouping
vikramdevtron 7913d2c
pipelines for env ids
vikramdevtron af6dfe0
fix
vikramdevtron eba130a
added workflow status api
vikramdevtron 8273ad9
Merge branch 'main' into app-grouping
vikramdevtron e247f9c
added workflow status api
vikramdevtron 072db2e
fix
vikramdevtron 3c8048e
wip
vikramdevtron 9784c38
wip
vikramdevtron 6899b48
urls modified for app-grouping
vikramdevtron 4a6ab0d
code refactor
vikramdevtron 56be8ec
rbac added for app grouping api's
vikramdevtron 226b33e
Merge branch 'main' into app-grouping
vikramdevtron e506bd6
added offset and size filter for env list for app grouping
vikramdevtron 7929a28
offset and size refix for app grouping api
vikramdevtron 0a71fdf
total count addeded for app grouping
vikramdevtron 2f703bc
app count in app grouping api
vikramdevtron 9784e08
handle no data found for app-grouping api's
vikramdevtron b7b58b7
pagination changes
vikramdevtron 35b1bed
deployment status
vikramdevtron b48a5db
env deployemt status for app
vikramdevtron 3358adf
env app deployment status fix
vikramdevtron c5a6462
fix
vikramdevtron 98d1335
default size removed for app grouping list
vikramdevtron 9d6e730
app deployment status for app grouping fix
vikramdevtron 36981ed
review changes
vikramdevtron 0d521c2
app listing size optional
vikramdevtron 532e921
review changes rbac refactor
vikramdevtron 2c79864
order by env name for app grouping env list
vikramdevtron 6a3f0ea
token replaced by emailId for app grouping api's
vikramdevtron e6226ef
fixes
vikramdevtron 2c21ad9
Merge branch 'main' into app-grouping
vikramdevtron 752b742
review changes for const on app grouping
vikramdevtron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package router | ||
|
|
||
| import ( | ||
| "github.com/devtron-labs/devtron/api/restHandler" | ||
| "github.com/devtron-labs/devtron/api/restHandler/app" | ||
| "github.com/gorilla/mux" | ||
| ) | ||
|
|
||
| type AppGroupingRouter interface { | ||
| InitAppGroupingRouter(router *mux.Router) | ||
| } | ||
| type AppGroupingRouterImpl struct { | ||
| restHandler app.PipelineConfigRestHandler | ||
| appWorkflowRestHandler restHandler.AppWorkflowRestHandler | ||
| } | ||
|
|
||
| func NewAppGroupingRouterImpl(restHandler app.PipelineConfigRestHandler, appWorkflowRestHandler restHandler.AppWorkflowRestHandler) *AppGroupingRouterImpl { | ||
| return &AppGroupingRouterImpl{ | ||
| restHandler: restHandler, | ||
| appWorkflowRestHandler: appWorkflowRestHandler, | ||
| } | ||
| } | ||
|
|
||
| func (router AppGroupingRouterImpl) InitAppGroupingRouter(appGroupingRouter *mux.Router) { | ||
| appGroupingRouter.Path("/{envId}/app-wf"). | ||
| HandlerFunc(router.appWorkflowRestHandler.FindAppWorkflowByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/ci-pipeline").HandlerFunc(router.restHandler.GetCiPipelineByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/cd-pipeline").HandlerFunc(router.restHandler.GetCdPipelinesByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/external-ci").HandlerFunc(router.restHandler.GetExternalCiByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/workflow/status").HandlerFunc(router.restHandler.FetchAppWorkflowStatusForTriggerViewByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/app-grouping").HandlerFunc(router.restHandler.GetEnvironmentListWithAppData).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/applications").HandlerFunc(router.restHandler.GetApplicationsByEnvironment).Methods("GET") | ||
| appGroupingRouter.Path("/{envId}/deployment/status").HandlerFunc(router.restHandler.FetchAppDeploymentStatusForEnvironments).Methods("GET") | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.