buf icon indicating copy to clipboard operation
buf copied to clipboard

Make buf and the BSR more tolerant

Open amckinney opened this issue 3 years ago • 3 comments

We've run into a few issues where a user has mistakenly pushed a commit, but it's impossible for them to undo it. The tolerance principle suggests that

"... design should be flexible and tolerant, reducing the cost of mistakes and misuse by allowing undoing and redoing ..."

We should revisit how tolerant buf and the BSR are and see if there are improvements we can make. Some concerns that immediately come to mind are:

  1. Should we allow users to remove arbitrary commits, or only the HEAD commit on a track?
  2. How does this influence the behavior of synthetic versions and our ability to invalidate [cached] artifacts associated with the commit (e.g. packages served by the Go Module Proxy)?
  3. What other operations ought to be more tolerant that aren't already (e.g. removing a tag)?

amckinney avatar Dec 07 '21 19:12 amckinney

What do we want to track here? Are there specific issues, or is this more a roadmap item?

bufdev avatar Feb 03 '22 16:02 bufdev

This is more of a roadmap item. It's something we definitely need to investigate and improve, but nothing is actionable in the near term. I'd prefer to leave this one open so that we keep it at the top of mind.

amckinney avatar Feb 03 '22 17:02 amckinney

Yes please! Additionally I'd love to be able to add a tag to an existing commit (that may or may not have already a tag).

julienrbrt avatar Aug 26 '22 07:08 julienrbrt

Closing this as a tracking issue, see #1415 for any future changes.

bufdev avatar Jan 14 '23 19:01 bufdev