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

Branching API - initial draft #2

Closed

Conversation

alexvy86
Copy link

Description

Initial draft of exposing a basic branching API in the FluidLLM library.

  • Expose a few tree APIs as @internal, which required moving the getViewForForkedBranch function from test code to source code.
  • Add basic branch() and merge() functions in the FluidLLM library, which operate in terms of existing public SharedTree APIs, so users can actually leverage them in applications today.
  • Add a unit test validating that the new functions work as intended in a happy path.

Reviewer Guidance

The review process is outlined on this wiki page.

Comment on lines +51 to +52
// TODO: should we delete the map entry here? Probably yes?
viewToCheckoutMap.delete(forkedTreeView);
Copy link
Owner

Choose a reason for hiding this comment

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

I could see use cases where we'd want to restore a branch, and maybe this could be something like GIT where you could see different branches and manually delete them if they're no longer useful. That being said this should be fine for now

@alexvy86 alexvy86 closed this Jan 7, 2025
@alexvy86 alexvy86 deleted the fluidllm-branching-api branch January 7, 2025 22:27
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