chore: added ce support for KB changes (#28068)

## Description
> TL;DR: CE support for PR:
https://github.com/appsmithorg/appsmith-ee/pull/2645/

#### PR fixes following issue(s)
Fixes https://github.com/appsmithorg/appsmith-ee/issues/2644

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

#### How Has This Been Tested?
- [ ] Manual

## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
This commit is contained in:
Manish Kumar 2023-10-16 10:11:12 +05:30 committed by manish kumar
parent 18553c6a8d
commit 0c9510704c
2 changed files with 5 additions and 2 deletions

View File

@ -3,5 +3,6 @@ package com.appsmith.server.constants;
public enum SerialiseApplicationObjective {
// For which purpose we are serialising the application from DB
VERSION_CONTROL,
SHARE
SHARE,
KNOWLEDGE_BASE_GENERATION
}

View File

@ -173,7 +173,9 @@ public class ImportExportApplicationServiceCEImpl implements ImportExportApplica
return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, FieldName.APPLICATION_ID));
}
boolean isGitSync = SerialiseApplicationObjective.VERSION_CONTROL.equals(serialiseFor);
boolean isGitSync = SerialiseApplicationObjective.VERSION_CONTROL.equals(serialiseFor)
|| SerialiseApplicationObjective.KNOWLEDGE_BASE_GENERATION.equals(serialiseFor);
exportingMetaDTO.setIsGitSync(isGitSync);
exportingMetaDTO.setExportWithConfiguration(false);