Skip to content
This repository was archived by the owner on Nov 2, 2026. It is now read-only.

feat(concert-tracking): private personal show ratings - #481

Closed
chubes4 wants to merge 1 commit into
mainfrom
feat/private-show-ratings
Closed

chubes4 wants to merge 1 commit into
mainfrom
feat/private-show-ratings

Conversation

@chubes4

@chubes4 chubes4 commented Oct 30, 2026

Copy link
Copy Markdown
Member

Fixes Extra-Chill/data-machine-events#480.

Show ratings become personal. A fan rates past shows they attended on My Shows, and only they can see those ratings. Public comment-based ratings are being removed from data-machine-events (Extra-Chill/data-machine#3788), and My Shows is moving onto these abilities (Extra-Chill/extrachill#1058). Merge this first.

  • Storage: a nullable rating column on ec_concert_tracking. The table installer used to run once behind a one-shot flag, so it couldn't add columns. It's now gated on EXTRACHILL_USERS_CONCERT_TRACKING_SCHEMA_VERSION (v2), following the import-runs table pattern, and the legacy flag is still set.
  • Service: ec_users_set_show_rating() (1–5 sets, 0 clears; the show must be marked and past) and ec_users_get_show_ratings() (returns only the owner's rated shows).
  • Abilities: extrachill/rate-show and extrachill/get-my-show-ratings. Both act only on the current user (no user_id input), require login, and are show_in_rest.
  • Privacy: every existing reader of the table selects named columns, so none of them pick up rating. A test asserts that the history, stats and attendee outputs contain no rating.
  • Unmarking a show deletes its row, which deletes the rating.

Tests: tests/unit/ShowRatingsTest.php has 8 tests. This suite needs the external MySQL service that CI provides, so CI is the test gate. Lint matches main's baseline of 14 existing findings and adds none.

Built directly outside Homeboy Cook: every Cook route failed to dispatch (the Lab runner is stuck on unverified_retained_evidence, pi auth is revoked, Codex isn't installed locally). Chris Huber authorized the direct build. Written by Extra Chill Bot (Claude) at Chris Huber's request.

A fan can rate a past show they attended, 1-5 stars, from My Shows. The
rating lives on their own attendance row and only they can read it; no
public read path selects it. Unmarking a show deletes the rating with
the row.

- rating column on ec_concert_tracking, with the table install now gated
  on a schema version so existing installs get the column
- ec_users_set_show_rating() / ec_users_get_show_ratings()
- extrachill/rate-show and extrachill/get-my-show-ratings abilities,
  current user only, REST-visible for My Shows

Fixes #480
@homeboy-ci

homeboy-ci Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Homeboy Results — extrachill-users

Review lint

✅ review lint — passed

ℹ️ Full options: homeboy self docs commands/lint
Deep dive: homeboy review lint extrachill-users --changed-since 25f2f8a

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-extrachill-users-review-lint-homeboy-__Extra-Chill_homeboy-action-Linux-php8.4-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-extrachill-users-review-lint-homeboy-__Extra-Chill_homeboy-action-Linux-php8.4-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/extrachill-users/actions/runs/40995291542

Review test

✅ review test — passed

  • 8 passed

ℹ️ Auto-fix lint issues: homeboy review lint extrachill-users --fix
ℹ️ Collect coverage: homeboy review test extrachill-users --coverage
ℹ️ Save test baseline: homeboy review test extrachill-users --baseline
ℹ️ Pass args to test runner: homeboy review test -- [args]
ℹ️ Full options: homeboy self docs commands/test
Deep dive: homeboy review test extrachill-users --changed-since 25f2f8a

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-extrachill-users-review-test-homeboy-__Extra-Chill_homeboy-action-Linux-php8.4-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-extrachill-users-review-test-homeboy-__Extra-Chill_homeboy-action-Linux-php8.4-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/extrachill-users/actions/runs/40995291542
Tooling versions
  • Homeboy CLI: homeboy 0.435.0+b6978fe3ec9d9b41f3573a7f5550efc2d140d3bc
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 1f0f0ab1
  • Action: Extra-Chill/homeboy-action@v2

@chubes4

chubes4 commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

This repo is frozen after the monorepo cutover (Extra-Chill/extrachill#385). This PR was ported with its commits intact to Extra-Chill/extrachill#409, so it's closing here. Continue the work there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant