From b608a5be8d5c411d4fb98dbf0b08c23840326907 Mon Sep 17 00:00:00 2001 From: Andrew Dewar Date: Wed, 18 Dec 2024 10:09:00 -0700 Subject: [PATCH] Add feature flag for template feature swap --- .../prod/navigation/rhel-navigation.json | 70 ++++++++----------- 1 file changed, 30 insertions(+), 40 deletions(-) diff --git a/static/stable/prod/navigation/rhel-navigation.json b/static/stable/prod/navigation/rhel-navigation.json index 0d732dd3..fb704f86 100644 --- a/static/stable/prod/navigation/rhel-navigation.json +++ b/static/stable/prod/navigation/rhel-navigation.json @@ -276,52 +276,42 @@ ], "permissions": [ { - "method": "isBeta" - }, - { - "method": "withEmail", - "args": [ - "adewar+rhn@redhat.com", - "bhouse+1@redhat.com", - "jsherril+eng@redhat.com", - "swadeley+eng@redhat.com", - "smcdowel@redhat.com" - ] + "method": "featureFlag", + "args": ["patchman-ui.template-update.enabled", true] } ], "description": "Create content templates for use with systems." }, { - "title": "Patch", - "id": "patch", - "expandable": true, - "routes": [ - { - "id": "patchSystems", - "appId": "patch", - "title": "Systems", - "href": "/insights/patch/systems", - "product": "Red Hat Insights", - "description": "View applicable advisories and updates for your Red Hat Enterprise Linux systems.", - "alt_title": [ - "Patch", - "content", - "advisories", - "insights", - "Rhel", - "patch", - "updates", - "update", - "systems", - "upgrade" - ] - }, + "id": "patchSystems", + "appId": "patch", + "title": "Systems", + "href": "/insights/patch/systems", + "product": "Red Hat Insights", + "description": "View applicable advisories and updates for your Red Hat Enterprise Linux systems.", + "alt_title": [ + "Patch", + "content", + "advisories", + "insights", + "Rhel", + "patch", + "updates", + "update", + "systems", + "upgrade" + ] + }, + { + "id": "patchTemplates", + "appId": "patch", + "title": "Templates", + "href": "/insights/patch/templates", + "product": "Red Hat Insights", + "permissions": [ { - "id": "patchTemplates", - "appId": "patch", - "title": "Templates", - "href": "/insights/patch/templates", - "product": "Red Hat Insights" + "method": "featureFlag", + "args": ["patchman-ui.template-update.enabled", false] } ] }