PromucFlow_constructor/app
Manish Kumar 5aadb4161e
chore: datasourceContextService refactor (#19485)
## 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
2023-01-16 21:22:55 +07:00
..
client chore: Refactor for JSFunction execution auditLogs (#19671) 2023-01-16 17:26:18 +05:30
rts chore: bump json5 from 2.2.1 to 2.2.2 in /app/rts (#19304) 2023-01-02 18:06:22 +05:30
server chore: datasourceContextService refactor (#19485) 2023-01-16 21:22:55 +07:00
shared chore: bump json5 from 2.2.1 to 2.2.3 in /app/shared/ast (#19431) 2023-01-02 18:24:57 +05:30
util chore: bump decode-uri-component from 0.2.0 to 0.2.2 in /app/util/plugin-generation (#18658) 2022-12-07 11:00:38 +05:30
yarn.lock