Saved queries
The six questions this database is built to answer. Each runs unchanged on SQLite and Postgres.
1. Acceptance criteria with no linked commits or no linked tests2. Commits not tied to any task3. Cycle time4. Requirements changed after the code for one of their criteria merged5. Review turnaround by reviewer6. Full trace for one requirement
6. Full trace for one requirement: requirement -> criteria -> tasks -> commits -> PRs -> reviews.
REQ-CLICK-01 REQ-CLICK-02 REQ-CLICK-03 REQ-HTTPX-01 REQ-HTTPX-02 REQ-HTTPX-03 REQ-REQ-01 REQ-REQ-02 REQ-REQ-03 SUB-CLI-01 SUB-HTTP-01 SYS-01
SQL
-- 6. Full trace for one requirement: requirement -> criteria -> tasks -> commits -> PRs -> reviews.
-- LEFT JOINs keep the gaps visible: a criterion with no task shows NULLs to the right.
SELECT r.key AS requirement,
a.key AS criterion,
a.text AS criterion_text,
t.key AS task,
t.status AS task_status,
c.repo,
c.sha,
c.committed_at,
pr.number AS pr_number,
pr.title AS pr_title,
pr.merged_at,
rv.state AS review_state,
rp.display_name AS reviewer,
rv.submitted_at AS reviewed_at
FROM requirements r
JOIN requirement_criteria rc ON rc.requirement_id = r.id
JOIN acceptance_criteria a ON a.id = rc.criterion_id
LEFT JOIN task_criteria tc ON tc.criterion_id = a.id
LEFT JOIN tasks t ON t.id = tc.task_id
LEFT JOIN commit_tasks ct ON ct.task_id = t.id
LEFT JOIN commits c ON c.id = ct.commit_id
LEFT JOIN pull_request_commits prc ON prc.commit_id = c.id
LEFT JOIN pull_requests pr ON pr.id = prc.pull_request_id
LEFT JOIN reviews rv ON rv.pull_request_id = pr.id
LEFT JOIN people rp ON rp.id = rv.reviewer_id
WHERE r.key = ?
ORDER BY a.key, t.key, c.committed_at, rv.submitted_at;
9 rows
| requirement | criterion | criterion_text | task | task_status | repo | sha | committed_at | pr_number | pr_title | merged_at | review_state | reviewer | reviewed_at |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| REQ-HTTPX-01 | AC-HTTPX-101-1 | `verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed. | TASK-HTTPX-1011 | done | encode/httpx | 1805ee0d22f96e2b29f0500dd3076e10020004bf | 2024-11-12T11:31:42Z | 3394 | Graceful upgrade path for 0.28. | 2024-11-12T11:31:42Z | COMMENTED | Sofia Reyes | 2024-11-11T07:03:26Z |
| REQ-HTTPX-01 | AC-HTTPX-101-1 | `verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed. | TASK-HTTPX-1011 | done | encode/httpx | 1805ee0d22f96e2b29f0500dd3076e10020004bf | 2024-11-12T11:31:42Z | 3394 | Graceful upgrade path for 0.28. | 2024-11-12T11:31:42Z | COMMENTED | Nina Kowalski | 2024-11-12T03:46:54Z |
| REQ-HTTPX-01 | AC-HTTPX-101-1 | `verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed. | TASK-HTTPX-1011 | done | encode/httpx | 1805ee0d22f96e2b29f0500dd3076e10020004bf | 2024-11-12T11:31:42Z | 3394 | Graceful upgrade path for 0.28. | 2024-11-12T11:31:42Z | APPROVED | Jamal Wright | 2024-11-12T07:43:44Z |
| REQ-HTTPX-01 | AC-HTTPX-101-2 | Passing a string to `verify` raises an error that tells the user to use `ssl.create_default_context(cafile=...)` instead. | TASK-HTTPX-1012 | done | encode/httpx | ce7e14da27abba6574be9b3ea7cd5990556a9343 | 2024-11-28T11:46:59Z | 3418 | Error on verify as str. | 2024-11-28T11:46:59Z | APPROVED | Jamal Wright | 2024-11-28T07:56:02Z |
| REQ-HTTPX-01 | AC-HTTPX-101-3 | Passing a string to `verify` raises `TypeError`. | TASK-HTTPX-1012 | done | encode/httpx | ce7e14da27abba6574be9b3ea7cd5990556a9343 | 2024-11-28T11:46:59Z | 3418 | Error on verify as str. | 2024-11-28T11:46:59Z | APPROVED | Jamal Wright | 2024-11-28T07:56:02Z |
| REQ-HTTPX-01 | AC-HTTPX-101-4 | Importing httpx does not import the `ssl` module until a client actually needs it. | TASK-HTTPX-1014 | done | encode/httpx | 2ea2286db4da3ba6d318e617ac03217225e9f962 | 2024-11-15T10:17:42Z | 3401 | Import ssl on demand | 2024-11-15T10:17:42Z | APPROVED | Sofia Reyes | 2024-11-15T01:19:56Z |
| REQ-HTTPX-01 | AC-HTTPX-101-5 | Using `verify=False` together with a client certificate (`cert=...`) still loads the certificate instead of ignoring it. | TASK-HTTPX-1013 | done | encode/httpx | 89599a9541af14bcf906fc4ed58ccbdf403802ba | 2024-12-04T11:29:09Z | 3442 | Fix `verify=False`, `cert=...` case. | 2024-12-04T11:29:09Z | COMMENTED | Jamal Wright | 2024-12-03T14:24:33Z |
| REQ-HTTPX-01 | AC-HTTPX-101-5 | Using `verify=False` together with a client certificate (`cert=...`) still loads the certificate instead of ignoring it. | TASK-HTTPX-1013 | done | encode/httpx | 89599a9541af14bcf906fc4ed58ccbdf403802ba | 2024-12-04T11:29:09Z | 3442 | Fix `verify=False`, `cert=...` case. | 2024-12-04T11:29:09Z | APPROVED | Sofia Reyes | 2024-12-04T03:18:46Z |
| REQ-HTTPX-01 | AC-HTTPX-101-6 | The documentation describes the `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables. | TASK-HTTPX-1015 | done | encode/httpx | 652f051feaf1ab2828e1812eb0c48f9046a8b5ce | 2025-09-11T10:59:20Z | 3579 | Documentation for SSL_CERT_FILE and SSL_CERT_DIR | 2025-09-11T10:59:20Z | APPROVED | Jamal Wright | 2025-09-11T10:33:07Z |