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

Unison local Definition Diffs API #4964

Merged
merged 7 commits into from
May 18, 2024

Conversation

ChrisPenner
Copy link
Contributor

@ChrisPenner ChrisPenner commented May 17, 2024

Overview

Adds definition diff API to Unison Local.

Implementation notes

Adds /api/projects/<slug>/diff/terms and /api/projects/<slug>/diff/types which return the same format as Share

Test coverage

Added a simple transcript test

Loose ends

Not sure when we'll have time to add this to the UI, but at the very least it serves as a mechanism to add some testing for the feature in unison rather than just in share-api cc @hojberg

@ChrisPenner ChrisPenner self-assigned this May 17, 2024
@ChrisPenner ChrisPenner changed the base branch from trunk to cp/definition-diffs May 17, 2024 16:43
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know this output is really hard to read, but it will at least serve as a regression test to ensure the diffs don't break unexpectedly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Lol, you're not wrong.

@ChrisPenner ChrisPenner marked this pull request as ready for review May 17, 2024 16:50
@aryairani
Copy link
Contributor

@ChrisPenner go ahead and merge these once the tests are passing

@aryairani aryairani merged commit d1b0fbc into cp/definition-diffs May 18, 2024
16 checks passed
@aryairani aryairani deleted the cp/definition-diffs-api branch May 18, 2024 14:31
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.

None yet

2 participants