## Description In order to account for multiple environments changes, the DatasourceContextServiceImpl.java methods needs refactoring to achieve minimal code duplicity. - [x] Create class to hold the key for dscontext maps. - [x] Refactor methods in order to have minimum duplicity. Fixes #19451 This PR is to facilitate the below reference PR in achieving minimum code duplicity and reducing excess db calls to fetch same resource. More reference: https://github.com/appsmithorg/appsmith-ee/pull/756 ## Type of change - chore ## This has been tested - Manual - Jest ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag |
||
|---|---|---|
| .. | ||
| client | ||
| rts | ||
| server | ||
| shared | ||
| util | ||
| yarn.lock | ||