polarsource/polar

File downloads

Closed this issue · 1 comments

Subscription & product benefit to offer customer digital files to be downloaded.

In Progress
#3296

Must haves

  • Flatted checksum in schemas, e.g not within checksum, but checksum_ (not a separate resource)
  • Endpoint to get accessible files for user
  • Feature flag - enabling early deployment while setting up S3 in production etc
  • Edit: Sorting of files
  • Edit: Disable file
  • Edit: Delete file
  • Make files more standalone (generic S3 solution) vs. connected with file_permission only
  • Design polish
  • Set benefit icon

Bugs

  • Filename becomes ID - should rename local filename
  • Benefit not shown in UI upon creation (requires refresh)
  • Benefit not granted immediately or granted as revoked...

Must have chores

  • API Documentation
  • Write some core tests
  • Test with more file types

Should haves (can be separate enhancements, i.e issues)

  • Polar signature to proxy S3
  • Edit: Set file version

🚀 Shipped. Still behind a feature flag, but everything is in-place. Just need to enable & communicate it.