Skip to content
Snippets Groups Projects

Add "engineering" UI for Pipeline Schedule

1 unresolved thread

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)

Screen_Shot_2017-04-07_at_14.55.33 Screen_Shot_2017-04-07_at_14.55.12

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • mentioned in merge request !10510 (closed)

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • added 3 commits

    Compare with previous version

  • Kamil Trzcińśki
  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • added 1 commit

    • 5888e958 - Update code to remove no longer needed changes

    Compare with previous version

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • Kamil Trzcińśki added 106 commits

    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

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Kamil Trzcińśki added 106 commits

    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

    Compare with previous version

  • @ayufan @dosuken123 How should we merge the changes? In this merge request we're missing error messages, for example.

  • Author Maintainer

    @godfat Schedule is only available for existing triggers, when you edit them. So information is properly displayed there.

    Edited by Kamil Trzcińśki
  • we're missing error messages

    Tecnically, this MR covers error messages. NO need to merge from the previous one.

  • I tested by hands, though, it's working flawlessly, so far...

  • @ayufan lol that's a nice trick to workaround that.

  • In addition, there is a full support for ref combobox...

  • Author Maintainer

    @dosuken123 I did remove that. As it requires more frontend changes.

  • @godfat error msg screen shot

    Screen_Shot_2017-04-07_at_11.32.01_PM

  • @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

  • How to register a trigger schedule

    Apr-07-2017_23-35-40

  • Author Maintainer

    @godfat Yes, but this is also to not expose it easily, as this is experimental. This was my plan since the beginning :)

  • Author Maintainer

    btw. this CI/CD settings UI is so terrible :(

  • How trigger schedule work periodically.

    Apr-07-2017_23-50-42

    NOTE:

    trigger_schedule_worker:
          cron: "* * * * *"

    I made trigger_schedule_worker perform every minutes.

  • username-removed-443319
  • username-removed-443319
  • @ayufan @godfat I'm not sure who's taking this, but I just have a few questions 🙂

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • added 1 commit

    Compare with previous version

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • added 1 commit

    • 0872b854 - Another round of code review

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • username-removed-443319 enabled an automatic merge when the pipeline for 3ea4a139 succeeds

    enabled an automatic merge when the pipeline for 3ea4a139 succeeds

  • added 1 commit

    Compare with previous version

  • @ayufan I checked related specs locally and all passed except the point. Thanks. 🌻

  • Kamil Trzcińśki resolved all discussions

    resolved all discussions

  • added 1 commit

    Compare with previous version

  • username-removed-443319 enabled an automatic merge when the pipeline for 4465411b succeeds

    enabled an automatic merge when the pipeline for 4465411b succeeds

  • @ayufan Please add ref and active 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:
  • Other pipelines seem to be ok. Failures are not concerned with this MR.

  • added 1 commit

    • 682748e8 - Add ref and active to import/export config

    Compare with previous version

  • username-removed-443319 enabled an automatic merge when the pipeline for 682748e8 succeeds

    enabled an automatic merge when the pipeline for 682748e8 succeeds

  • username-removed-443319 canceled the automatic merge

    canceled the automatic merge

  • mentioned in commit 3ded903d

  • mentioned in issue #30440 (closed)

  • Shinya Maeda mentioned in merge request !10591 (merged)

    mentioned in merge request !10591 (merged)

  • 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-5332
  • @bbodenmiller It's nice catch!

    Edited by Shinya Maeda
  • mentioned in issue #30892 (closed)

  • mentioned in issue #30882 (closed)

  • Hey guys, is it planned to have ability to include variables in scheduled trigger also?

  • @mente Not yet. In the next release %9.2, scheduled trigger will completely be reborn as Pipeline schedule, however, still it doesn't have the ability to set variables. Probably %9.3 or later.

  • Please register or sign in to reply
    Loading