Record verified location refinements and Development deployment evidence
@ -81,8 +81,7 @@ restriction or temporary/temporal tracking is introduced. Real/Fictional provena
|
||||
- Maps, Floor Plans, Context and Word Companion keep their location identities, references, existing
|
||||
detection/Quick Add flags and provider contracts. Their interfaces and focus/Hold/Follow are unchanged.
|
||||
|
||||
Verification, screenshots, delivery identifiers and remaining environment limits are recorded below
|
||||
once the final release has completed validation.
|
||||
Verification and delivery evidence follows below. Production remained untouched.
|
||||
|
||||
## Reproduce the focused rendered checks
|
||||
|
||||
@ -101,3 +100,113 @@ xvfb-run -a node PlotLine.Tests/Browser/shared-attributes-comparison.cjs --insta
|
||||
maintained in JavaScript. The browser tests use actual compiled Razor/shared assets with synthetic
|
||||
HTTP mutations. `PlotLine.Tests/Sql/LocationTaxonomy.sql` is guarded to disposable clones and rolls
|
||||
its fixtures back. Existing Characters and Locations browser regressions remain separate checks.
|
||||
|
||||
## Delivery and verification
|
||||
|
||||
Final deployed application: **3cbafd34f2cdd9f75c94d1b74906db63edf8d946**.
|
||||
Development release `development-location-refinements-3cbafd34f2cd-20261127T145949Z`, deployment
|
||||
`20261127T150012Z-7f65af63d564`, passed signed admission, verified COPY_ONLY/CHECKSUM backup,
|
||||
binary/application/database checks and release-history recording. Migration 338 was applied through
|
||||
the first Development activation; the final code-only activation executed zero migrations.
|
||||
[Final receipt](RefinementsEvidence/development-deployment.json),
|
||||
[migration receipt](RefinementsEvidence/migration-deployment.json),
|
||||
[health](RefinementsEvidence/local-health.json), [release gates](RefinementsEvidence/gates.json).
|
||||
|
||||
Implementation commits pushed to `codex/word-companion-native-phase1-20261104`:
|
||||
|
||||
- `0e5a3805`: hierarchical picker, canonical taxonomy, shared Attributes and both consumers.
|
||||
- `2fb6423c`: preserve the older canonical type-list API and authenticated regression coverage.
|
||||
- `3cbafd34`: preserve picker/palette semantic colours, with seven-theme computed-colour assertions.
|
||||
|
||||
Validation completed:
|
||||
|
||||
- Clean solution build: zero warnings/errors; executable regression harness: **889 PASS**, exit 0.
|
||||
- Two fresh migration clones: all 208 other original business tables unchanged, all 16 old type rows
|
||||
and IDs unchanged, 81 new canonical types and 105 metadata rows; identical resulting schema hashes,
|
||||
DBCC and constraints passed. [Migration qualification](RefinementsEvidence/migration-qualification.json).
|
||||
The code-only qualification retained all 210 business-table fingerprints and the same schema.
|
||||
[Final qualification](RefinementsEvidence/database-qualification.json).
|
||||
- Focused SQL tests: three-level acyclic taxonomy, grouping/assignable separation, Office contexts,
|
||||
generic/specialised and bulk assignments, exact prior-value Undo, unchanged physical containment
|
||||
and provenance, server rejection of grouping keys. All fixtures roll back.
|
||||
[SQL results](RefinementsEvidence/taxonomy-sql.txt).
|
||||
- Existing location SQL tests and real Dapper contracts passed with the expanded catalogue, including
|
||||
hierarchy/concurrency guards, scene/reference/merge preservation, exact datetime2 merge binding,
|
||||
typed classification export and generic restore. [SQL](RefinementsEvidence/existing-location-sql.txt),
|
||||
[Dapper](RefinementsEvidence/dapper-contract.txt).
|
||||
- Actual compiled Razor/shared assets, with isolated synthetic HTTP mutations: new picker/taxonomy
|
||||
suite at 50/500/1,000 records; around 100 containment levels, wide roots/siblings, repeated names,
|
||||
aliases, long paths and descriptions. Native bidirectional drag, bulk/Undo, generic selection,
|
||||
descendant filtering/counts, nested menus, explicit merge confirmation, branch exclusions,
|
||||
root selection, keyboard navigation, empty/clear search, and saved nested expansion passed.
|
||||
[Browser](RefinementsEvidence/results-browser.json), [installed PWA](RefinementsEvidence/results-pwa.json).
|
||||
- Existing Characters browser/PWA suites passed at 10/100/500; existing Locations browser/PWA suites
|
||||
passed at 50/200/500/1,000. These exercise the existing cards, biographies, inline operations,
|
||||
relationship/navigation links, selection, live-refresh guards, hierarchy drag and panel persistence.
|
||||
- Both palettes passed one-session cross-workspace navigation with independent widths/group state,
|
||||
aligned columns at narrow/wide bounds, seven themes and 1024/1440/1920 viewport checks. Character
|
||||
card node counts, full fixture biographies and variable heights remain intact.
|
||||
[Shared browser check](RefinementsEvidence/shared-browser.json),
|
||||
[shared installed-PWA check](RefinementsEvidence/shared-pwa.json).
|
||||
- Authenticated final Development browser: real type assignment/bulk/Undo/filtering, aliases,
|
||||
Create/Edit parent/type controls, relationship target, workspace parent/alias picker, native attribute
|
||||
drag in both directions, cycle/heading rejection, reviewed workspace merge, traditional merge
|
||||
confirmation, and real Characters creation/bulk/filter/Undo with variable biographies.
|
||||
[Actual browser](RefinementsEvidence/development-refinements.json).
|
||||
- Actual installed Development Chromium PWA: 105-node catalogue, legacy 97-ID response without a
|
||||
duplicate NULL choice, Office disambiguation, alias picker, both palettes, card descriptions,
|
||||
resize and same-window Details. [Actual installed PWA](RefinementsEvidence/development-refinements-pwa.json).
|
||||
|
||||
All screenshots and mutation tests use synthetic fixtures. The dedicated account and its owned
|
||||
project/book/locations/characters were removed through the existing account hard-delete workflow;
|
||||
its credential file and all three task-specific qualification databases were removed. Development
|
||||
was never restored or reset. [Cleanup](RefinementsEvidence/fixture-cleanup.json).
|
||||
|
||||
## Representative rendered evidence
|
||||
|
||||
| Demonstration | Screenshots |
|
||||
|---|---|
|
||||
| Wide hierarchical picker with selected full path | [Browser](RefinementsEvidence/picker-browser.png), [installed PWA](RefinementsEvidence/picker-pwa.png) |
|
||||
| Deep hierarchy / long path | [Browser](RefinementsEvidence/picker-large-browser.png), [PWA](RefinementsEvidence/picker-large-pwa.png) |
|
||||
| Expanded taxonomy, light/dark | [Light](RefinementsEvidence/taxonomy-browser-modern-light.png), [dark](RefinementsEvidence/taxonomy-browser-modern-dark.png) |
|
||||
| Shared Locations palette | [Light](RefinementsEvidence/locations-attributes-browser-modern-light.png), [dark](RefinementsEvidence/locations-attributes-browser-modern-dark.png) |
|
||||
| Shared Characters palette | [Light](RefinementsEvidence/characters-attributes-browser-modern-light.png), [dark](RefinementsEvidence/characters-attributes-browser-modern-dark.png) |
|
||||
| Character cards retained | [Browser](RefinementsEvidence/characters-cards-browser.png), [installed PWA](RefinementsEvidence/characters-cards-pwa.png) |
|
||||
| Deployed parent and traditional merge pickers | [Parent](RefinementsEvidence/development-picker.png), [merge](RefinementsEvidence/development-merge-picker.png) |
|
||||
| Deployed taxonomy and Characters | [Locations](RefinementsEvidence/development-taxonomy.png), [Characters](RefinementsEvidence/development-characters.png) |
|
||||
| Deployed installed PWA | [Type picker](RefinementsEvidence/development-pwa-type-picker.png), [location picker](RefinementsEvidence/development-pwa-location-picker.png), [Locations](RefinementsEvidence/development-pwa-locations.png), [Characters](RefinementsEvidence/development-pwa-characters.png) |
|
||||
|
||||
The evidence directory also includes all seven theme screenshots for both palettes and modes.
|
||||
Representative new-workspace load timings (milliseconds; single synthetic HTTP-fixture passes):
|
||||
|
||||
| Locations | Browser | Installed Chromium PWA |
|
||||
|---:|---:|---:|
|
||||
| 50 | 287 | 316 |
|
||||
| 500 | 490 | 773 |
|
||||
| 1000 | 756 | 1181 |
|
||||
|
||||
These are rendered fixture measurements, not authenticated service benchmarks or statistical speedup
|
||||
claims. Full descriptions/cards remain unvirtualised, as before. Deep-picker interaction measurements
|
||||
include search, pointer actions, a screenshot and deliberate settling waits.
|
||||
|
||||
## Acceptance boundaries
|
||||
|
||||
| Requirement | Status | Evidence / limit |
|
||||
|---|---|---|
|
||||
| Hierarchical picker, sibling/root order, paths, aliases, duplicate names | Passed | Rendered suites and actual forms |
|
||||
| Root choice, operation exclusions, keyboard, clear/empty search | Passed | Browser/PWA; actual server rejection retained |
|
||||
| Workspace and traditional merge confirmation | Passed | Authenticated final Development run |
|
||||
| Existing IDs/values, generic levels, three-level taxonomy | Passed | SQL fingerprints, graph checks, actual assignments |
|
||||
| Parent filters/counts, bulk, drag and exact Undo | Passed | Both rendered consumers; SQL and actual mutation checks |
|
||||
| Shared styling, semantic colours, narrow/wide aligned columns | Passed | Seven themes, computed colour checks and screenshots |
|
||||
| Independent preferences, resize, scrolling and restored expansion | Passed | Same-session browser/PWA navigation |
|
||||
| Characters cards and existing Locations workflows | Passed | Existing browser suites, SQL and authenticated smoke |
|
||||
| Maps, Floor Plans, Context, import and Word contracts | Passed | Existing harness/contracts; unchanged IDs/providers, no interface redesign |
|
||||
| No added AI/geocoding or focus/Hold/Follow writes | Passed | New command/read paths and migration inspected; existing focus harness |
|
||||
| Development deployment and fixture removal | Passed | Signed receipts, healthy exact source/database, cleanup record |
|
||||
| Physical Windows/Edge/Word end-to-end use | Not verified | Linux browser + genuinely installed Chromium PWA were available |
|
||||
| Collections above 1,000; exhaustive assistive-technology audit | Not verified | No claim beyond exercised cases |
|
||||
|
||||
No unresolved failing check remains. Catalogue authoring UI is not included; extensions use reviewed
|
||||
forward-only migrations. Specialised Maps/Floor Plans selectors and Context/Assets interfaces remain
|
||||
unchanged by design. No general application redesign was undertaken.
|
||||
|
||||
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 45 KiB |
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"count": 10,
|
||||
"loadMs": 271,
|
||||
"assignments": 13
|
||||
},
|
||||
{
|
||||
"count": 100,
|
||||
"loadMs": 373,
|
||||
"assignments": 13
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 1016,
|
||||
"assignments": 13
|
||||
}
|
||||
]
|
||||
BIN
Docs/Locations/RefinementsEvidence/characters-cards-browser.png
Normal file
|
After Width: | Height: | Size: 218 KiB |
BIN
Docs/Locations/RefinementsEvidence/characters-cards-pwa.png
Normal file
|
After Width: | Height: | Size: 242 KiB |
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"count": 10,
|
||||
"loadMs": 295,
|
||||
"assignments": 13
|
||||
},
|
||||
{
|
||||
"count": 100,
|
||||
"loadMs": 445,
|
||||
"assignments": 13
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 1407,
|
||||
"assignments": 13
|
||||
}
|
||||
]
|
||||
7
Docs/Locations/RefinementsEvidence/dapper-contract.txt
Normal file
@ -0,0 +1,7 @@
|
||||
PASS Dapper read: 50 synthetic + 69 existing clone records, old list 28.3 ms (119 rows), new six-result directory 115.3 ms
|
||||
PASS Dapper read: 200 synthetic + 69 existing clone records, old list 61.1 ms (269 rows), new six-result directory 83.9 ms
|
||||
PASS Dapper read: 500 synthetic + 69 existing clone records, old list 63.7 ms (569 rows), new six-result directory 72.0 ms
|
||||
PASS Dapper read: 1000 synthetic + 69 existing clone records, old list 83.7 ms (1069 rows), new six-result directory 69.9 ms
|
||||
PASS Dapper reviewed merge preserves exact datetime2(7) versions.
|
||||
PASS Dapper create result, exact-version assignment/Undo, directory projections including entry/exit-only usage, and rollback; no live data changed.
|
||||
PASS actual typed ProjectBackup export and generic location JSON restore retain classification; restore rolled back.
|
||||
@ -0,0 +1,35 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"runs": [
|
||||
{
|
||||
"clone": 1,
|
||||
"starting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"resulting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"executed": 0,
|
||||
"unchanged_original_business_tables": 210,
|
||||
"existing_type_rows_and_ids_unchanged": true,
|
||||
"original_type_count": 97,
|
||||
"result_type_count": 97,
|
||||
"taxonomy_entries": 105,
|
||||
"integrity": {
|
||||
"integrity": true,
|
||||
"constraint_violations": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"clone": 2,
|
||||
"starting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"resulting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"executed": 0,
|
||||
"unchanged_original_business_tables": 210,
|
||||
"existing_type_rows_and_ids_unchanged": true,
|
||||
"original_type_count": 97,
|
||||
"result_type_count": 97,
|
||||
"taxonomy_entries": 105,
|
||||
"integrity": {
|
||||
"integrity": true,
|
||||
"constraint_violations": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Docs/Locations/RefinementsEvidence/development-characters.png
Normal file
|
After Width: | Height: | Size: 190 KiB |
@ -0,0 +1,91 @@
|
||||
{
|
||||
"status": "activated",
|
||||
"operation": "activate",
|
||||
"deployment_id": "20261127T150012Z-7f65af63d564",
|
||||
"started_utc": "2026-11-27T15:00:12.634+00:00",
|
||||
"completed_utc": "2026-11-27T15:00:46.003+00:00",
|
||||
"release": {
|
||||
"application_sha256": "712cf76b4a96a8962bc18407d6bbede95e304ccd0449aacb3860380d8ab36bbe",
|
||||
"dll_sha256": "e7fc47ff1355c892923d8d268123bc890e65ce6883eb4faaad23dc66e8542af4",
|
||||
"id": "development-location-refinements-3cbafd34f2cd-20261127T145949Z",
|
||||
"manifest_sha256": "c2909e47da17c0d3786a36ef2f6623d9e98bd3e9ff44fd8f70327036c1cb968e",
|
||||
"package_sha256": "df9c559800b22566142bd8ddeb90161bf55cf9666097c88edb8761e4349abbdb",
|
||||
"source_commit": "3cbafd34f2cdd9f75c94d1b74906db63edf8d946",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"checks": {
|
||||
"activation": true,
|
||||
"application": {
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development",
|
||||
"healthy": true,
|
||||
"sourceCommit": "3cbafd34f2cdd9f75c94d1b74906db63edf8d946",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"binary_identity": true,
|
||||
"database": {
|
||||
"complete_history": true,
|
||||
"healthy": true,
|
||||
"history": {
|
||||
"baselined": 317,
|
||||
"executed": 20,
|
||||
"expected": 337,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-27T14:43:46.7419503Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261127T144315Z-90b369e13fad",
|
||||
"manifest_sha256": "e78cc446178a059c73d4dfe1c6d2e5c03132206149f9b9f4c371333c98b5553a",
|
||||
"package_sha256": "f7467fd8427662e0781eb086fa145dbbf9be5c552d3e0118550c6b13a021a6b2",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-location-refinements-0e5a38050174-20261127T144256Z",
|
||||
"source_commit": "0e5a38050174e99260fe60ed4aa40c9a076e4aaf"
|
||||
},
|
||||
"recorded": 337,
|
||||
"successful_release_count": 18
|
||||
},
|
||||
"history_verification_seconds": 0.1236504
|
||||
},
|
||||
"http_login": true,
|
||||
"http_root": true
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": 0,
|
||||
"committed": [],
|
||||
"committed_list_truncated": false,
|
||||
"executed": 0,
|
||||
"schema": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21"
|
||||
},
|
||||
"release_history": {
|
||||
"activated_utc": "2026-11-27T15:00:45.7960160Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261127T150012Z-7f65af63d564",
|
||||
"manifest_sha256": "c2909e47da17c0d3786a36ef2f6623d9e98bd3e9ff44fd8f70327036c1cb968e",
|
||||
"package_sha256": "df9c559800b22566142bd8ddeb90161bf55cf9666097c88edb8761e4349abbdb",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-location-refinements-3cbafd34f2cd-20261127T145949Z",
|
||||
"source_commit": "3cbafd34f2cdd9f75c94d1b74906db63edf8d946"
|
||||
},
|
||||
"availability": {
|
||||
"confirmed_inactive_to_health_ready_seconds": 6.991940856038127,
|
||||
"definition": "Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.",
|
||||
"service_stop_to_start_seconds": 3.631064420042094,
|
||||
"stop_request_to_health_ready_seconds": 7.154535422974732,
|
||||
"stop_request_to_start_command_complete_seconds": 3.7936617409577593
|
||||
},
|
||||
"failures": [],
|
||||
"warnings": [
|
||||
"upload-metrics-unavailable; sender receipt may provide transfer measurements"
|
||||
],
|
||||
"database_backup": {
|
||||
"verified": true,
|
||||
"options": [
|
||||
"COPY_ONLY",
|
||||
"CHECKSUM",
|
||||
"VERIFYONLY"
|
||||
]
|
||||
},
|
||||
"target": "Development on Atlas only",
|
||||
"production_access": false
|
||||
}
|
||||
BIN
Docs/Locations/RefinementsEvidence/development-merge-picker.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
Docs/Locations/RefinementsEvidence/development-picker.png
Normal file
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 162 KiB |
BIN
Docs/Locations/RefinementsEvidence/development-pwa-locations.png
Normal file
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 166 KiB |
@ -0,0 +1,14 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"target": "Development",
|
||||
"installed": true,
|
||||
"checks": [
|
||||
"real installed Chromium PWA",
|
||||
"canonical taxonomy and legacy flat API contract",
|
||||
"type picker disambiguates Office",
|
||||
"alias/path containment picker",
|
||||
"shared Locations taxonomy palette",
|
||||
"same-window Details",
|
||||
"shared Characters palette, resize and two unchanged biographies"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"target": "Development",
|
||||
"checks": [
|
||||
"real canonical 105-entry API",
|
||||
"generic and specialised type selection",
|
||||
"parent counts include descendants",
|
||||
"actual bulk type assignment and exact Undo",
|
||||
"type filtering and cards",
|
||||
"Edit parent picker and aliases",
|
||||
"Create parent/type pickers",
|
||||
"Details relationship target picker",
|
||||
"workspace parent and alias search",
|
||||
"native bidirectional attribute drag and Undo",
|
||||
"server cycle and heading rejection",
|
||||
"alias-based reviewed merge",
|
||||
"traditional merge picker and confirmation",
|
||||
"real Characters bulk attributes/filter/Undo",
|
||||
"unchanged variable character biographies"
|
||||
]
|
||||
}
|
||||
BIN
Docs/Locations/RefinementsEvidence/development-taxonomy.png
Normal file
|
After Width: | Height: | Size: 184 KiB |
29
Docs/Locations/RefinementsEvidence/existing-location-sql.txt
Normal file
@ -0,0 +1,29 @@
|
||||
5661||2026-11-27T14:38:14.4334209
|
||||
5661|5664|2026-11-27T14:38:14.4374884
|
||||
5661||2026-11-27T14:38:14.4415565
|
||||
5662||2026-11-27T14:38:14.4415565
|
||||
5661|Workspace test root|2026-11-27T14:38:14.4496921
|
||||
5661|Workspace renamed|2026-11-27T14:38:14.4496922
|
||||
5662|5661|2026-11-27T14:38:14.4537655
|
||||
5665|5664|2026-11-27T14:38:14.4537656
|
||||
5662||2026-11-27T14:38:14.4578356
|
||||
5665||2026-11-27T14:38:14.4578356
|
||||
5661|0|2026-11-27T14:38:19.4578357
|
||||
5661|Author prose|2026-11-27T14:38:19.4578358
|
||||
5661|Exact prose |2026-11-27T14:38:19.4578359
|
||||
PASS bulk branch preservation, root moves, classification, targeted rename, exact undo
|
||||
PASS descendant cycle rejection
|
||||
PASS unavailable parent rejection
|
||||
PASS cross-project parent rejection
|
||||
PASS stale write rejection
|
||||
PASS unauthorized mutation rejection
|
||||
8174|5674|Merge source|Merge survivor
|
||||
PASS merge invalidates pre-merge child Undo receipts
|
||||
PASS transactional merge preserves conflicting descriptions, source, classification, children, map geometry, floor-plan links, scene assignments, aliases and non-hierarchical relationships
|
||||
PASS traditional save rejects descendant cycles
|
||||
PASS traditional save rejects self-parent assignment
|
||||
PASS traditional save rejects mismatched location/project
|
||||
5681
|
||||
PASS traditional save preserves unchanged archived-parent references, classification and import transaction
|
||||
8174|5683|Case source|Case survivor
|
||||
PASS merge preserves case-only and trailing-space prose differences
|
||||
7
Docs/Locations/RefinementsEvidence/fixture-cleanup.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"disposable_account_and_owned_project_book_locations_characters_removed": true,
|
||||
"private_credential_file_deleted": true,
|
||||
"qualification_clones_removed": 3,
|
||||
"development_restored_or_reset": false
|
||||
}
|
||||
20
Docs/Locations/RefinementsEvidence/gates.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"source_commit": "3cbafd34f2cdd9f75c94d1b74906db63edf8d946",
|
||||
"results": [
|
||||
{
|
||||
"gate": "build",
|
||||
"exit_code": 0,
|
||||
"seconds": 42.32
|
||||
},
|
||||
{
|
||||
"gate": "regression",
|
||||
"exit_code": 0,
|
||||
"seconds": 98.1
|
||||
},
|
||||
{
|
||||
"gate": "publish",
|
||||
"exit_code": 0,
|
||||
"seconds": 31.31
|
||||
}
|
||||
]
|
||||
}
|
||||
7
Docs/Locations/RefinementsEvidence/local-health.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"healthy": true,
|
||||
"version": "1.0.0",
|
||||
"sourceCommit": "3cbafd34f2cdd9f75c94d1b74906db63edf8d946",
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development"
|
||||
}
|
||||
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 41 KiB |
93
Docs/Locations/RefinementsEvidence/migration-deployment.json
Normal file
@ -0,0 +1,93 @@
|
||||
{
|
||||
"status": "activated",
|
||||
"operation": "activate",
|
||||
"deployment_id": "20261127T144315Z-90b369e13fad",
|
||||
"started_utc": "2026-11-27T14:43:15.549+00:00",
|
||||
"completed_utc": "2026-11-27T14:43:46.945+00:00",
|
||||
"release": {
|
||||
"application_sha256": "62332d93dc963fbac37651f970bb04fab572af08a17dcadafa946ffcf769a493",
|
||||
"dll_sha256": "6ea473d35843560c5cec62081ac3f1b446b0520fb8dc8557c5c4834ea1594444",
|
||||
"id": "development-location-refinements-0e5a38050174-20261127T144256Z",
|
||||
"manifest_sha256": "e78cc446178a059c73d4dfe1c6d2e5c03132206149f9b9f4c371333c98b5553a",
|
||||
"package_sha256": "f7467fd8427662e0781eb086fa145dbbf9be5c552d3e0118550c6b13a021a6b2",
|
||||
"source_commit": "0e5a38050174e99260fe60ed4aa40c9a076e4aaf",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"checks": {
|
||||
"activation": true,
|
||||
"application": {
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development",
|
||||
"healthy": true,
|
||||
"sourceCommit": "0e5a38050174e99260fe60ed4aa40c9a076e4aaf",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"binary_identity": true,
|
||||
"database": {
|
||||
"complete_history": true,
|
||||
"healthy": true,
|
||||
"history": {
|
||||
"baselined": 317,
|
||||
"executed": 20,
|
||||
"expected": 337,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-27T13:36:05.9558071Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261127T133528Z-4f86bec8648b",
|
||||
"manifest_sha256": "00190320b17328bd3021d171924b2133f3e42bf25dfae6b1f07ec0c7d20d8373",
|
||||
"package_sha256": "017501055111bf1790e48936222ba940cf74d4b70e061dcc50b1119a0b942699",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-locations-451e766777b1-20261127T133501Z",
|
||||
"source_commit": "451e766777b134f5be4b0780c01ac8d56b3ec39d"
|
||||
},
|
||||
"recorded": 337,
|
||||
"successful_release_count": 17
|
||||
},
|
||||
"history_verification_seconds": 0.1454663
|
||||
},
|
||||
"http_login": true,
|
||||
"http_root": true
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": 0,
|
||||
"committed": [
|
||||
"338_LocationTypeTaxonomy"
|
||||
],
|
||||
"committed_list_truncated": false,
|
||||
"executed": 1,
|
||||
"schema": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21"
|
||||
},
|
||||
"release_history": {
|
||||
"activated_utc": "2026-11-27T14:43:46.7419503Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261127T144315Z-90b369e13fad",
|
||||
"manifest_sha256": "e78cc446178a059c73d4dfe1c6d2e5c03132206149f9b9f4c371333c98b5553a",
|
||||
"package_sha256": "f7467fd8427662e0781eb086fa145dbbf9be5c552d3e0118550c6b13a021a6b2",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-location-refinements-0e5a38050174-20261127T144256Z",
|
||||
"source_commit": "0e5a38050174e99260fe60ed4aa40c9a076e4aaf"
|
||||
},
|
||||
"availability": {
|
||||
"confirmed_inactive_to_health_ready_seconds": 5.994446413998958,
|
||||
"definition": "Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.",
|
||||
"service_stop_to_start_seconds": 2.2334060690482147,
|
||||
"stop_request_to_health_ready_seconds": 6.173158943012822,
|
||||
"stop_request_to_start_command_complete_seconds": 2.412122125038877
|
||||
},
|
||||
"failures": [],
|
||||
"warnings": [
|
||||
"upload-metrics-unavailable; sender receipt may provide transfer measurements"
|
||||
],
|
||||
"database_backup": {
|
||||
"verified": true,
|
||||
"options": [
|
||||
"COPY_ONLY",
|
||||
"CHECKSUM",
|
||||
"VERIFYONLY"
|
||||
]
|
||||
},
|
||||
"target": "Development on Atlas only",
|
||||
"production_access": false
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"runs": [
|
||||
{
|
||||
"clone": 1,
|
||||
"starting_schema_sha256": "5d7980cd3d919c3498cf644734295fc8b4c11244ce094c14b54211db89c926d4",
|
||||
"resulting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"executed": 1,
|
||||
"unchanged_original_business_tables": 208,
|
||||
"existing_type_rows_and_ids_unchanged": true,
|
||||
"original_type_count": 16,
|
||||
"result_type_count": 97,
|
||||
"taxonomy_entries": 105,
|
||||
"integrity": {
|
||||
"integrity": true,
|
||||
"constraint_violations": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"clone": 2,
|
||||
"starting_schema_sha256": "5d7980cd3d919c3498cf644734295fc8b4c11244ce094c14b54211db89c926d4",
|
||||
"resulting_schema_sha256": "7096629dc68204c09d0ca5b2fae5eaf24505d7435ebdefe0141f3ee8b52a9a21",
|
||||
"executed": 1,
|
||||
"unchanged_original_business_tables": 208,
|
||||
"existing_type_rows_and_ids_unchanged": true,
|
||||
"original_type_count": 16,
|
||||
"result_type_count": 97,
|
||||
"taxonomy_entries": 105,
|
||||
"integrity": {
|
||||
"integrity": true,
|
||||
"constraint_violations": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Docs/Locations/RefinementsEvidence/picker-browser.png
Normal file
|
After Width: | Height: | Size: 186 KiB |
BIN
Docs/Locations/RefinementsEvidence/picker-large-browser.png
Normal file
|
After Width: | Height: | Size: 227 KiB |
BIN
Docs/Locations/RefinementsEvidence/picker-large-pwa.png
Normal file
|
After Width: | Height: | Size: 237 KiB |
BIN
Docs/Locations/RefinementsEvidence/picker-pwa.png
Normal file
|
After Width: | Height: | Size: 207 KiB |
38
Docs/Locations/RefinementsEvidence/results-browser.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"results": [
|
||||
{
|
||||
"count": 50,
|
||||
"loadMs": 287,
|
||||
"assignments": 8,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 490,
|
||||
"assignments": 2,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
},
|
||||
{
|
||||
"count": 1000,
|
||||
"loadMs": 756,
|
||||
"assignments": 2,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
38
Docs/Locations/RefinementsEvidence/results-pwa.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"results": [
|
||||
{
|
||||
"count": 50,
|
||||
"loadMs": 316,
|
||||
"assignments": 8,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
},
|
||||
{
|
||||
"count": 500,
|
||||
"loadMs": 773,
|
||||
"assignments": 2,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
},
|
||||
{
|
||||
"count": 1000,
|
||||
"loadMs": 1181,
|
||||
"assignments": 2,
|
||||
"themes": 7,
|
||||
"widths": [
|
||||
1024,
|
||||
1440,
|
||||
1920
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
10
Docs/Locations/RefinementsEvidence/shared-browser.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"themes": 7,
|
||||
"checks": [
|
||||
"both real consumers use shared renderer",
|
||||
"same-session independent group/width preferences",
|
||||
"width and nested expansion restore",
|
||||
"unaltered character biographies and variable card dimensions"
|
||||
]
|
||||
}
|
||||
10
Docs/Locations/RefinementsEvidence/shared-pwa.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"themes": 7,
|
||||
"checks": [
|
||||
"both real consumers use shared renderer",
|
||||
"same-session independent group/width preferences",
|
||||
"width and nested expansion restore",
|
||||
"unaltered character biographies and variable card dimensions"
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 247 KiB |
|
After Width: | Height: | Size: 244 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 245 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-baby-blue.png
Normal file
|
After Width: | Height: | Size: 290 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-modern-dark.png
Normal file
|
After Width: | Height: | Size: 293 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-modern-light.png
Normal file
|
After Width: | Height: | Size: 291 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-plotdirector.png
Normal file
|
After Width: | Height: | Size: 294 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-rose-pink.png
Normal file
|
After Width: | Height: | Size: 291 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-warm-dark.png
Normal file
|
After Width: | Height: | Size: 297 KiB |
BIN
Docs/Locations/RefinementsEvidence/taxonomy-pwa-warm-light.png
Normal file
|
After Width: | Height: | Size: 291 KiB |
29
Docs/Locations/RefinementsEvidence/taxonomy-sql.txt
Normal file
@ -0,0 +1,29 @@
|
||||
PASS 105-node canonical taxonomy, assignable/group separation and disambiguated Office contexts
|
||||
PASS taxonomy reachability, acyclicity and three presentation levels
|
||||
7437||2026-11-27T15:01:44.1907605
|
||||
7437|6|2026-11-27T15:01:44.1948318
|
||||
7437||2026-11-27T15:01:44.1948319
|
||||
7437|16|2026-11-27T15:01:44.1988986
|
||||
7437||2026-11-27T15:01:44.1988987
|
||||
7437|38|2026-11-27T15:01:44.2029662
|
||||
7437||2026-11-27T15:01:44.2029663
|
||||
7437|22|2026-11-27T15:01:44.2070324
|
||||
7437||2026-11-27T15:01:44.2070325
|
||||
7437|57|2026-11-27T15:01:44.2110992
|
||||
7437||2026-11-27T15:01:44.2110993
|
||||
7437|34|2026-11-27T15:01:44.2151650
|
||||
7437||2026-11-27T15:01:44.2192322
|
||||
7437|61|2026-11-27T15:01:44.2192323
|
||||
7437||2026-11-27T15:01:44.2233024
|
||||
7437|21|2026-11-27T15:01:44.2233025
|
||||
7437||2026-11-27T15:01:44.2273865
|
||||
7437|8|2026-11-27T15:01:44.2273866
|
||||
7437||2026-11-27T15:01:44.2314601
|
||||
7437|97|2026-11-27T15:01:44.2314602
|
||||
PASS generic and specialised assignments, exact Undo, unchanged containment/provenance
|
||||
7437||2026-11-27T15:01:44.2355363
|
||||
7438||2026-11-27T15:01:44.2355363
|
||||
7437|22|2026-11-27T15:01:44.2518353
|
||||
7438|22|2026-11-27T15:01:44.2518353
|
||||
PASS bulk specialisation and individual prior-value Undo
|
||||
PASS server rejects taxonomy headings as type IDs; all fixture data rolled back
|
||||
@ -1,7 +1,11 @@
|
||||
# Locations workspace
|
||||
|
||||
The current hierarchical picker, data-driven taxonomy and shared Attributes composition are
|
||||
documented in [Locations refinements](Refinements.md) and the
|
||||
[shared Attributes standard](../UI/AttributesPanel.md). The mutation/merge safeguards below remain in force.
|
||||
|
||||
The main directory uses the existing `dbo.Locations` identifiers. `LocationWorkspaceController`
|
||||
reads a flat directory and recorded associations using Dapper and `Location_WorkspaceRead`.
|
||||
reads a flat directory and recorded associations using Dapper and `Location_WorkspaceRead`, with `LocationTypeTaxonomy_Read` for canonical presentation.
|
||||
The browser builds hierarchy paths and child indexes without a recursive SQL view or per-location
|
||||
queries. The initial MVC request reads the authorised project only. Associated manuscript prose
|
||||
is never loaded. Existing Details/Edit, archive, scene assignment and relationship forms remain.
|
||||
@ -24,8 +28,9 @@ are suitable quick switches; numeric detection priority remains in the full form
|
||||
It is independent of type. No existing location is classified automatically. Classification
|
||||
is edited in the workspace and preserved by existing full forms, which do not update this column.
|
||||
`LocationItem.Classification` and the existing export selector preserve it through project backups;
|
||||
the generic restore contract already accepts the additional column. `LocationWorkspaceIcons` maps
|
||||
canonical labels onto opt-in shared ribbon icons without changing other consumers.
|
||||
the generic restore contract already accepts the additional column. `LocationWorkspaceIcons` adapts canonical taxonomy metadata to opt-in shared ribbon icons without
|
||||
changing other consumers. Migration 338 adds 81 further assignable types and a 105-node metadata
|
||||
hierarchy while retaining every existing ID/name; see the refinements catalogue/extension contract.
|
||||
|
||||
## Mutation and hierarchy safety
|
||||
|
||||
|
||||
@ -21,7 +21,8 @@ if(!file?.startsWith('/tmp/pd-dev-browser-'))throw Error('Dedicated private fixt
|
||||
await page.locator('[data-clear-selection]').click();await expand(page.locator('[data-value="@premises"]'));await expand(attr('residential'));await attr('house').locator('[data-attribute-filter]').dragTo(row(kitchen));await page.waitForTimeout(200);data=await directory();assert.equal(data.locations.find(r=>r.id===kitchen).type,type('house'));await page.locator('[data-undo]').click();await page.waitForTimeout(200);data=await directory();assert.equal(data.locations.find(r=>r.id===kitchen).type,type('kitchen'));await row(kitchen).locator('[data-drag-location]').dragTo(attr('house'));await page.waitForTimeout(200);data=await directory();assert.equal(data.locations.find(r=>r.id===kitchen).type,type('house'));await page.locator('[data-undo]').click();await page.waitForTimeout(200);
|
||||
data=await directory();let r=data.locations.find(r=>r.id===north);assert.equal((await api('Assign',{projectId:identity.ProjectID,attribute:'parent',changes:[{id:north,value:String(home),version:r.version}]})).status,409);r=data.locations.find(r=>r.id===home);assert.equal((await api('Assign',{projectId:identity.ProjectID,attribute:'type',changes:[{id:home,value:'@premises',version:r.version}]})).status,409);
|
||||
const duplicate=await create('Ledger alternate acceptance',null);await load();await row(duplicate).getByRole('button',{name:/Actions for/}).click();await page.getByRole('menuitem',{name:'Merge with another location…',exact:true}).click();dialog=page.locator('[data-location-dialog]');await dialog.getByRole('searchbox',{name:'Search locations'}).fill('Old ledger lodging');await dialog.locator(`[data-picker-id="${home}"] .pd-location-picker-name`).click();await dialog.locator('input[type=checkbox]').check();const merged=page.waitForResponse(r=>r.url().endsWith('/LocationWorkspace/Merge'));await dialog.locator('[data-dialog-save]').click();assert.equal((await merged).status(),200);await dialog.waitFor({state:'hidden'});data=await directory();assert.equal(data.locations.length,5);assert.equal(data.locations.find(r=>r.id===home).type,type('house'));assert.equal(data.locations.find(r=>r.id===home).parent,harbour);await page.evaluate(()=>document.querySelectorAll('[data-toast-host] button[aria-label^=Dismiss]').forEach(b=>b.click()));await page.screenshot({path:out+'/development-taxonomy.png'});
|
||||
const traditionalDuplicate=await create('Traditional merge acceptance',null);await page.goto(base+`/Locations/Merge/${traditionalDuplicate}`);await page.getByRole('button',{name:'Choose surviving location',exact:true}).click();dialog=page.locator('dialog.pd-location-picker-dialog');await dialog.getByRole('searchbox',{name:'Search locations'}).fill('Old ledger lodging');await dialog.locator(`[data-picker-id="${home}"] .pd-location-picker-name`).click();await page.screenshot({path:out+'/development-merge-picker.png'});await dialog.getByRole('button',{name:'Choose location',exact:true}).click();await page.locator('input[type=checkbox][name="Form.Confirm"]').check();await page.getByRole('button',{name:'Merge location',exact:true}).click();await page.waitForURL(new RegExp(`/Locations/Details/${home}$`));data=await directory();assert.equal(data.locations.length,5);assert.equal(data.locations.find(r=>r.id===home).type,type('house'));
|
||||
for(const [name,bio]of [['Acceptance cast one','A complete synthetic biography.'],['Acceptance cast two','A complete synthetic biography. '.repeat(16)]]){await page.goto(base+`/Characters/Create?${q}`);await page.locator('[name=CharacterName]').fill(name);await page.locator('[name=DefaultDescription]').fill(bio);await page.getByRole('button',{name:'Save character',exact:true}).click();await page.waitForURL(/\/Characters\/Details\/\d+/);}
|
||||
await page.goto(base+`/Characters?${q}`);await page.locator('[data-attribute=importance]').first().waitFor();const characters=async()=>{const r=await page.request.get(base+`/CharacterAttributes/Directory?${q}`);assert.equal(r.status(),200);return r.json();};const before=(await characters()).characters;assert.equal(before.length,2);await page.locator('[data-select-visible]').click();await page.locator('[data-attribute=importance][data-value="10"] [data-assign]').click();await page.waitForTimeout(200);assert((await characters()).characters.every(r=>r.values.importance==='10'));await page.locator('[data-attribute=importance][data-value="10"] [data-attribute-filter]').click();assert.equal(await page.locator('.character-card:not([hidden])').count(),2);await page.locator('[data-clear-filter]').click();await page.locator('[data-undo]').click();await page.waitForTimeout(200);assert.deepEqual((await characters()).characters.map(r=>r.values),before.map(r=>r.values));assert((await page.locator('.character-card').first().textContent()).includes('A complete synthetic biography.'));const heights=await page.locator('.character-card').evaluateAll(ns=>ns.map(n=>Math.round(n.getBoundingClientRect().height)));assert(new Set(heights).size>1);await page.evaluate(()=>document.querySelectorAll('[data-toast-host] button[aria-label^=Dismiss]').forEach(b=>b.click()));await page.screenshot({path:out+'/development-characters.png'});
|
||||
assert.deepEqual(errors,[]);identity.RefinementFixture={north,harbour,south,home,kitchen};fs.writeFileSync(file,JSON.stringify(identity),{mode:0o600});fs.writeFileSync(out+'/development-refinements.json',JSON.stringify({status:'passed',target:'Development',checks:['real canonical 105-entry API','generic and specialised type selection','parent counts include descendants','actual bulk type assignment and exact Undo','type filtering and cards','Edit parent picker and aliases','Create parent/type pickers','Details relationship target picker','workspace parent and alias search','native bidirectional attribute drag and Undo','server cycle and heading rejection','alias-based reviewed merge','real Characters bulk attributes/filter/Undo','unchanged variable character biographies']},null,2));console.log('PASS authenticated Development picker/taxonomy/shared Attributes forms, mutations and safeguards; dedicated fixture only.');
|
||||
assert.deepEqual(errors,[]);identity.RefinementFixture={north,harbour,south,home,kitchen};fs.writeFileSync(file,JSON.stringify(identity),{mode:0o600});fs.writeFileSync(out+'/development-refinements.json',JSON.stringify({status:'passed',target:'Development',checks:['real canonical 105-entry API','generic and specialised type selection','parent counts include descendants','actual bulk type assignment and exact Undo','type filtering and cards','Edit parent picker and aliases','Create parent/type pickers','Details relationship target picker','workspace parent and alias search','native bidirectional attribute drag and Undo','server cycle and heading rejection','alias-based reviewed merge','traditional merge picker and confirmation','real Characters bulk attributes/filter/Undo','unchanged variable character biographies']},null,2));console.log('PASS authenticated Development picker/taxonomy/shared Attributes forms, mutations and safeguards; dedicated fixture only.');
|
||||
}finally{await context.close();await browser.close();}})().catch(e=>{console.error(e);process.exitCode=1;});
|
||||
|
||||
@ -7,6 +7,14 @@ IF EXISTS(SELECT 1 FROM dbo.LocationTypeTaxonomy x LEFT JOIN dbo.LocationTypes t
|
||||
IF EXISTS(SELECT 1 FROM dbo.LocationTypeTaxonomy WHERE IsAssignable=0 AND LocationTypeID IS NOT NULL) THROW 51000,'Grouping leaked into assignable IDs.',1;
|
||||
IF NOT EXISTS(SELECT 1 FROM dbo.LocationTypeTaxonomy WHERE TypeKey=N'office-room' AND ParentKey=N'room') OR NOT EXISTS(SELECT 1 FROM dbo.LocationTypeTaxonomy WHERE TypeKey=N'office-premises' AND ParentKey=N'commercial') THROW 51000,'Office contexts lost.',1;
|
||||
PRINT 'PASS 105-node canonical taxonomy, assignable/group separation and disambiguated Office contexts';
|
||||
DECLARE @reachable int,@depth int;
|
||||
;WITH hierarchy AS(
|
||||
SELECT TypeKey,0 AS Depth FROM dbo.LocationTypeTaxonomy WHERE ParentKey IS NULL
|
||||
UNION ALL SELECT child.TypeKey,parent.Depth+1 FROM dbo.LocationTypeTaxonomy child JOIN hierarchy parent ON child.ParentKey=parent.TypeKey
|
||||
) SELECT @reachable=COUNT(*),@depth=MAX(Depth) FROM hierarchy OPTION(MAXRECURSION 1000);
|
||||
IF @reachable<>(SELECT COUNT(*) FROM dbo.LocationTypeTaxonomy) OR @depth<2 THROW 51000,'Taxonomy must be an acyclic hierarchy with at least three presentation levels.',1;
|
||||
PRINT 'PASS taxonomy reachability, acyclicity and three presentation levels';
|
||||
|
||||
DECLARE @p int,@u int;
|
||||
SELECT TOP(1) @p=p.ProjectID,@u=a.UserID FROM dbo.Projects p JOIN dbo.ProjectUserAccess a ON a.ProjectID=p.ProjectID WHERE p.IsArchived=0 AND a.IsActive=1 AND a.AccessRole=N'Owner' ORDER BY p.ProjectID;
|
||||
BEGIN TRANSACTION;
|
||||
|
||||