Skip to content

v2.9287 — Bids of the day: whoever can open a bid may read who kept it (punch list #469, step 5; owes a db push) - #10780

Open
realrobertdouglas wants to merge 1 commit into
mainfrom
claude/469-bid-day-read-by-bid
Open

realrobertdouglas wants to merge 1 commit into
mainfrom
claude/469-bid-day-read-by-bid

Conversation

@realrobertdouglas

Copy link
Copy Markdown
Contributor

Owes prod one supabase db push after the merge, with the push slot. Opened unarmed: it is armed only once the managing session has been told.

Punch list #469, step 5, the read. A migration alone. No screen reads by bid yet, so no new screen. It owes a supabase db push.

Why

The card's fifth step is a bid's own page: who had this bid in front, and on which days. The rows are the kept lists of the day's bids. Until now a kept list was read by the person, a dev, payroll access and the office. A bid opens for every estimator, so most people who open one could not read the rows.

The call was put to the person on 2026-12-03 with the pick to leave the rule. They pressed "Everyone who opens the page". Asked whether the times of day a bid was open should stay with the office, they pressed "No, show everyone".

What ships

20261203080345_bid_day_read_by_bid.sql, documented in docs/migrations/20261203080345_bid_day_read_by_bid.md:

  • One more read rule on bid_day_entries: a kept row is read by whoever can read its bid. It asks bids under the caller's own policies, so it follows the bid's read rule as it stands.
  • The row is read whole, with the times of day a bid was in front.
  • Writes are unchanged, and a role that reads no bid reads no row by this rule.

What changes on screen once it is pushed

Nothing new is drawn. One thing widens: a surface that draws another person's day as bids, People → Hours and a person's My Time section, now draws those bids for an owner without pay access or an estimator who opens it, where it drew the office job before.

Tests

supabase/tests/bid_day/20_scenario.sql has five new cases, and scripts/pgtest-bid-day.sh re-applies the new file. Docker was down on this Mac, so the bed was not run here: the SQL beds workflow runs it on the PR.

Words

docs/ACCESS_CONTROL.md, under The bids of the day.

Next

The History window's On the clock chip, which reads these rows by bid. It is client only and can merge before or after the push: before it, a reader outside the office sees only their own days.

🤖 Generated with Claude Code

…t (punch list #469, step 5; owes a db push)

One more read rule on bid_day_entries: a kept row is read by whoever can read its bid, whole.
The person's answers of 2026-12-03: everyone who opens the page, and the times of day too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant