Guides image + draft gating, audit retention, ADR-015 gate, backup credential redaction
This commit is contained in:
@@ -98,22 +98,20 @@ function darkenHexColor(hex, fraction) {
|
||||
|
||||
// ServiceNow ticket-link config. Returns the enabled flag, incident/change URL
|
||||
// templates, and the global-search URL template (all with a {ticket}
|
||||
// placeholder). Defaults mirror the previously-hardcoded GE ServiceNow URLs.
|
||||
// placeholder).
|
||||
//
|
||||
// The defaults are BLANK and the integration ships OFF, matching the server.
|
||||
// They used to be one organisation's QA ServiceNow tenant, so any site that had
|
||||
// not configured ServiceNow still rendered ticket links - pointing its
|
||||
// technicians at a tenant they cannot reach and, for an adopting site, at
|
||||
// somebody else's. A blank URL renders tickets as plain text, which is the
|
||||
// correct behaviour for "not configured".
|
||||
export async function getServicenowUrls() {
|
||||
const enabledRaw = await getSetting('servicenow_enabled', 'true')
|
||||
const enabledRaw = await getSetting('servicenow_enabled', 'false')
|
||||
const enabled = enabledRaw !== 'false' && enabledRaw !== '0' && enabledRaw !== false
|
||||
const incidentUrl = await getSetting(
|
||||
'servicenow_incident_url',
|
||||
'https://geaerospaceqa.service-now.com/now/nav/ui/search/0f8b85d0c7922010099a308dc7c2606a/params/search-term/{ticket}/global-search-data-config-id/c861cea2c7022010099a308dc7c26041/'
|
||||
)
|
||||
const changeUrl = await getSetting(
|
||||
'servicenow_change_url',
|
||||
'https://geaerospaceqa.service-now.com/now/nav/ui/search/0f8b85d0c7922010099a308dc7c2606a/params/search-term/{ticket}/global-search-data-config-id/c861cea2c7022010099a308dc7c26041/'
|
||||
)
|
||||
const searchUrl = await getSetting(
|
||||
'servicenow_search_url',
|
||||
'https://geaerospaceqa.service-now.com/now/nav/ui/search/0f8b85d0c7922010099a308dc7c2606a/params/search-term/{ticket}/global-search-data-config-id/c861cea2c7022010099a308dc7c26041/'
|
||||
)
|
||||
const incidentUrl = await getSetting('servicenow_incident_url', '')
|
||||
const changeUrl = await getSetting('servicenow_change_url', '')
|
||||
const searchUrl = await getSetting('servicenow_search_url', '')
|
||||
return { enabled, incidentUrl, changeUrl, searchUrl }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user