Closed N-o-Z closed 1 year ago
Suggestion 1: Create a dangling commit Use cherry-pick to get it to the target branch
Advantages:
Disadvantages:
Mitigation: issue 1: Currently the graveler AddCommit has no usages so we can remove the check for parents issue 4: We could align the cherry-pick so that we will be able to overwrite existing data by passing merge strategy, which will align with the requirements in https://github.com/treeverse/lakeFS/issues/5780
@ozkatz, @nopcoder, @itaiad200, @arielshaqed - will be happy to hear your input!
@N-o-Z like it better than the current solution.
Want to suggest improvement as I prefer to have the same without the dangling commit
step.
The new import produce a local database with all the data to import.
I suggest to do a single side merge with this data into the final import commit.
This is not keep any dangling commit and should perform faster. So, not depending on cherry-pick feature - but more on merge capability.
@N-o-Z like it better than the current solution. Want to suggest improvement as I prefer to have the same without the
dangling commit
step. The new import produce a local database with all the data to import. I suggest to do a single side merge with this data into the final import commit. This is not keep any dangling commit and should perform faster. So, not depending on cherry-pick feature - but more on merge capability.
Great idea, but this means we'll need to expose some merge function that allows providing an itr as source instead of metarange ID
Iteration implementation found out to be quite difficult due to tangled package dependencies. Decided to go with an intermediate solution:
Investigate the option to commit directly into target branch instead of creating an intermediary branch