Display tooltip message for scheduled pipelines limit
Problem to Solve
This is a frontend MVC for #323066 (closed).
Scheduled pipelines that run at high frequencies could lead to harmful loads on GitLab.com's shared runners.
MVC Solution
For the MVC, we can rate limit the number of scheduled pipelines that can run per day for free tier users. The agreed number of allowed scheduled pipelines to run on any given day is 10.
For frontend, we'll need to:
Display a ?
icon beside the cron syntax input field with a tooltip on hover. The message should read Scheduled pipelines cannot run more frequently than once per hour. A pipeline configured to run more frequently only starts after one hour has elapsed since the last time it ran.
In the next milestone, we can follow up with the implementation to prevent users from creating a scheduled pipeline after they reached the quota.
Relevant Links
Non-functional Requirements
-
Documentation: Update https://docs.gitlab.com/ee/ci/pipelines/schedules.html to explain why we need to implement this limitation. Emphasize that this change will impact free users only. -
Feature flag: We'll put this under a feature flag so it will be easy to enable/disable the feature at will depending on the urgency and if there are further changes needed
Implementation Plan
Piggy back of BE MR !62826 (merged) and only display the message based on the FF ci_daily_limit_for_pipeline_schedules
.
The message will be implemented in app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/interval_pattern_input.vue