-
Notifications
You must be signed in to change notification settings - Fork 261
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
[Choreo] Removal of unused internal service resource path named retrieve-api-artifacts and its usage #3639
base: choreo
Are you sure you want to change the base?
Conversation
…rtifacts and its usage
adapter/internal/adapter/adapter.go
Outdated
} else { | ||
adapter.GetAPIs(c, nil, envs, sync.APIArtifactEndpoint, true, apiUUIDList, queryParamMap) | ||
} | ||
} else if conf.ControlPlane.DynamicEnvironments.Enabled { |
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.
We no longer need Dynamic Environments Enabled flag too.
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.
Config is used in multiple places. Since the issue -> https://github.com/wso2-enterprise/choreo/issues/31875
Is bit urgent shall we track removal of it with another task ?
![image](https://private-user-images.githubusercontent.com/40932779/405487385-9f0ac752-134c-4698-aef5-fc478e8026b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODc3OTMsIm5iZiI6MTczODk4NzQ5MywicGF0aCI6Ii80MDkzMjc3OS80MDU0ODczODUtOWYwYWM3NTItMTM0Yy00Njk4LWFlZjUtZmM0NzhlODAyNmIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA0MDQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhNmRiZWM2YjgxZWJmNTkxMzgxMTZmMTc4OThiM2U1ODEyOTY5MTkzMjNkODUwNDMwNDk0YTc4YWRkYzkxMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZylVG8nHTd3SIVAWbgmyCimGjZBgenTAPV64W6qdHjg)
![image](https://private-user-images.githubusercontent.com/40932779/405487690-2d38bb50-46b5-4fcd-a416-c8bb15605387.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODc3OTMsIm5iZiI6MTczODk4NzQ5MywicGF0aCI6Ii80MDkzMjc3OS80MDU0ODc2OTAtMmQzOGJiNTAtNDZiNS00ZmNkLWE0MTYtYzhiYjE1NjA1Mzg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA0MDQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3ZDU5MGI5ZGJkMTBiZmNlMGFkYjZmNDE5ZWI5Zjc2Nzg2NDU2YmI0MzYzOGRhNDdjODg3ZTE5MGEzNzhlZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.roWnugp8x5xifYI_kcOgyKl2mBFncCmUoAddBjG2Epk)
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.
If we remove the code, wont the config get ignored or throw an error?
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.
You mean the cp-overlay config right ?
I'll not throw an error. But we'll have to clean up the repos if we remove the config.
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.
If we remove the code, wont the config get ignored or throw an error?
Ignored.
Since it is always TRUE (feature flag) we can think it's boolean true and remove unnecessary if blocks.
Purpose
$subject
Relates with: https://github.com/wso2-enterprise/choreo/issues/31875
Issues
Fixes #
Automation tests
Tested environments
Not Tested
Maintainers: Check before merge