active-hash / active-hash/active_hash
Is it time to redefine the purpose of ActiveHash?
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.4k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Has the purpose of ActiveHash changed?
Many of the recent feature requests feel like it is going towards an in-memory thread safe transactional database.
README.md [ref]
ActiveHash is a simple base class that allows you to use a ruby hash as a readonly datasource for an ActiveRecord-like model.
I read that ActiveHash is an alternative to storing reference data in the database or in constants.
ActiveHash assumes that every hash has an :id key, which is what you would probably store in a database. This allows you to seamlessly upgrade from ActiveHash objects to full ActiveRecord objects without having to change any code in your app, or any foreign keys in your database.
It even has a suggested migration plan for when requirements change and data is no longer read only. Then it suggests migrating the model to the standard SQL datastore. (or sqlite with ":memory:")
Question
I don't feel that this library and the definition of this library match.
Is it time to re-evaluate the use cases for this library?
Hopefully update the statement at the top of README.md?
Contributor guide
No contributing guide indexed for this repository
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 with the ActiveHash section of README.md and compare its stated read-only purpose with the recent feature requests referenced in the issue. Done means reaching agreement on the library's intended use cases and updating the README's opening description if maintainers decide it no longer matches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100