fix: Placeholder for Anvil Application deploy (#39914)

## Description

Adds a CE version for Anvil Application deploy flow


## Automation

/ok-to-test tags="@tag.Anvil"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> 🟣 🟣 🟣 Your tests are running.
> Tests running at:
<https://github.com/appsmithorg/appsmith/actions/runs/14076064490>
> Commit: 507843d7fdf1df605020f41b3351da65636b2184
> Workflow: `PR Automation test suite`
> Tags: `@tag.Anvil`
> Spec: ``
> <hr>Wed, 26 Mar 2025 05:18:32 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced the application publishing process for a more reliable
experience. Now, when you publish an application, the system manages the
process with improved error handling to ensure smoother and more
resilient operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Hetu Nandu 2025-03-26 11:12:58 +05:30 committed by GitHub
parent 3e7b933382
commit 93fdfc967d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import {
updateCurrentApplicationForkingEnabled,
updateApplicationThemeSettingAction,
fetchAllApplicationsOfWorkspace,
publishApplication,
} from "ee/actions/applicationActions";
import AnalyticsUtil from "ee/utils/AnalyticsUtil";
import {
@ -1132,3 +1133,18 @@ export function* deleteNavigationLogoSaga(
});
}
}
export function* publishAnvilApplicationSaga(
action: ReduxAction<PublishApplicationRequest>,
) {
try {
yield put(publishApplication(action.payload.applicationId));
} catch (error) {
yield put({
type: ReduxActionErrorTypes.PUBLISH_ANVIL_APPLICATION_ERROR,
payload: {
error,
},
});
}
}

View File

@ -17,6 +17,7 @@ import {
uploadNavigationLogoSaga,
deleteNavigationLogoSaga,
fetchAllApplicationsOfWorkspaceSaga,
publishAnvilApplicationSaga,
} from "ce/sagas/ApplicationSagas";
import { ReduxActionTypes } from "ee/constants/ReduxActionConstants";
import { all, takeLatest } from "redux-saga/effects";
@ -67,5 +68,9 @@ export default function* applicationSagas() {
ReduxActionTypes.FETCH_UNCONFIGURED_DATASOURCE_LIST,
fetchUnconfiguredDatasourceList,
),
takeLatest(
ReduxActionTypes.PUBLISH_ANVIL_APPLICATION_INIT,
publishAnvilApplicationSaga,
),
]);
}