Skip to content

Refactor: decouples storage and framework identifiers, supports forking frameworks - #16

Open
alail-ims wants to merge 3 commits into
mainfrom
task/POR-747
Open

Refactor: decouples storage and framework identifiers, supports forking frameworks#16
alail-ims wants to merge 3 commits into
mainfrom
task/POR-747

Conversation

@alail-ims

@alail-ims alail-ims commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

In order to support forking a mirrored framework and regenerating/minting new identifiers, this changeset decouples the storage and framework identifiers.

Previously, frameworks were persisted inside of a file whose name included the identifier of said framework (which is how they were looked up). This could be problematic when it comes to re-minting identifiers on a forking change since we're changing not just the identifiers but also how the framework is stored under the hood, all while said framework is still open in the browser. Moving forward with this approach would mean having to do a delicate dance of updating data behind the scenes and making sure the frontend state is still valid.

Moving forward, when a framework is imported a "storageId" gets generated, which follows a given framework for the entirety of its lifetime, regardless of how it might change.

All forward facing APIs still have the same contracts, and continue to use the public identifiers as they did before. Behind the scenes when a call is made that requires reaching into the filestore, the framework's identifier is used as a lookup to get the actual storageId.

@alail-ims
alail-ims requested a review from tcouper September 2, 2026 19:37
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.

1 participant