Skip to content
Merged
Changes from all commits
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 @@ -11,6 +11,7 @@
import com.appsmith.external.models.ActionDTO;
import com.appsmith.external.models.ArtifactGitReference;
import com.appsmith.external.models.BaseDomain;
import com.appsmith.external.models.CreatorContextType;
import com.appsmith.external.models.DatasourceStorage;
import com.appsmith.external.models.PluginType;
import com.appsmith.git.constants.CommonConstants;
Expand Down Expand Up @@ -310,6 +311,10 @@ protected void setArtifactIndependentResources(
setActionCollectionsInResourceMap(artifactExchangeJson, resourceMap);
}

protected String getContextDirectoryByType(CreatorContextType contextType) {
return PAGE_DIRECTORY;
}

protected void setNewActionsInResourceMap(
ArtifactExchangeJson artifactExchangeJson, Map<GitResourceIdentity, Object> resourceMap) {
if (artifactExchangeJson.getActionList() == null) {
Expand All @@ -325,7 +330,7 @@ protected void setNewActionsInResourceMap(
removeUnwantedFieldFromAction(newAction);
ActionDTO action = newAction.getUnpublishedAction();
final String actionFileName = action.getValidName().replace(".", "-");
final String filePathPrefix = PAGE_DIRECTORY
final String filePathPrefix = getContextDirectoryByType(action.getContextType())
+ DELIMITER_PATH
+ action.calculateContextId()
+ DELIMITER_PATH
Expand Down Expand Up @@ -383,7 +388,7 @@ protected void setActionCollectionsInResourceMap(
.forEach(actionCollection -> {
removeUnwantedFieldFromActionCollection(actionCollection);
ActionCollectionDTO collection = actionCollection.getUnpublishedCollection();
final String filePathPrefix = PAGE_DIRECTORY
final String filePathPrefix = getContextDirectoryByType(collection.getContextType())
+ DELIMITER_PATH
+ collection.calculateContextId()
+ DELIMITER_PATH
Expand Down