Convert "Order has_many :products" to "Order has_one :product"
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 2
- Forks
- 5
- Avg merge
- 42m
- Merged PRs (30d)
- 1
Description
Right now the relation between order and product is many to many.
This makes a lot of things more complicated though.
Zeus members rarely order more than 1 item, and if they do, we can just create multiple orders on the server. Converting is to a many to one relation would speed things up and make them simpler.
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
The issue provides no file or test names; start by locating the Order and Product association definitions and checking their database schema and usages. Done means the relation supports one product per order, multiple orders can represent multiple items, and affected tests or callers still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- backend, database
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100