Add "engineering" UI for Pipeline Schedule
What does this MR do?
We merged this awesome MR, but it was only backend change. This MR brings very simple engineering UI.
It does expose scheduled triggers only when editing page. It is hidden, because we give us a right to break that in %9.2 when we start working on better UI.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Merge request reports
Activity
@dosuken123 I used your changes and updated that on top of yours.
- Resolved by Kamil Trzcińśki
mentioned in merge request !10510 (closed)
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
added 1 commit
- 5888e958 - Update code to remove no longer needed changes
- Resolved by Kamil Trzcińśki
added 106 commits
-
5888e958...7ccaa27f - 95 commits from branch
master
- 2548c155 - Add form for scheduled trigger
- 76c0364c - Use allow_destroy. Remove condtion from form.haml.
- ea8574fd - Add specs in triggers_spec.rb (Halfway)
- 4131ed2b - before_create :set_project. Now TriggerSchedule saves project from parent
- 2f5095c2 - Add def trigger_schedule in Trigger. Use persisted? for checling existance
- fb8c49db - create_params and update_params into trigger_params
- 1ae1d85c - N/A to None. Revert validates from validates_presence_of.
- 03088552 - Fix ref reference
- 21a7aed9 - Update tests to cover trigger schedule
- 7cee650d - Update migrations
- 7461072f - Update code to remove no longer needed changes
Toggle commit list-
5888e958...7ccaa27f - 95 commits from branch
added 106 commits
-
5888e958...7ccaa27f - 95 commits from branch
master
- 2548c155 - Add form for scheduled trigger
- 76c0364c - Use allow_destroy. Remove condtion from form.haml.
- ea8574fd - Add specs in triggers_spec.rb (Halfway)
- 4131ed2b - before_create :set_project. Now TriggerSchedule saves project from parent
- 2f5095c2 - Add def trigger_schedule in Trigger. Use persisted? for checling existance
- fb8c49db - create_params and update_params into trigger_params
- 1ae1d85c - N/A to None. Revert validates from validates_presence_of.
- 03088552 - Fix ref reference
- 21a7aed9 - Update tests to cover trigger schedule
- 7cee650d - Update migrations
- 7461072f - Update code to remove no longer needed changes
Toggle commit list-
5888e958...7ccaa27f - 95 commits from branch
@ayufan @dosuken123 How should we merge the changes? In this merge request we're missing error messages, for example.
@godfat Schedule is only available for existing triggers, when you edit them. So information is properly displayed there.
Edited by Kamil Trzcińśki@ayufan lol that's a nice trick to workaround that.
- Resolved by Kamil Trzcińśki
@dosuken123 I did remove that. As it requires more frontend changes.
@godfat error msg screen shot
@dosuken123 This merge request avoids the problem by not allowing to create a schedule along with a new trigger, which is the issue in the first place XD
@godfat Yes, but this is also to not expose it easily, as this is experimental. This was my plan since the beginning :)
assigned to @godfat
- Resolved by Kamil Trzcińśki
- Resolved by username-removed-443319
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
assigned to @ayufan
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
- Resolved by Kamil Trzcińśki
enabled an automatic merge when the pipeline for 3ea4a139 succeeds
assigned to @smcgivern
- Resolved by Kamil Trzcińśki
@ayufan I checked related specs locally and all passed except the point. Thanks.
🌻 LGTM @ayufan
enabled an automatic merge when the pipeline for 4465411b succeeds
@ayufan Please add
ref
andactive
at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/lib/gitlab/import_export/safe_model_attributes.yml#L255.like
Ci::TriggerSchedule: - id - project_id - trigger_id - deleted_at - created_at - updated_at - cron - cron_timezone - next_run_at - ref - active DeployKey:
@dosuken123 done
🙂 enabled an automatic merge when the pipeline for 682748e8 succeeds
mentioned in commit 3ded903d
mentioned in issue #30440 (closed)
mentioned in merge request !10591 (merged)
Here https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10591. It's not still merged yet.
This should be added to https://about.gitlab.com/comparison/gitlab-vs-jenkins.html#dropdown as currently this is a feature Jenkins has and GitLab CI does not. Would be good to highlight that they now both have this feature. Created issue at https://gitlab.com/gitlab-com/www-gitlab-com/issues/1285.
Edited by username-removed-5332mentioned in issue gitlab-com/www-gitlab-com#1285 (closed)
@bbodenmiller It's nice catch!
Edited by Shinya Maedamentioned in issue #30892 (closed)
mentioned in issue #30882 (closed)