Skip to content
Snippets Groups Projects

Backfill default protection branch defaults in application setting

What does this MR do and why?

Backfill default protection branch defaults in application setting

This commit backfills default protection branch defaults in application setting

Changelog: other

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #408152 (closed)

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
  • Ghost User
  • Allure report

    allure-report-publisher generated test report!

    e2e-test-on-gdk: :white_check_mark: test report for 11d9416e

    expand test summary
    +-----------------------------------------------------------------------+
    |                            suites summary                             |
    +------------------+--------+--------+---------+-------+-------+--------+
    |                  | passed | failed | skipped | flaky | total | result |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Plan             | 55     | 0      | 0       | 0     | 55    | ✅     |
    | Verify           | 32     | 0      | 0       | 0     | 32    | ✅     |
    | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Create           | 40     | 0      | 6       | 0     | 46    | ✅     |
    | Govern           | 48     | 0      | 0       | 0     | 48    | ✅     |
    | Data Stores      | 22     | 0      | 0       | 0     | 22    | ✅     |
    | Framework sanity | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Package          | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Manage           | 0      | 0      | 1       | 0     | 1     | ➖     |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Total            | 201    | 0      | 9       | 0     | 210   | ✅     |
    +------------------+--------+--------+---------+-------+-------+--------+
  • 🤖 GitLab Bot 🤖 changed milestone to %16.7

    changed milestone to %16.7

  • Harsimar Sandhu mentioned in merge request !136181 (merged)

    mentioned in merge request !136181 (merged)

  • Harsimar Sandhu marked this merge request as draft

    marked this merge request as draft

  • 🤖 GitLab Bot 🤖 changed milestone to %16.8

    changed milestone to %16.8

  • 🤖 GitLab Bot 🤖 changed milestone to %16.9

    changed milestone to %16.9

  • Harsimar Sandhu added 10433 commits

    added 10433 commits

    Compare with previous version

  • Ghost User
  • Ghost User
  • 4 Warnings
    :warning: 6474c884: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: 95360f79: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: New migrations added but db/structure.sql wasn't updated

    Usually, when adding new migrations, db/structure.sql should be
    updated too (unless the migration isn't changing the DB schema
    and isn't the most recent one).

    :warning: :hourglass: Migration Timestamp Out of Date
    The following migrations have timestamps that are over three weeks old:
    • db/migrate/20231108081209_backfill_branch_protection_application_setting.rb

    Please double check the timestamps and update them if possible. Why does this matter?

    1 Message
    :book: This merge request adds or changes files that require a review from the Database team.

    This merge request requires a database review. To make sure these changes are reviewed, take the following steps:

    1. Ensure the merge request has database and databasereview pending labels. If the merge request modifies database files, Danger will do this for you.
    2. Prepare your MR for database review according to the docs.
    3. Assign and mention the database reviewer suggested by Reviewer Roulette.

    The following files require a review from the Database team:

    • db/migrate/20231108081209_backfill_branch_protection_application_setting.rb
    • db/schema_migrations/20231108081209
    • spec/migrations/20231108081209_backfill_branch_protection_application_setting_spec.rb

    Reviewer roulette

    Category Reviewer Maintainer
    database @nmilojevic1 profile link current availability (UTC+1, 4.5 hours behind author) @praba.m7n profile link current availability (UTC+5.5, same timezone as author)

    Please check reviewer's status!

    • available Reviewer is available!
    • unavailable Reviewer is unavailable!

    Please refer to documentation page for guidance on how you can benefit from the Reviewer Roulette, or use the GitLab Review Workload Dashboard to find other available reviewers.

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

    Edited by Ghost User
  • Harsimar Sandhu marked this merge request as ready

    marked this merge request as ready

  • Database migrations (on the main database)

    Migrations included in this change have been executed on gitlab.com data for testing purposes. For details, please see the migration testing pipeline (limited access).

    Migration Type Total runtime Result DB size change
    20231108081209 - BackfillBranchProtectionApplicationSetting Regular 2.9 s :white_check_mark: +0.00 B
    Runtime Histogram for all migrations
    Query Runtime Count
    0 seconds - 0.01 seconds 0
    0.01 seconds - 0.1 seconds 4
    0.1 seconds - 1 second 0
    1 second - 5 seconds 0
    5 seconds - 15 seconds 0
    15 seconds - 5 minutes 0
    5 minutes + 0

    Migration: 20231108081209 - BackfillBranchProtectionApplicationSetting

    • Type: Regular
    • Duration: 2.9 s
    • Database size change: +0.00 B
    Calls Total Time Max Time Mean Time Rows Query
    1 1.0 ms 1.0 ms 1.0 ms 1
    SELECT "application_settings".*
    FROM "application_settings" ORDER BY "application_settings"."id" ASC
    LIMIT $1
    1 1.0 ms 1.0 ms 1.0 ms 1
    SELECT "feature_gates"."key", "feature_gates"."value"  FROM "feature_gates"  WHERE "feature_gates"."feature_key" = $1
    2 0.0 ms 0.0 ms 0.0 ms 2
    SELECT pg_backend_pid()
    Histogram for BackfillBranchProtectionApplicationSetting
    Query Runtime Count
    0 seconds - 0.01 seconds 0
    0.01 seconds - 0.1 seconds 4
    0.1 seconds - 1 second 0
    1 second - 5 seconds 0
    5 seconds - 15 seconds 0
    15 seconds - 5 minutes 0
    5 minutes + 0

    Other information

    No other migrations pending on GitLab.com

    Clone details
    Clone ID Clone Created At Clone Data Timestamp Expected Removal Time
    database-testing-2804940-12670156-main 2024-01-30T09:12:41Z 2024-01-30T08:08:56Z 2024-01-30 21:16:53 +0000
    database-testing-2804940-12670156-ci 2024-01-30T09:12:40Z 2024-01-30T08:45:41Z 2024-01-30 21:16:53 +0000

    Job artifacts

    Database migrations (on the ci database)

    Migrations included in this change have been executed on gitlab.com data for testing purposes. For details, please see the migration testing pipeline (limited access).

    Migration Type Total runtime Result DB size change
    20231108081209 - BackfillBranchProtectionApplicationSetting Regular 2.7 s :white_check_mark: +0.00 B
    Runtime Histogram for all migrations
    Query Runtime Count
    0 seconds - 0.01 seconds 0
    0.01 seconds - 0.1 seconds 2
    0.1 seconds - 1 second 0
    1 second - 5 seconds 0
    5 seconds - 15 seconds 0
    15 seconds - 5 minutes 0
    5 minutes + 0

    Migration: 20231108081209 - BackfillBranchProtectionApplicationSetting

    • Type: Regular
    • Duration: 2.7 s
    • Database size change: +0.00 B
    Calls Total Time Max Time Mean Time Rows Query
    2 0.0 ms 0.0 ms 0.0 ms 2
    SELECT pg_backend_pid()
    Histogram for BackfillBranchProtectionApplicationSetting
    Query Runtime Count
    0 seconds - 0.01 seconds 0
    0.01 seconds - 0.1 seconds 2
    0.1 seconds - 1 second 0
    1 second - 5 seconds 0
    5 seconds - 15 seconds 0
    15 seconds - 5 minutes 0
    5 minutes + 0

    Other information

    No other migrations pending on GitLab.com

    Clone details
    Clone ID Clone Created At Clone Data Timestamp Expected Removal Time
    database-testing-2804940-12670156-main 2024-01-30T09:12:41Z 2024-01-30T08:08:56Z 2024-01-30 21:16:53 +0000
    database-testing-2804940-12670156-ci 2024-01-30T09:12:40Z 2024-01-30T08:45:41Z 2024-01-30 21:16:53 +0000

    Job artifacts


    Brought to you by gitlab-org/database-team/gitlab-com-database-testing. Epic

    Edited by Ghost User
  • Harsimar Sandhu requested review from @vyaklushin

    requested review from @vyaklushin

  • Vasilii Iakliushin approved this merge request

    approved this merge request

  • Vasilii Iakliushin removed review request for @vyaklushin

    removed review request for @vyaklushin

  • Harsimar Sandhu requested review from @nmilojevic1

    requested review from @nmilojevic1

  • Nikola Milojevic approved this merge request

    approved this merge request

  • Nikola Milojevic requested review from @praba.m7n and removed review request for @nmilojevic1

    requested review from @praba.m7n and removed review request for @nmilojevic1

  • Prabakaran Murugesan
  • Harsimar Sandhu added 1 commit

    added 1 commit

    • 3ddeb06e - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Harsimar Sandhu reset approvals from @vyaklushin and @nmilojevic1 by pushing to the branch

    reset approvals from @vyaklushin and @nmilojevic1 by pushing to the branch

  • Harsimar Sandhu added 1 commit

    added 1 commit

    Compare with previous version

  • Harsimar Sandhu requested review from @praba.m7n

    requested review from @praba.m7n

  • Prabakaran Murugesan resolved all threads

    resolved all threads

  • Prabakaran Murugesan enabled an automatic merge when all merge checks for 95360f79 pass

    enabled an automatic merge when all merge checks for 95360f79 pass

  • Prabakaran Murugesan approved this merge request

    approved this merge request

  • added databaseapproved label and removed databasereviewed label

  • Prabakaran Murugesan removed review request for @praba.m7n

    removed review request for @praba.m7n

  • Hello @harsimarsandhu :wave:

    The database team is looking for ways to improve the database review process and we would love your help!

    If you'd be open to someone on the database team reaching out to you for a chat, or if you'd like to leave some feedback asynchronously, just post a reply to this comment mentioning:

    @gitlab-org/database-team

    And someone will be by shortly!

    Thanks for your help! :heart:

    This message was generated automatically. You're welcome to improve it.

  • mentioned in commit 2b5108df

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading