Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/refactor: add merge api #5259

Merged
merged 25 commits into from
Aug 13, 2024
Merged

feat/refactor: add merge api #5259

merged 25 commits into from
Aug 13, 2024

Conversation

mitchellwrosen
Copy link
Member

@mitchellwrosen mitchellwrosen commented Aug 1, 2024

Overview

This PR refactors the merge API to make it more pure and suitable to call from Share.

@mitchellwrosen mitchellwrosen mentioned this pull request Aug 1, 2024
1 task
@mitchellwrosen mitchellwrosen marked this pull request as ready for review August 8, 2024 20:52
@@ -818,7 +820,7 @@ project/alice> merge /bob
type Foo = Baz Nat Nat | Qux Text

-- project/bob
type Foo = Baz Nat | BobQux Text
type Foo = BobQux Text | Baz Nat
Copy link
Contributor

Choose a reason for hiding this comment

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

Any idea what caused these to flip?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not exactly, but I did investigate and they seem to have been wrong before. I manually walked through the transcript and observed that on project/bob (in this example) the constructors do render in the new order. 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated explanation: in this PR we no longer reuse unique type UUID in merge, so any merge performed in a transcript can affect subsequent unique type constructor orders. We were going to circle back on that in a follow-up PR.

@aryairani aryairani merged commit e0b35f5 into trunk Aug 13, 2024
35 checks passed
@aryairani aryairani deleted the 24-08-01-merge-api branch August 13, 2024 15:33
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