PromucFlow_constructor/app/client/cypress/fixtures/executeAction.json
Aman Agarwal 3bcb1daf73
fix: onPageLoad false failure issue (#14141)
1. Fixed on page load actions getting called multiple times.
2. Now Evaluation only happens once we complete the fetching of the page's all entities including js objects and actions, this avoids cases where actions are not defined when ran.

Co-authored-by: Rishabh-Rathod <rishabh.rathod@appsmith.com>
2022-06-06 09:26:14 +05:30

651 lines
19 KiB
JSON

{
"clientSchemaVersion": 1,
"serverSchemaVersion": 4,
"exportedApplication": {
"name": "Execute Action Test",
"isPublic": false,
"appIsExample": false,
"unreadCommentThreads": 0,
"color": "#D9E7FF",
"icon": "camera",
"slug": "execute-action-test",
"evaluationVersion": 2,
"applicationVersion": 2,
"isManualUpdate": false,
"new": true
},
"datasourceList": [],
"pageList": [
{
"userPermissions": [
"read:pages",
"manage:pages"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987c9ec43c3d0bd6572222",
"unpublishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"id": "Page1",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 4896.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 1290.0,
"containerStyle": "none",
"snapRows": 125.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 26.0,
"bottomRow": 36.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.users.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "feinx8nce5",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page1_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"publishedPage": {
"name": "Page1",
"slug": "page1",
"layouts": [
{
"id": "Page1",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 4896.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 1290.0,
"containerStyle": "none",
"snapRows": 125.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 1292.0,
"dynamicTriggerPathList": [],
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 26.0,
"bottomRow": 36.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.users.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "feinx8nce5",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page1_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"new": true
},
{
"userPermissions": [
"read:pages",
"manage:pages"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987cdac43c3d0bd6572227",
"unpublishedPage": {
"name": "Page2",
"slug": "page2",
"layouts": [
{
"id": "Page2",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 730.0,
"containerStyle": "none",
"snapRows": 70.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 710.0,
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 31.0,
"bottomRow": 41.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.users.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "31eat3ae9u",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page2_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"publishedPage": {
"name": "Page2",
"slug": "page2",
"layouts": [
{
"id": "Page2",
"userPermissions": [],
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 1224.0,
"snapColumns": 64.0,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0.0,
"bottomRow": 730.0,
"containerStyle": "none",
"snapRows": 70.0,
"parentRowSpace": 1.0,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 59.0,
"minHeight": 710.0,
"parentColumnSpace": 1.0,
"dynamicBindingPathList": [],
"leftColumn": 0.0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 31.0,
"bottomRow": 41.0,
"parentRowSpace": 10.0,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"overflow": "NONE",
"fontFamily": "{{appsmith.theme.fontFamily.appFont}}",
"parentColumnSpace": 20.0625,
"dynamicTriggerPathList": [],
"leftColumn": 23.0,
"dynamicBindingPathList": [
{
"key": "fontFamily"
},
{
"key": "borderRadius"
},
{
"key": "text"
}
],
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "User count :{{Api1.data.users.length}}",
"key": "i4b3tj04fv",
"isDeprecated": false,
"rightColumn": 38.0,
"textAlign": "LEFT",
"widgetId": "31eat3ae9u",
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"version": 1.0,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
"fontSize": "1rem"
}
]
},
"layoutOnLoadActions": [
[
{
"id": "Page2_Api1",
"name": "Api1",
"confirmBeforeExecute": false,
"pluginType": "API",
"jsonPathKeys": [],
"timeoutInMillisecond": 10000
}
]
],
"new": false
}
],
"userPermissions": []
},
"new": true
}
],
"pageOrder": [
"Page1",
"Page2"
],
"publishedPageOrder": [
"Page1",
"Page2"
],
"publishedDefaultPageName": "Page1",
"unpublishedDefaultPageName": "Page1",
"actionList": [
{
"id": "Page1_Api1",
"userPermissions": [
"read:actions",
"execute:actions",
"manage:actions"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987cafc43c3d0bd6572224",
"pluginType": "API",
"pluginId": "restapi-plugin",
"unpublishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "https://mock-api.appsmith.com"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/users",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "pageSize",
"value": "5"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"publishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "https://mock-api.appsmith.com"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page1",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/users",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "pageSize",
"value": "5"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"new": false
},
{
"id": "Page2_Api1",
"userPermissions": [
"read:actions",
"execute:actions",
"manage:actions"
],
"gitSyncId": "62987c9ec43c3d0bd6572220_62987ce3c43c3d0bd657222a",
"pluginType": "API",
"pluginId": "restapi-plugin",
"unpublishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "https://mock-api.appsmith.com"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page2",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/users",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "pageSize",
"value": "10"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"publishedAction": {
"name": "Api1",
"datasource": {
"userPermissions": [],
"name": "DEFAULT_REST_DATASOURCE",
"pluginId": "restapi-plugin",
"datasourceConfiguration": {
"url": "https://mock-api.appsmith.com"
},
"invalids": [],
"messages": [],
"isValid": true,
"new": true
},
"pageId": "Page2",
"actionConfiguration": {
"timeoutInMillisecond": 10000,
"paginationType": "NONE",
"path": "/users",
"headers": [],
"encodeParamsToggle": true,
"queryParameters": [
{
"key": "pageSize",
"value": "10"
}
],
"bodyFormData": [],
"httpMethod": "GET",
"pluginSpecifiedTemplates": [
{
"value": true
}
],
"formData": {
"apiContentType": "none"
}
},
"executeOnLoad": true,
"dynamicBindingPathList": [],
"isValid": true,
"invalids": [],
"messages": [],
"jsonPathKeys": [],
"confirmBeforeExecute": false,
"userPermissions": [],
"validName": "Api1"
},
"new": false
}
],
"actionCollectionList": [],
"invisibleActionFields": {
"Page1_Api1": {
"unpublishedUserSetOnLoad": true,
"publishedUserSetOnLoad": true
},
"Page2_Api1": {
"unpublishedUserSetOnLoad": true,
"publishedUserSetOnLoad": true
}
},
"editModeTheme": {
"name": "Classic",
"displayName": "Classic",
"new": true,
"isSystemTheme": true
},
"publishedTheme": {
"name": "Classic",
"displayName": "Classic",
"new": true,
"isSystemTheme": true
},
"publishedLayoutmongoEscapedWidgets": {},
"unpublishedLayoutmongoEscapedWidgets": {}
}