chore: Split related to custom js libs for module instances#29372
chore: Split related to custom js libs for module instances#29372nidhi-nair merged 1 commit intoreleasefrom
Conversation
WalkthroughWalkthroughThe changes across various files in the Appsmith server codebase reflect a shift towards handling sets of JavaScript libraries (JSLibs) rather than individual ones. This includes method renamings to reflect the visibility of JSLibs, changes in method signatures to accept sets, and refactoring of methods to accommodate these sets. Additionally, there's a new class extension pattern for Changes
TipsChat with CodeRabbit Bot (
|
...ver/src/main/java/com/appsmith/server/applications/jslibs/ApplicationJsLibServiceCEImpl.java
Show resolved
Hide resolved
...ver/src/main/java/com/appsmith/server/applications/jslibs/ApplicationJsLibServiceCEImpl.java
Show resolved
Hide resolved
| public void createExportAppJsonWithCustomJSLibTest() { | ||
| CustomJSLib jsLib = new CustomJSLib("TestLib", Set.of("accessor1"), "url", "docsUrl", "1.0", "defs_string"); | ||
| Mono<Boolean> addJSLibMonoCached = customJSLibService | ||
| .addJSLibToContext(testAppId, CreatorContextType.APPLICATION, jsLib, null, false) | ||
| .addJSLibsToContext(testAppId, CreatorContextType.APPLICATION, Set.of(jsLib), null, false) | ||
| .flatMap(isJSLibAdded -> | ||
| Mono.zip(Mono.just(isJSLibAdded), applicationPageService.publish(testAppId, true))) | ||
| .map(tuple2 -> { |
There was a problem hiding this comment.
The test method name createExportAppJsonWithCustomJSLibTest should be prefixed with test to follow Java's standard naming conventions for test methods.
The test method name createExportAppJsonWithCustomJSLibTest should be prefixed with test to follow Java's standard naming conventions for test methods.
|
/ok-to-test |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7114077049. |
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7114077049.
To know the list of identified flaky tests - Refer here |
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7114077049. |
ApplicationDetail DTO split for extension.
Custom JS libs methods modified for extensibility.
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Refactor
Documentation