Skip to content

Revert "Revert "Datablock Storage: replace firebase for applab data features (#56279)"#57480

Merged
snickell merged 4 commits into
stagingfrom
datablock/fix-getcol
Mar 22, 2024
Merged

Revert "Revert "Datablock Storage: replace firebase for applab data features (#56279)"#57480
snickell merged 4 commits into
stagingfrom
datablock/fix-getcol

Conversation

@snickell

@snickell snickell commented Mar 22, 2024

Copy link
Copy Markdown
Collaborator

This PR reverts #57471 , which reverted the original datablock storage PR #56279 after it broke the getColumn block.

Fix getColumn(), which was producing debug console errors like "You tried to get a column called _ from a table called _ but that column doesn't exist.":

  1. 71bde1b: applabCommands.getColumn(): now calls Applab.storage.getColumn() rather than Applab.storage.readRecords() like it did before datablockStorage.js:
    image
  2. d834f5b: ec_datablocks.js: Adds an apps integration test for the getColumn block, esp since this block is what our curriculum actually uses.

Fix "Daily Weather" and "Spotify" current tables shows up with no records in the data browser:

  1. 116e480: pass tableType="shared" from firebaseStorage.js back to addTableName() when registering "current tables" with redux

For more details on datablock storage, see: #56279.

@cnbrenci cnbrenci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to have test coverage for this now 🥳

Set tableType="shared" when dispatching addTableName() for live tables.
@snickell snickell merged commit 0e0a953 into staging Mar 22, 2024
@snickell snickell deleted the datablock/fix-getcol branch March 22, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants