ZeusWPI / ZeusWPI/Tap

Convert "Order has_many :products" to "Order has_one :product"

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.