Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ private Mono<ApplicationJson> exportFilteredCustomJSLib(
.getAllJSLibsInContext(branchedApplicationId, CreatorContextType.APPLICATION, false)
.flatMap(customJSLibs -> {
List<CustomJSLib> updatedCustomJSLibList = customJSLibs.stream()
.filter(customJSLib -> customJSLibSet.contains(customJSLib.getId()))
.filter(customJSLib -> customJSLibSet.contains(customJSLib.getId())
|| customJSLibSet.contains(customJSLib.getName()))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test for this? The changes look good otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added test case for partial export as that was missing. This includes customjs lib export

.peek(CustomJSLib::sanitiseToExportDBObject)
.toList();
applicationJson.setCustomJSLibList(updatedCustomJSLibList);
Expand Down