Skip to content

Added REST framework - #3

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:master
Mar 28, 2017
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:master

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member
  • /part/ URL is now a JSON api

- /part/ URL is now a JSON api
@SchrodingersGat
SchrodingersGat merged commit 3400739 into inventree:master Mar 28, 2017
SchrodingersGat pushed a commit that referenced this pull request May 26, 2021
proposed changes for translation and safer backend loading
oscgonfer added a commit to oscgonfer/InvenTree that referenced this pull request Mar 7, 2024
Merge InvenTree/InvenTree master
@nall nall mentioned this pull request Dec 24, 2024
3 of 6 tasks
Lowkey-wizard referenced this pull request in EQUA-AI/InvenTree Jul 19, 2026
…first full slice

One scan engine, one fingerprinted finding store, two surfaces — implemented
entirely inside the repair app (risk_* modules, migration 0005), flag-gated
off by default.

Engine (RR1): nine radar models; versioned display-text-free fingerprints;
tokened per-(rule,scope) leases with heartbeat, stale takeover, and
revision/generation fencing; staged candidates with complete-scan-only
resolution + grace; candidate-cap storm breaker; reopen/dismiss-recheck/
snooze-expiry episode semantics; immutable audited rule revisions with the
§13 enablement intersection.

Scope: canonical reversible codec (fail-closed on site scopes); seven
explicit source adapters with anchored per-row conflict exclusion so a row
linked to two customers appears in neither scope; least-privilege scanner
principal; zero-leak across findings/counts/caches/exports/notifications.

Rules (RR5 core): 11 live (WO_BLOCKED_SAFETY/ASSIGNMENT/PROCEDURE,
APPROVAL_SLA_BREACH/REVALIDATION_FAILED, JOBKIT_SHORTAGE_AGING, PO_LATE,
PACKET_STALLED, CLOSEOUT_MISSING, STOCK_BELOW_CRITICAL,
ASSET_REPEAT_MAINTENANCE) consuming authoritative services/emitted codes
only; WO_BLOCKED_PARTS dormant; RFQ/EXTERNAL_SYNC reserved for #3/inventree#18.
Corrective actions link only to existing governed routes.

Read model/API (RR2/RR3): one-scope REST rail with stable error envelope;
full rank tuple computed in the database; permissioned/idempotent lifecycle
commands that never touch a source system; short-TTL summary cache keyed by
scope + server authorization fingerprint; freshness/degraded/source_disabled
honesty everywhere.

Notifications (RR4 core): transition-driven delivery intents inserted
atomically with the transition, durable against lost queue hints,
occurrence-key dedupe, quiet hours, recipient revalidation at send.

Frontend: Risk Radar + Blocked Flow dashboard widgets, /command-center/
route (freshness bar, severity tiles, flow lanes, filterable queue, evidence
drawer, rule-health panel), server-validated scope hook, client-side
governed-link verification; Playwright spec.

Verified: 174 repair tests (131 risk) green; ruff --preview, tsc, biome
1.9.4 clean; 6 Playwright tests pass. Hardened by two independent adversarial
review rounds (54-agent workflow review + GPT-5.6-Sol audit), both fixed with
regression tests. Deferred (design-only): RR6 AI brief, notification
escalation, SLO metrics, realistic-volume budgets, non-PostgreSQL runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Lowkey-wizard referenced this pull request in EQUA-AI/InvenTree Aug 6, 2026
Live defect #3 from the first end-to-end closeout (WO-000128): every
'rejected' field decision 500'd with an IntegrityError. The service
deliberately writes final_value=None for rejections - "the human
recorded no value" - but the column forbade NULL, so rejections (and
accepted null values like a null downtime) were unrepresentable and
the decisions batch could never complete. The API also rejected
explicit JSON nulls client-side (allow_null was unset), hiding the
correct usage behind a 400.

- CloseoutFieldDecision.final_value: null=True (migration tasks.0029,
  ALTER COLUMN DROP NOT NULL - no data change). Null now means "no
  final value" (rejection / cleared), distinct from {} as an empty
  edited value.
- DecisionEntrySerializer.final_value: allow_null=True.
- New test: a mixed decisions batch through the real service persists
  a rejected field with a null final_value.

Tests: closeout + lifecycle suites 104/104.

Co-Authored-By: Claude Opus 5 <[email protected]>
RVAITProAlex added a commit to RVA-IT-Pros/InvenTree that referenced this pull request Aug 11, 2026
To apply the project item created to any build order by default item inventree#3
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