* Cleaning up unused config from portal backend migration.
* Remove config used during backend migration.
* Add backend endpoint override from config.json.
* Add AAD and ARM endpoint overrides from config.json.
* Add GRAPH_ENDPOINT override from config.json.
* Remove unused catalog api version.
* Remove isTerminalEnabled from config. Cannot find reference in DE, DE Release, or Frontend.
* Fix mongo client unit tests.
* Removing BackendApi from constants since no longer referenced in the codebase.
* Talked with Tara and added the CATALOG_API_VERSION back to the config and substituted out the hard coded string it was intended to replace.
* Include existing portal backend endpoints in default allow list.
* Add localhost:1234 endpoint for Mongo unit tests.
* Removing old backend local test endpoint from backend endpoint list.
* Default to new backend endpoint if the endpoint in current context does not match existing set in constants.
* Remove some env references.
* Added comments with reasoning for selecting new backend by default.
* Update comment.
* Remove all references to useNewPortalBackendEndpoint now that old backend is disabled in all environments.
* Resolve lint issues.
* Removed references to old backend from Cassandra and Mongo Apis
* fix unit tests
---------
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
* Force useMongoProxyEndpoint to always return true if valid endpoint provided. Enables new Mongo proxy in all environments.
* Checking MP endpoint in config context.
* Enabling cassandra proxy in all environments. Requires later cleanup.
* Simplifying and removing endpoint validation since run when config context is generated.
* Enabling one MP API at a time globally.
* Revent to existing CP selection logic.
* Creating list of globally enable CP apis.
* Add list of mongo and cassandra APIs to config and only enable if environment outside existing list of environments.
* Remove environment checks. If API globally enabled, return true.
* Adding config initialization for mongo unit tests.
* Default to empty enable list to minimize possible impact. Config.json overrides can be used for testing.
Things like ConfigContext.BACKEND_ENDPOINT are dynamically changed, and assigning them statically like this only bypasses that mechanism :(
Co-authored-by: Steve Faulkner <471400+southpolesteve@users.noreply.github.com>