From 959f5108c2aa46b5ee8c386865a494fa0cbec041 Mon Sep 17 00:00:00 2001 From: sneha122 Date: Tue, 24 Jun 2025 20:01:57 +0530 Subject: [PATCH] chore: backend page unload changes (#41030) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description > [!TIP] > _Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team)._ > > _Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR._ Fixes #`Issue Number` _or_ Fixes [`Issue URL`](https://github.com/appsmithorg/appsmith/issues/40994) > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > ๐ŸŸข ๐ŸŸข ๐ŸŸข All cypress tests have passed! ๐ŸŽ‰ ๐ŸŽ‰ ๐ŸŽ‰ > Workflow run: > Commit: ca483cf57fe3faba6b74b6122d546250e2c6f4d2 > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Tue, 24 Jun 2025 14:20:50 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **New Features** - Added support for triggering actions when a page is unloaded. Co-authored-by: โ€œsneha122โ€ <โ€œsneha@appsmith.comโ€> --- .../java/com/appsmith/external/models/RunBehaviourEnum.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/RunBehaviourEnum.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/RunBehaviourEnum.java index a655509782..e3aa66348b 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/RunBehaviourEnum.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/RunBehaviourEnum.java @@ -6,5 +6,6 @@ package com.appsmith.external.models; public enum RunBehaviourEnum { MANUAL, // Action will only run when manually triggered ON_PAGE_LOAD, // Action will run when the page loads - AUTOMATIC // Action will run automatically (When any of its dependencies change) if the feature flag is enabled + AUTOMATIC, // Action will run automatically (When any of its dependencies change) if the feature flag is enabled + ON_PAGE_UNLOAD, // Action will run when the page unloads }