ruby / ruby/gem_rbs_collection
ActiveStorage 6.1+ does not delegate properly from `Attached` to `Attachment` to `Blob`.
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 303
- Forks
- 136
- Avg merge
- 5h 15m
- Merged PRs (30d)
- 6
Description
ActiveStorage specs for versions 6.1 and up don't reflect several methods that are delegated from the Attached::* objects to the Attachment object, and from Attachment to the Blob model. For example, url and filename are both available on Attached::One through Blob, but either have no signature (filename) or an inaccurate signature (filename). In part this is due to incomplete specs, and in part it is due to symlink delegation to earlier versions.
I will try to supply more detail when off work.
Relevant links:
- 6.0 and inaccurate spec
- 6.1 and inaccurate spec
- 7.0 and inaccurate spec, inaccurate spec
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the ActiveStorage RBS files linked for versions 6.0, 6.1, and 7.0 with the referenced Rails Blob delegation locations. Review the Attached::One, Attachment, and Blob signatures, including url and filename, and ensure the specifications accurately represent the delegation across supported versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100