Skip to content

Add guard for block info loading to edit page #1149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Apr 25, 2025

I think one of the errors I see in development a lot has just come up during #1133 -- if a block tries to access its schema when loading (to e.g., get accepted file extensions), then this can sometimes fail if the store is not ready. This PR simply adds the existing guard for whether block schemas have been loaded before loading the block list itself. At some point we should refactor the store to do a lot of this stuff automatically.

@ml-evs ml-evs added webapp For issues/PRs pertaining to the web interface javascript Pull requests that update Javascript code labels Apr 25, 2025
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.35%. Comparing base (a74243b) to head (f0f75e5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1149   +/-   ##
=======================================
  Coverage   71.35%   71.35%           
=======================================
  Files          63       63           
  Lines        4151     4151           
=======================================
  Hits         2962     2962           
  Misses       1189     1189           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

cypress bot commented Apr 25, 2025

datalab    Run #3202

Run Properties:  status check passed Passed #3202  •  git commit 2f9bab8282 ℹ️: Merge f0f75e57e1f792d7c7c06036aa73dca8e83ba5c7 into a74243b0af1588a6f2785f3428bc...
Project datalab
Branch Review ml-evs/block-info-loading-guard
Run status status check passed Passed #3202
Run duration 07m 57s
Commit git commit 2f9bab8282 ℹ️: Merge f0f75e57e1f792d7c7c06036aa73dca8e83ba5c7 into a74243b0af1588a6f2785f3428bc...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 498
View all changes introduced in this branch ↗︎

@ml-evs ml-evs added this to the v0.5.x milestone Apr 25, 2025
@ml-evs ml-evs force-pushed the ml-evs/block-info-loading-guard branch from ffa7de6 to f0f75e5 Compare April 25, 2025 18:17
@ml-evs ml-evs merged commit 85088ec into main Apr 25, 2025
17 checks passed
@ml-evs ml-evs deleted the ml-evs/block-info-loading-guard branch April 25, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code webapp For issues/PRs pertaining to the web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant