Skip to content

feat(rm-handlers): W8 — Query + IssueRelation (last standalone width track)#18

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/w8-query-relation-handlers
Jun 22, 2026
Merged

feat(rm-handlers): W8 — Query + IssueRelation (last standalone width track)#18
AdaWorldAPI merged 1 commit into
mainfrom
claude/w8-query-relation-handlers

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

W8 — last standalone width track

Query (saved views) + IssueRelation (work-item dependency edges). Completes all 8 Phase-1 width tracks from the Integration Plan.

Route class_id URL key
/queries[+/:name] 0x010D project_query name slug, percent-encoded
/relations[+/:id] 0x0111 project_relation record-key (no natural slug; from/to are edges)

Scope vs canonical

  • Query carries only name today; the filter/column/sort payload (REDMINE-QUERY-HARVEST.md's RenderColumn mapping) lands with D2 (filters depth track). A Query is a named saved view for now.
  • IssueRelation carries relation_type + lag (Redmine delay / OP lag, canonicalised). Binding from/to to real Issue rows lands when the Issue detail page embeds its relations (W1-followup).

DoD — 12 new tests; 165 across 5 crates

6 store + 6 handler (empty-state class_id, list+detail, 404 per resource; Query's name-slug percent-encoding pinned via Open%20bugs). fmt + clippy + workspace all green.

Status: 8/8 standalone width tracks ✅

W1 ✓ W2 ✓ W3 ✓ W4 ✓ W5 ✓ W6 ✓ W7 ✓ W8 ✓.

What's left of the plan (no longer standalone list/detail pages):

  • Nested sets — W4 Member/MemberRole/Watcher, W6 Comment/Message/Forum/Attachment (embed under Project/Issue detail rather than top-level routes)
  • W5 CustomField — ties to D1
  • Depth tracks D1 forms / D2 filters+sort+group / D3 RBAC / D4 workflows / D5 custom fields / D6 search
  • GUI tracks G1 layout chrome / G2 CSS port / G3 client widgets

The width pass is the breadth-first skeleton; depth + GUI are where it becomes a usable app. D1 (forms — create/edit, CSRF already wired in W0.3) and G1 (master base.askama template, replacing the inline wrap_in_doc) are the highest-leverage next steps.

🤖 Generated with Claude Code

…track)

W8 of the Redmine Integration Plan — the saved-views & relations
track. Completes the 8 Phase-1 width tracks.

# Routes

- GET /queries     + /queries/:name    (0x010D project_query)
- GET /relations   + /relations/:id    (0x0111 project_relation)

# URL keys

- Query: name-slug URL (saved-view name doubles as label + slug),
  percent-encoded via common::encode_path_segment.
- IssueRelation: record-key URL — relations have no natural slug
  (identified by their from/to endpoints + type), so they key on
  the SurrealDB record id like W1's Issue.

# Scope vs canonical

- Query: canonical class carries only `name` today; the filter /
  column / sort payload (Redmine's `filters`/`column_names`/
  `sort_criteria`, mapped onto RenderColumn in REDMINE-QUERY-HARVEST.md)
  lands with D2 (filters depth track). For now a Query is a named
  saved view.
- IssueRelation: row carries `relation_type` + `lag` (Redmine `delay`
  / OP `lag`, canonicalised to `lag`). Wiring the from/to record
  links to actual Issue rows lands when the Issue detail page embeds
  its relations (a W1-followup).

# DoD pinned by 12 new tests

Store (6): query round-trip-by-name / NotFound / list; relation
round-trip / NotFound / list.
Handlers (6): query list empty-state 0x010D + list/detail by name
(percent-encoded `Open%20bugs`) + 404; relation list empty-state
0x0111 + list/detail by record key + 404.

# Status: 8/8 standalone width tracks shipped

W1 Issue, W2 Project, W3 TimeEntry, W4 User+Role, W5 Taxonomy(3/4),
W6 News+WikiPage, W7 Repository+Changeset, W8 Query+IssueRelation.

Remaining (not standalone list/detail pages):
- nested sets: W4 Member/MemberRole/Watcher, W6 Comment/Message/
  Forum/Attachment — embed under Project/Issue detail pages
- W5 CustomField — ties to D1 (forms depth track)
- depth tracks D1 (forms) / D2 (filters+sort+group) / D3 (RBAC) /
  D4 (workflows) / D5 (custom fields) / D6 (search)
- GUI tracks G1 (layout chrome) / G2 (CSS) / G3 (JS)

cargo fmt --check + cargo clippy --all-targets -- -D warnings +
cargo test --workspace all green; 165 tests across 5 crates.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AdaWorldAPI AdaWorldAPI merged commit 10637bb into main Jun 22, 2026
1 check passed
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