lakeFS icon indicating copy to clipboard operation
lakeFS copied to clipboard

Conflicting objects UI error is misleading

Open itaiad200 opened this issue 2 years ago • 5 comments

UI error for conflict is misleading. By design that's conflict (changes to both right and left commits). I think the diff should not be visible for non-diffable objects (non csv, txt, tsv).

image

itaiad200 avatar Jul 14 '22 15:07 itaiad200

2 Options I can think of:

  1. Remove the 'show changes' button completely
  2. Change the error to a warning message stating "Unsupported file type for diff"

@itaiad200 @ozkatz (for product perspective). Your thoughts?

N-o-Z avatar Jul 20 '22 13:07 N-o-Z

I think that we should stay consistent: non conflicting changes would show a content diff for txt,csv,... and the amount of bytes added/removed for other non-humanly-diffable formats.

We're already doing the first part for conflict, why not the second?

ozkatz avatar Jul 20 '22 13:07 ozkatz

@ozkatz The question is how we should behave with conflicting changes that are currently not diffable (non human readable). We can't really show the number of bytes added/removed since the file changed in both source and dest (potentially we can get a negative value), I think it also doesn't provide any added value to the user.

N-o-Z avatar Jul 20 '22 14:07 N-o-Z

yes, summing the values indeed makes little sense. however showing size in bytes for source and for destination could be helpful (i.e. if big_data.parquet is 40bytes on source but 150MB on destination, that's useful when trying to decide which version to take)

ozkatz avatar Jul 20 '22 14:07 ozkatz

Sounds legit, do we want to add an informative message (as suggested above) in addition to the size change information?

N-o-Z avatar Jul 20 '22 15:07 N-o-Z

Without Diff: image

With Diff: image

N-o-Z avatar Sep 04 '22 12:09 N-o-Z