PromucFlow_constructor/app/client/src/layoutSystems
ashit-rath cdee74e93b
chore: Split JS collection update api call to override for modules (#34009)
## Description
The API call is moved to a saga called `updateJSCollectionAPICall` whose
role is to identify whom this JS collection belongs to `Page` / `Module`
/ `Workflow` and then call the correct API.

In the context of CE, it just calls the existing `updateJSCollection`
but in EE this saga (`updateJSCollectionAPICall`) is extended and does
the checking mentioned above.

For more info on extension check the [EE
PR](https://github.com/appsmithorg/appsmith-ee/pull/4356)

Fixes https://github.com/appsmithorg/appsmith/issues/34008

## Automation

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

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9465185887>
> Commit: 5e0214b97de20cf1b9042717fdb578f872c2c7d3
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9465185887&attempt=1"
target="_blank">Click here!</a>

<!-- 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

- **Tests**
  - Added test cases for the `updateJSCollectionAPICall` function.
- Updated `pageId` constant in `pasteSagas.test.ts` for improved
readability and consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ashok Kumar M <35134347+marks0351@users.noreply.github.com>
2024-06-11 15:55:34 +02:00
..
anvil chore: Split JS collection update api call to override for modules (#34009) 2024-06-11 15:55:34 +02:00
autolayout chore: update storybook (#32828) 2024-04-22 12:17:28 +03:00
common fix: vanishing widgets in protected branches (#34129) 2024-06-10 19:34:54 +05:30
fixedlayout chore: Unify ID extraction regex from browser url (#33925) 2024-06-11 15:14:54 +05:30
types feat: Asymmetric padding in Anvil (#30964) 2024-02-16 17:13:37 +05:30
CanvasFactory.test.tsx chore: Layout system wise restructuring of Canvas Widget (#27496) 2023-10-04 17:23:29 +05:30
CanvasFactory.tsx chore: Layout system wise restructuring of Canvas Widget (#27496) 2023-10-04 17:23:29 +05:30
withLayoutSystemWidgetHOC.test.tsx feat: enable DnD for entire modal widget(including header and footer). (#33580) 2024-05-21 14:54:07 +05:30
withLayoutSystemWidgetHOC.tsx chore: add highlight calculation logic for layouts. (#27980) 2023-10-19 16:27:40 -04:00