hackclub / hackclub/theseus

Alert on zero-cost PO items when two-way PO sync lands

Open
#213 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
24
Forks
18
Avg merge
7h 11m
Merged PRs (30d)
7

Description

Right now the inventory sync job filters out PO items with `unitCost: 0` and doesn't email about them because the existing zero-cost data is historical and can't be edited in Zenventory. It'd just spam forever.

But when we add two-way PO sync, we should alert on **new** POs that come in with zero costs — those are actionable and probably mean someone forgot to fill in the cost. The historical ones should stay ignored.

Rough approach: track which PO IDs we've already seen (or compare against last run), and only alert on zero-cost items from POs that are new since the last sync.

Contributor guide

Open the contributing guide

Research direction

Start at the inventory sync job and trace the existing zero-cost filtering and email alert behavior. Inspect how the sync currently identifies purchase orders and persists state, then define how new PO IDs are distinguished from historical ones. Done means new zero-cost PO items alert while previously seen historical items remain ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.