File tree Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 142142 name = "GeneratorAction" ,
143143 namespace = "Core" ,
144144 description = "An action that runs a generator definition once triggered" ,
145- include_in_menu = True ,
145+ include_in_menu = False ,
146146 icon = "mdi:cards-diamond-outline" ,
147147 label = "Generator Action" ,
148148 human_friendly_id = ["name__value" ],
170170 name = "GroupAction" ,
171171 namespace = "Core" ,
172172 description = "A group action that adds or removes members from a group once triggered" ,
173- include_in_menu = True ,
173+ include_in_menu = False ,
174174 icon = "mdi:cards-diamond-outline" ,
175175 label = "Group Action" ,
176176 human_friendly_id = ["name__value" ],
210210 name = "NodeTriggerRule" ,
211211 namespace = "Core" ,
212212 description = "A trigger rule that evaluates modifications to nodes within the Infrahub database" ,
213- include_in_menu = True ,
213+ include_in_menu = False ,
214214 icon = "mdi:filter-cog-outline" ,
215215 label = "Node Trigger Rule" ,
216216 human_friendly_id = ["name__value" ],
346346 name = "GroupTriggerRule" ,
347347 namespace = "Core" ,
348348 description = "A trigger rule that matches against updates to memberships within groups" ,
349- include_in_menu = True ,
349+ include_in_menu = False ,
350350 icon = "mdi:filter-cog-outline" ,
351351 label = "Group Trigger Rule" ,
352352 human_friendly_id = ["name__value" ],
Original file line number Diff line number Diff line change @@ -246,6 +246,37 @@ def _extract_node_icon(model: MainSchemaTypes) -> str:
246246 section = MenuSection .INTERNAL ,
247247 order_weight = 2000 ,
248248 ),
249+ MenuItemDefinition (
250+ namespace = "Builtin" ,
251+ name = "TriggerDefinition" ,
252+ label = "Triggers" ,
253+ icon = _extract_node_icon (infrahub_schema .get (InfrahubKind .TRIGGERRULE )),
254+ protected = True ,
255+ section = MenuSection .INTERNAL ,
256+ order_weight = 6000 ,
257+ children = [
258+ MenuItemDefinition (
259+ namespace = "Core" ,
260+ name = "TriggerRule" ,
261+ label = "Trigger Rules" ,
262+ kind = InfrahubKind .TRIGGERRULE ,
263+ icon = _extract_node_icon (infrahub_schema .get (InfrahubKind .TRIGGERRULE )),
264+ protected = True ,
265+ section = MenuSection .INTERNAL ,
266+ order_weight = 1000 ,
267+ ),
268+ MenuItemDefinition (
269+ namespace = "Core" ,
270+ name = "Action" ,
271+ label = "Trigger Actions" ,
272+ kind = InfrahubKind .ACTION ,
273+ icon = _extract_node_icon (infrahub_schema .get (InfrahubKind .ACTION )),
274+ protected = True ,
275+ section = MenuSection .INTERNAL ,
276+ order_weight = 2000 ,
277+ ),
278+ ],
279+ ),
249280 ],
250281 ),
251282 MenuItemDefinition (
You can’t perform that action at this time.
0 commit comments