Skip to content

fix: only execute pageload actions after successfully fetching actions and jscollections in view mode#13521

Merged
ohansFavour merged 2 commits intoreleasefrom
fix/prevent-execution-of-pageload-actions-before-actions-are-fetched
May 4, 2022
Merged

fix: only execute pageload actions after successfully fetching actions and jscollections in view mode#13521
ohansFavour merged 2 commits intoreleasefrom
fix/prevent-execution-of-pageload-actions-before-actions-are-fetched

Conversation

@ohansFavour
Copy link
Copy Markdown
Contributor

@ohansFavour ohansFavour commented May 3, 2022

Description

Fixes #13504

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Test coverage results 🧪

🔴 Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/prevent-execution-of-pageload-actions-before-actions-are-fetched 
Status File % Stmts % Branch % Funcs % Lines
🔴 total 56.42 (-0.01) 37.8 (-0.01) 36.07 (0) 56.64 (-0.01)
🔴 app/client/src/sagas/InitSagas.ts 48.65 (-1.91) 33.85 (-2.82) 58.33 (0) 51.59 (-2.41)
🔴 app/client/src/selectors/commentsSelectors.ts 83.61 (-1.64) 61.76 (-2.95) 73.33 (0) 88.24 (-2.35)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
appsmith ✅ Ready (Inspect) Visit Preview May 3, 2022 at 10:14AM (UTC)

@github-actions github-actions Bot added Actions Pod Bug Something isn't working Critical This issue needs immediate attention. Drop everything else Javascript Product Issues related to users writing javascript in appsmith Needs Triaging Needs attention from maintainers to triage OnPageLoad OnPageLoad issues on functions and queries labels May 3, 2022
@ohansFavour ohansFavour marked this pull request as draft May 3, 2022 09:11
@ohansFavour
Copy link
Copy Markdown
Contributor Author

/ok-to-test sha=943e2e4

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2022

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2262970802.
Workflow: Appsmith External Integration Test Workflow.
Commit: 943e2e4.
PR: 13521.

@ohansFavour ohansFavour marked this pull request as ready for review May 3, 2022 09:52
@ohansFavour ohansFavour requested a review from arunvjn May 3, 2022 09:52
Comment thread app/client/src/sagas/InitSagas.ts Outdated
@ohansFavour ohansFavour requested a review from arunvjn May 3, 2022 10:05
@ohansFavour
Copy link
Copy Markdown
Contributor Author

/ok-to-test sha=0fb5c8f

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2022

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2263183320.
Workflow: Appsmith External Integration Test Workflow.
Commit: 0fb5c8f.
PR: 13521.

@ohansFavour ohansFavour merged commit 7261834 into release May 4, 2022
@ohansFavour ohansFavour deleted the fix/prevent-execution-of-pageload-actions-before-actions-are-fetched branch May 4, 2022 08:43
ohansFavour added a commit that referenced this pull request May 5, 2022
…s and jscollections in view mode (#13521)

* prevent execution of onPageLoad actions before sucessful actions fetch

* Perform url update before fetching actions and jscollections

(cherry picked from commit 7261834)
mohanarpit added a commit that referenced this pull request May 5, 2022
ankitakinger added a commit that referenced this pull request May 26, 2022
…page (#13950)

* fix: 12861 trim unnecessary re-render in select widget in server side rendering (#12865)

* add debounce to search and remove state var

* increase debounce time

* fix: updated the condition to show expiry key (#13092)

* Add index for git (#13133)

* fix: Fixed compile time errors

* fix: Unable to see apps in home page after git connect fails (#13387)

* Fix Redis installation in Dockerfile (#13428) (#13430)

Conflicts:
	Dockerfile

* fix: only execute pageload actions after successfully fetching actions and jscollections in view mode (#13521)

* prevent execution of onPageLoad actions before sucessful actions fetch

* Perform url update before fetching actions and jscollections

(cherry picked from commit 7261834)

* fix: NPE check when datasource createdAt is null

(cherry picked from commit beafb37)

* fixed image alignment for no search results on applications page

* deleted duplicate file

* reload to Refresh script update

* Adding sleep - script fix

Co-authored-by: Preet Sidhu <[email protected]>
Co-authored-by: Aman Agarwal <[email protected]>
Co-authored-by: Abhijeet <[email protected]>
Co-authored-by: Nidhi <[email protected]>
Co-authored-by: Somangshu Goswami <[email protected]>
Co-authored-by: Rimil Dey <[email protected]>
Co-authored-by: Anagh Hegde <[email protected]>
Co-authored-by: Shrikant Sharat Kandula <[email protected]>
Co-authored-by: Arpit Mohan <[email protected]>
Co-authored-by: Favour Ohanekwu <[email protected]>
Co-authored-by: Trisha Anand <[email protected]>
Co-authored-by: Aishwarya UR <[email protected]>
nayan-rafiq pushed a commit that referenced this pull request May 30, 2022
…page (#13950)

* fix: 12861 trim unnecessary re-render in select widget in server side rendering (#12865)

* add debounce to search and remove state var

* increase debounce time

* fix: updated the condition to show expiry key (#13092)

* Add index for git (#13133)

* fix: Fixed compile time errors

* fix: Unable to see apps in home page after git connect fails (#13387)

* Fix Redis installation in Dockerfile (#13428) (#13430)

Conflicts:
	Dockerfile

* fix: only execute pageload actions after successfully fetching actions and jscollections in view mode (#13521)

* prevent execution of onPageLoad actions before sucessful actions fetch

* Perform url update before fetching actions and jscollections

(cherry picked from commit 7261834)

* fix: NPE check when datasource createdAt is null

(cherry picked from commit beafb37)

* fixed image alignment for no search results on applications page

* deleted duplicate file

* reload to Refresh script update

* Adding sleep - script fix

Co-authored-by: Preet Sidhu <[email protected]>
Co-authored-by: Aman Agarwal <[email protected]>
Co-authored-by: Abhijeet <[email protected]>
Co-authored-by: Nidhi <[email protected]>
Co-authored-by: Somangshu Goswami <[email protected]>
Co-authored-by: Rimil Dey <[email protected]>
Co-authored-by: Anagh Hegde <[email protected]>
Co-authored-by: Shrikant Sharat Kandula <[email protected]>
Co-authored-by: Arpit Mohan <[email protected]>
Co-authored-by: Favour Ohanekwu <[email protected]>
Co-authored-by: Trisha Anand <[email protected]>
Co-authored-by: Aishwarya UR <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Critical This issue needs immediate attention. Drop everything else Javascript Product Issues related to users writing javascript in appsmith Needs Triaging Needs attention from maintainers to triage OnPageLoad OnPageLoad issues on functions and queries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: onPageLoad actions sporadically failing

2 participants