-
Notifications
You must be signed in to change notification settings - Fork 468
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
Config diff #4619
Open
adi6859
wants to merge
43
commits into
main
Choose a base branch
from
config-diff
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Config diff #4619
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
1fc038b
story(configDiffView) : open api spec
adi6859 8eda368
story(configDiffView) : open api spec updated
adi6859 2d00c6a
story(configDiffView) : open api spec updated for error state
adi6859 00d1e6c
story(configDiffView) : WIP
adi6859 4e3582b
story(configDiffView) : WIP "some code changed"
adi6859 8c9a4cc
story(configDiffView) : support for names added
adi6859 55a2c0c
story(configDiffView) : iota removed
adi6859 bcdfa26
story(configDiffView) : pg no rows handled
adi6859 197db9b
story(configDiffView) : spelling check
adi6859 7469461
story(configDiffView) : code review comment resolved
adi6859 c7a145a
story(configDiffView) : env id added
adi6859 4eaa138
story(configDiffView) : intersection added
adi6859 256e505
story(configDiffView) : comments removed
adi6859 47f798f
story(configDiffView) : code review comment resolved
adi6859 de50f02
story(configDiffView) : comment removed
adi6859 f2947e3
story(configDiffView) : CMCSNames DTO moved
adi6859 a3b3271
story(configDiffView) : main merge
adi6859 44862e9
story(configDiffView) : null case handled
adi6859 7733ea0
story(configDiffView) : logger added
adi6859 06e39fc
story(configDiffView) : main merge
adi6859 e4e39c6
story(configDiffView) : code refactored
adi6859 dce967a
story(configDiffView) : code refactored v2
adi6859 4174161
story(configDiffView) : spec updated
adi6859 186efa7
story(configDiffView) : main merge
adi6859 736047a
story(configDiffView) : code refactored
adi6859 16d07d3
story(configDiffView) : config names
adi6859 3a55c5b
Merge branch 'main' into config-diff
prakash100198 a4e9c4f
Merge branch 'main' into config-diff
prakash100198 706afc6
merged with main
vikramdevtron 014e59d
Merge branch 'main' into config-diff
prakash100198 6196f31
main sync
prakash100198 e076783
overridden and global flag introduced in config diff autocomplete api
prakash100198 a1eba0f
Merge branch 'main' into config-diff
prakash100198 ffa3ba1
ent sync
prakash100198 4749c45
Merge branch 'main' into config-diff
prakash100198 0e319d2
Merge branch 'main' into config-diff
prakash100198 2c5c7c6
using a single key instead of global and overridden key in config/aut…
prakash100198 8696b08
ConfigState made string instead of int
prakash100198 a11549f
Merge branch 'main' into config-diff
prakash100198 f9d9c65
not sending inheriting in case base config
prakash100198 359022a
Merge branch 'main' into config-diff
prakash100198 5628d6c
code review comment incorporation
prakash100198 41784ca
Merge branch 'main' into config-diff
prakash100198 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
story(configDiffView) : code refactored
- Loading branch information
commit 736047a36dbc1176a8135fc56cc852e825d6adb5
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
package config | ||
|
||
import "github.com/devtron-labs/devtron/pkg/pipeline/bean" | ||
|
||
type ConfigState int | ||
|
||
const ( | ||
PublishedConfigState ConfigState = 3 | ||
) | ||
|
||
type ResourceType string | ||
|
||
const ( | ||
CM ResourceType = "ConfigMap" | ||
CS ResourceType = "Secret" | ||
DeploymentTemplate ResourceType = "Deployment Template" | ||
) | ||
|
||
type ConfigProperty struct { | ||
Name string `json:"name"` | ||
ConfigState ConfigState `json:"configState"` | ||
Type ResourceType `json:"type"` | ||
Name string `json:"name"` | ||
ConfigState ConfigState `json:"configState"` | ||
Type bean.ResourceType `json:"type"` | ||
} | ||
type ConfigDataResponse struct { | ||
ResourceConfig []*ConfigProperty `json:"resourceConfig"` | ||
} | ||
|
||
func (config ConfigProperty) getKey() string { | ||
return string(config.Type) + config.Name | ||
} |
This file contains 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 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 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.
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.
-1 should be used as constant to be clear what it denotes
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.
in ide it shows envId