pf_app
Adds PUT /versions/:id/baseline/:logid that, in one transaction, drops the segment's rows and log entry and replays the baseline or reference SQL with new params. The endpoint refuses (409) if any scale, recode, or clone has been applied — those operations were calibrated against the old totals and would silently misreconcile. Baseline view gets an Edit button on each segment (hidden once forecast operations exist), populating the form with the original filters, offset, and note. Submit issues PUT in edit mode, POST otherwise. POST baseline and POST reference now also persist the structured filters in pf.log.params so edit can reload them. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| lib | ||
| public | ||
| routes | ||
| setup_sql | ||
| ui | ||
| .env.example | ||
| .gitignore | ||
| install.sh | ||
| package-lock.json | ||
| package.json | ||
| pf_perspective_options.md | ||
| pf_spec.md | ||
| pf_ux_mockup.md | ||
| server.js | ||