Skip to content

Call #project: links project links, not migrations - #1430

Merged
microbit-matt-hillsdon merged 1 commit into
home-pagefrom
rename-project-link
Nov 20, 2026
Merged

microbit-matt-hillsdon merged 1 commit into
home-pagefrom
rename-project-link

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Collaborator

Rename only, no behaviour change.

#project: links have been called "migrations" in the code since 2021, when they existed to carry a program over from the previous editor. They are now simply links that carry a project. Meanwhile "migration" has also come to mean moving a session storage project into the projects database (migrateSessionProject), so one word covered two unrelated things in the same files.

Before After
src/fs/migration.ts (and its test and test data) src/fs/project-link.ts
Migration, isMigration ProjectLink, isProjectLink
parseMigrationFromUrl parseProjectLink
PendingMigration PendingProjectLink
migrationProjectFiles projectLinkFiles
migration variables, fields and parameters projectLink for the pending link, link for one taken from it
postMigrationUrl on the parse result urlWithoutLink

"Migrate" is kept for the session storage project.

In the e2e tests:

  • migration.test.ts held both the link tests and the session storage tests. It is split into project-link.test.ts and session-migration.test.ts. Git shows the second as the rename because it is the larger half.
  • The link fragments, which were copied into two test files and would have been needed in a third, move to src/e2e/project-links.ts.

Nothing user-facing or in analytics used the old name, so there is nothing to change outside the source.

The name dates from when these links existed to carry a program over from
the previous editor. They are now simply links that carry a project, and
"migration" also means moving a session storage project into the projects
database, so the one word covered two unrelated things in the same files.

Rename only. migration.ts becomes project-link.ts, and Migration,
parseMigrationFromUrl and PendingMigration become ProjectLink,
parseProjectLink and PendingProjectLink, with the variables that hold them.
"Migrate" is kept for the session storage project.

The e2e file that held both kinds of test is split in two, and the link
fragments the e2e tests share move to one module.
@github-actions

Copy link
Copy Markdown

Preview build will be at
https://review-python.microbit.org/rename-project-link/

@microbit-robert microbit-robert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit e9b08f7 into home-page Nov 20, 2026
4 checks passed
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