Display role vocabulary, migration commit fix, stale enforcement reports
This commit is contained in:
@@ -30,7 +30,7 @@ running replace_scope_draft is an idempotent draft rebuild.
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
from shopdb.api import db
|
||||
from shopdb.api import db, DISPLAY_ROLE_PATHS
|
||||
|
||||
from . import service
|
||||
|
||||
@@ -47,17 +47,18 @@ RELAUNCH_WINDOW_JSON = (
|
||||
|
||||
# Data-driven display-type -> kiosk target map. The value of
|
||||
# C:\Enrollment\display-type.txt selects the row; the target is a route the
|
||||
# kiosk browser opens against the local kiosk base URL. Edit here to retarget a
|
||||
# subtype. Keys are matched case-insensitively by the dispatcher.
|
||||
# kiosk browser opens against the local kiosk base URL. Keys are matched
|
||||
# case-insensitively by the dispatcher.
|
||||
#
|
||||
# NOT a copy any more: this IS core's DISPLAY_ROLE_PATHS, read through the
|
||||
# contract surface. It used to be a second map with the same routes under
|
||||
# different names, which is how a display could report a role core could not
|
||||
# store. Retarget a subtype in shopdb/core/models/dashboarddefault.py.
|
||||
#
|
||||
# TODO-confirm: 3DPrintRoom points at the printedparts /parts-kiosk route as a
|
||||
# PLACEHOLDER. Confirm the real 3D-print-room kiosk target with the floor team
|
||||
# before this scope is published to production displays.
|
||||
DISPLAY_TYPE_TARGETS = {
|
||||
'Dashboard': '/shopfloor',
|
||||
'Lobby': '/tv',
|
||||
'3DPrintRoom': '/parts-kiosk',
|
||||
}
|
||||
DISPLAY_TYPE_TARGETS = DISPLAY_ROLE_PATHS
|
||||
|
||||
DISPATCHER_FILENAME = 'Invoke-DisplayKioskDispatch.ps1'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user