Repository navigation
Call #project: links project links, not migrations - #1430
Merged
Merged
Conversation
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.
|
Preview build will be at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.src/fs/migration.ts(and its test and test data)src/fs/project-link.tsMigration,isMigrationProjectLink,isProjectLinkparseMigrationFromUrlparseProjectLinkPendingMigrationPendingProjectLinkmigrationProjectFilesprojectLinkFilesmigrationvariables, fields and parametersprojectLinkfor the pending link,linkfor one taken from itpostMigrationUrlon the parse resulturlWithoutLink"Migrate" is kept for the session storage project.
In the e2e tests:
migration.test.tsheld both the link tests and the session storage tests. It is split intoproject-link.test.tsandsession-migration.test.ts. Git shows the second as the rename because it is the larger half.src/e2e/project-links.ts.Nothing user-facing or in analytics used the old name, so there is nothing to change outside the source.