FE: Create schedule agent rule component
Why are we doing this work
- Users want to create rules that are based off of a schedule for a cluster
Relevant links
NOTE: Instead of cluster, use agent

Namespace Labels
Non-functional requirements
- Feature flag:
- Testing:
Implementation plan
- frontend create schedule agent rule mode on both the project and group levels (for more context, read the
scheduleschema docs)- look at
scan_result_policy_editor.vuefor examples on using thepolicy_rule_builder.vuecomponent - rule dropdown
- there are two options for rules:
A pipeline is run(handled by FE: Create pipeline rule component (#359885 - closed))Schedule(handled by this issue)
- for this issue, only focus on
2, but feel free to make it a drop down
- there are two options for rules:
- agents dropdown
- per &5363 (comment 894764465), give the user an input box instead for the user to type comma-delimited agents for MVP. There is a graphql endpoint for both (e.g.
Project.clusterAgentsandGroup.clusterAgents), so this could be a dropdown for v2
- per &5363 (comment 894764465), give the user an input box instead for the user to type comma-delimited agents for MVP. There is a graphql endpoint for both (e.g.
- namespace dropdown
- per #365820 (comment 998547239), give the user an input box instead for the user to type comma-delimited namespaces because there is no endpoint to retrieve all namespaces
- CRON dropdowns
- per &5363 (comment 894814030), limit users to only specific schedules, allowing a user to use
yamlmode to do anything more complicated
- per &5363 (comment 894814030), limit users to only specific schedules, allowing a user to use
- look at
Verification steps
- Upload a GitLab Ultimate license
- Turn on the
:scan_execution_rule_modefeature flag - Navigate to a project =>
Security & Compliance=>Policies=>New policy=>Scan Execution Policy - Verify rule mode schedule agent rule works
- Navigate to a group =>
Security & Compliance=>Policies=>New policy=>Scan Execution Policy - Verify rule mode schedule agent rule works
Edited by Alexander Turinske
