Dev Tracking Data Compilersqlite

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

requirementcriterioncriterion_texttasktask_statusreposhacommitted_atpr_numberpr_titlemerged_atreview_statereviewerreviewed_at
REQ-HTTPX-01AC-HTTPX-101-1`verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed.TASK-HTTPX-1011doneencode/httpx1805ee0d22f96e2b29f0500dd3076e10020004bf2024-11-12T11:31:42Z3394Graceful upgrade path for 0.28.2024-11-12T11:31:42ZCOMMENTEDSofia Reyes2024-11-11T07:03:26Z
REQ-HTTPX-01AC-HTTPX-101-1`verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed.TASK-HTTPX-1011doneencode/httpx1805ee0d22f96e2b29f0500dd3076e10020004bf2024-11-12T11:31:42Z3394Graceful upgrade path for 0.28.2024-11-12T11:31:42ZCOMMENTEDNina Kowalski2024-11-12T03:46:54Z
REQ-HTTPX-01AC-HTTPX-101-1`verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed.TASK-HTTPX-1011doneencode/httpx1805ee0d22f96e2b29f0500dd3076e10020004bf2024-11-12T11:31:42Z3394Graceful upgrade path for 0.28.2024-11-12T11:31:42ZAPPROVEDJamal Wright2024-11-12T07:43:44Z
REQ-HTTPX-01AC-HTTPX-101-2Passing a string to `verify` raises an error that tells the user to use `ssl.create_default_context(cafile=...)` instead.TASK-HTTPX-1012doneencode/httpxce7e14da27abba6574be9b3ea7cd5990556a93432024-11-28T11:46:59Z3418Error on verify as str.2024-11-28T11:46:59ZAPPROVEDJamal Wright2024-11-28T07:56:02Z
REQ-HTTPX-01AC-HTTPX-101-3Passing a string to `verify` raises `TypeError`.TASK-HTTPX-1012doneencode/httpxce7e14da27abba6574be9b3ea7cd5990556a93432024-11-28T11:46:59Z3418Error on verify as str.2024-11-28T11:46:59ZAPPROVEDJamal Wright2024-11-28T07:56:02Z
REQ-HTTPX-01AC-HTTPX-101-4Importing httpx does not import the `ssl` module until a client actually needs it.TASK-HTTPX-1014doneencode/httpx2ea2286db4da3ba6d318e617ac03217225e9f9622024-11-15T10:17:42Z3401Import ssl on demand2024-11-15T10:17:42ZAPPROVEDSofia Reyes2024-11-15T01:19:56Z
REQ-HTTPX-01AC-HTTPX-101-5Using `verify=False` together with a client certificate (`cert=...`) still loads the certificate instead of ignoring it.TASK-HTTPX-1013doneencode/httpx89599a9541af14bcf906fc4ed58ccbdf403802ba2024-12-04T11:29:09Z3442Fix `verify=False`, `cert=...` case.2024-12-04T11:29:09ZCOMMENTEDJamal Wright2024-12-03T14:24:33Z
REQ-HTTPX-01AC-HTTPX-101-5Using `verify=False` together with a client certificate (`cert=...`) still loads the certificate instead of ignoring it.TASK-HTTPX-1013doneencode/httpx89599a9541af14bcf906fc4ed58ccbdf403802ba2024-12-04T11:29:09Z3442Fix `verify=False`, `cert=...` case.2024-12-04T11:29:09ZAPPROVEDSofia Reyes2024-12-04T03:18:46Z
REQ-HTTPX-01AC-HTTPX-101-6The documentation describes the `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables.TASK-HTTPX-1015doneencode/httpx652f051feaf1ab2828e1812eb0c48f9046a8b5ce2025-09-11T10:59:20Z3579Documentation for SSL_CERT_FILE and SSL_CERT_DIR2025-09-11T10:59:20ZAPPROVEDJamal Wright2025-09-11T10:33:07Z