Skip to content

Rework DatablockStorage methods to not use Firebase-isms#56471

Merged
snickell merged 8 commits into
unfirebasefrom
seth/datablocks-centric-api
Feb 9, 2024
Merged

Rework DatablockStorage methods to not use Firebase-isms#56471
snickell merged 8 commits into
unfirebasefrom
seth/datablocks-centric-api

Conversation

@snickell

@snickell snickell commented Feb 9, 2024

Copy link
Copy Markdown
Collaborator

The existing API was Firebase-centric in a few namings/ways. This PR converts the API to be strictly DatablockStorage-centric, using isFirebaseStorage() guard checks to use different function names / params. This way, we can search for isFirebaseStorage() and isDatablockStorage() after final deployment, and by removing them, the resulting code will make sense, e.g. not be referencing subscriptions and other Firebase concepts.

AS OF THIS PR THE APIS OF FirebaseStorage and DatablockStorage do NOT exactly match, but they are very close. The majority of differences are in the names methods we extracted, e.g. subscribeToKeyValuePairs vs getKeyValuePairs.

@snickell snickell added the unfirebase https://github.com/orgs/code-dot-org/projects/4 label Feb 9, 2024
@snickell snickell requested a review from cnbrenci February 9, 2024 09:45
Will permit future search cleanups to be more confident.
@snickell snickell merged commit 591bcfc into unfirebase Feb 9, 2024
@snickell snickell deleted the seth/datablocks-centric-api branch February 9, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unfirebase https://github.com/orgs/code-dot-org/projects/4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants