feat: git-bug should store metadata for comment's file

Labels: area/comments kind/feature lifecycle/stale priority/awaiting-more-evidence triage/needs-information

Timeline

Michael Muré (MichaelMure) opened (edited)

At least the mime type should be stored (it's detected when uploaded already) so it can be set properly when downloading without having to load everything in memory to detect it. The name of the file might not be a bad idea either.

This metadata can be extended later for other uses.

These metadata should be stored in the AddCommentOp and the CreateOp so a file can be referenced in different message with different metadata. Bug's commits should only reference the blob's hash to carry files during push/pull.

Michael Muré (MichaelMure) added label RFC

Michael Muré (MichaelMure) added label enhancement

Michael Muré (MichaelMure) added label Core

github-actions (github-actions) commented

This bot triages untriaged issues and PRs according to the following rules:

  • After 90 days of inactivity, the lifecycle/stale label is applied
  • After 30 days of inactivity since lifecycle/stale was applied, the issue is closed

To remove the stale status, you can:

  • Remove the lifecycle/stale label
  • Comment on this issue

github-actions (github-actions) added label lifecycle/stale

sudoforge added label kind/feature

sudoforge added label priority/awaiting-more-evidence

sudoforge added label triage/needs-information

sudoforge added label area/comments

sudoforge removed label RFC

sudoforge removed label Core

sudoforge removed label lifecycle/stale

sudoforge removed label enhancement

github-actions (github-actions) commented

This bot triages issues in order to help the maintainers identify what needs attention, according to the following lifecycle rules:

  • After 90 days of inactivity, lifecycle/stale is applied
  • After 90 days of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied

This bot will not automatically close stale issues.

To remove the stale status, you can:

  • Remove the stale label from this issue
  • Comment on this issue
  • Close this issue
  • Offer to help out with triaging

To avoid automatic lifecycle management of this issue, add lifecycle/frozen.

github-actions (github-actions) added label lifecycle/stale

github-actions (github-actions) removed label lifecycle/idle