Skip to content
Snippets Groups Projects

Rename protected-branch subheadings to prevent confusion

Merged Amy Qualls requested to merge 389054-aqualls-clarify-subheads into master
1 unresolved thread

What does this MR do?

Renames subheadings in doc/user/project/protected_branches.md for clarity. @sean_carroll pointed out that the existing naming made it tough for users to determine which one was for new branches, and which one for modifying existing branches.

Fixes incoming links as well.

Related issues

Author's checklist

If you are a GitLab team member and only adding documentation, do not add any of the following labels:

  • ~"frontend"
  • ~"backend"
  • ~"type::bug"
  • ~"database"

These labels cause the MR to be added to code verification QA issues.

Reviewer's checklist

Documentation-related MRs should be reviewed by a Technical Writer for a non-blocking review, based on Documentation Guidelines and the Style Guide.

If you aren't sure which tech writer to ask, use roulette or ask in the #docs Slack channel.

  • If the content requires it, ensure the information is reviewed by a subject matter expert.
  • Technical writer review items:
    • Ensure docs metadata is present and up-to-date.
    • Ensure the appropriate labels are added to this MR.
    • Ensure a release milestone is set.
    • If relevant to this MR, ensure content topic type principles are in use, including:
      • The headings should be something you'd do a Google search for. Instead of Default behavior, say something like Default behavior when you close an issue.
      • The headings (other than the page title) should be active. Instead of Configuring GDK, say something like Configure GDK.
      • Any task steps should be written as a numbered list.
      • If the content still needs to be edited for topic types, you can create a follow-up issue with the docs-technical-debt label.
  • Review by assigned maintainer, who can always request/require the reviews above. Maintainer's review can occur before or after a technical writer review.

Merge request reports

Merged results pipeline #879208078 passed

Pipeline: GitLab

#879224295

    Pipeline: E2E GDK

    #879233056

      Pipeline: GitLab

      #879235722

        Merged results pipeline passed for db611d65

        Test coverage 82.66% (15.58%) from 2 jobs

        Merged by Jacques ErasmusJacques Erasmus 1 year ago (May 25, 2023 5:53pm UTC)

        Loading

        Pipeline #879331221 failed

        Pipeline: E2E GDK

        #879346999

          Pipeline: GitLab

          #879354088

            Pipeline: E2E Omnibus GitLab EE

            #879354134

              Pipeline failed for 1238d169 on master

              Test coverage 68.43% (15.58%) from 2 jobs
              10 environments impacted.

              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 issue #389054 (closed)

            • Contributor
              1 Message
              :book: This merge request adds or changes documentation files. A review from the Technical Writing team before you merge is recommended. Reviews can happen after you merge.

              Documentation review

              The following files require a review from a technical writer:

              The review does not need to block merging this merge request. See the:

              Reviewer roulette

              Changes that require review have been detected!

              Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

              Category Reviewer Maintainer
              backend Eduardo Bonet current availability (@eduardobonet) (UTC+2, 9 hours ahead of @aqualls) Ahmed Hemdan current availability (@ahmed.hemdan) (UTC+2, 9 hours ahead of @aqualls)
              frontend Ross Byrne current availability (@robyrne) (UTC+1, 8 hours ahead of @aqualls) Frédéric Caplette current availability (@f_caplette) (UTC-4, 3 hours ahead of @aqualls)

              To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

              To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

              Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

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

              Generated by :no_entry_sign: Danger

            • Amy Qualls added 1 commit

              added 1 commit

              • d0f4ba65 - Update link to changed branch name

              Compare with previous version

            • A deleted user added backend frontend labels

              added backend frontend labels

            • Author Maintainer

              @sean_carroll I'm sending this over for you to review - I've spun up a review app so you can see the changes. Do these renamings help? If yes, I'll get it over to a FE and technical writer for review / merge.

            • Amy Qualls requested review from @sean_carroll

              requested review from @sean_carroll

            • Contributor

              Allure report

              allure-report-publisher generated test report!

              e2e-test-on-gdk: :exclamation: test report for 395ad3d1

              expand test summary
              +-----------------------------------------------------------------------+
              |                            suites summary                             |
              +------------------+--------+--------+---------+-------+-------+--------+
              |                  | passed | failed | skipped | flaky | total | result |
              +------------------+--------+--------+---------+-------+-------+--------+
              | Create           | 8      | 0      | 1       | 0     | 9     | ✅     |
              | Manage           | 1      | 0      | 0       | 0     | 1     | ✅     |
              | Plan             | 4      | 0      | 0       | 0     | 4     | ✅     |
              | Framework sanity | 0      | 0      | 1       | 0     | 1     | ➖     |
              | Govern           | 2      | 0      | 0       | 0     | 2     | ✅     |
              | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
              | Data Stores      | 2      | 0      | 0       | 1     | 2     | ❗     |
              +------------------+--------+--------+---------+-------+-------+--------+
              | Total            | 21     | 0      | 2       | 1     | 23    | ❗     |
              +------------------+--------+--------+---------+-------+-------+--------+

              e2e-review-qa: :exclamation: test report for 395ad3d1

              expand test summary
              +-----------------------------------------------------------------------+
              |                            suites summary                             |
              +------------------+--------+--------+---------+-------+-------+--------+
              |                  | passed | failed | skipped | flaky | total | result |
              +------------------+--------+--------+---------+-------+-------+--------+
              | Create           | 27     | 0      | 1       | 1     | 28    | ❗     |
              | Plan             | 3      | 0      | 1       | 3     | 4     | ❗     |
              | Framework sanity | 0      | 0      | 1       | 0     | 1     | ➖     |
              | Govern           | 2      | 0      | 0       | 2     | 2     | ❗     |
              | Monitor          | 4      | 0      | 0       | 2     | 4     | ❗     |
              | Manage           | 1      | 0      | 0       | 0     | 1     | ✅     |
              | Data Stores      | 2      | 0      | 0       | 2     | 2     | ❗     |
              +------------------+--------+--------+---------+-------+-------+--------+
              | Total            | 39     | 0      | 3       | 10    | 42    | ❗     |
              +------------------+--------+--------+---------+-------+-------+--------+
            • Sean Carroll resolved all threads

              resolved all threads

            • Sean Carroll approved this merge request

              approved this merge request

            • :wave: @sean_carroll, thanks for approving this merge request.

              This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

              For more info, please refer to the following links:

            • Looks good to me @aqualls

              I don't think it needs backend review, but could you please review the frontend change @jerasmus ?

            • Sean Carroll requested review from @jerasmus

              requested review from @jerasmus

            • removed backend label

            • A deleted user added backend label

              added backend label

              • Author Maintainer
                Resolved by Jacques Erasmus

                Unassigning Sean, as he's approved. Assigning @msedlakjakubowski, especially since he's in a similar time zone to Jacques. (ONE DAY and I already am grateful for the extra TW.)

                Docs changes:

                • Rename subheading Configure a protected branch to Add protection to existing branches
                • Rename subheading Configure multiple protected branches by using a wildcard to Protect multiple branches with wildcard rules
                • Rename subheading Create a protected branch to Create a new branch with protections
                • Update crosslinks to changed subheading, including one in the UI which is why we have the long pipeline.
            • Amy Qualls requested review from @msedlakjakubowski and removed review request for @sean_carroll

              requested review from @msedlakjakubowski and removed review request for @sean_carroll

              • Resolved by Jacques Erasmus

                @aqualls thanks for making these changes! It looks like we just have one or two places to update the anchor on the frontend then we should be good to go. Here's a patch for you:

                diff --git a/app/assets/javascripts/projects/settings/branch_rules/components/edit/branch_dropdown.vue b/app/assets/javascripts/projects/settings/branch_rules/components/edit/branch_dropdown.vue
                index 3dcacf9eb349..6494456d5600 100644
                --- a/app/assets/javascripts/projects/settings/branch_rules/components/edit/branch_dropdown.vue
                +++ b/app/assets/javascripts/projects/settings/branch_rules/components/edit/branch_dropdown.vue
                @@ -55,7 +55,7 @@ export default {
                   },
                   searchInputDelay: 250,
                   wildcardsHelpPath: helpPagePath('user/project/protected_branches', {
                -    anchor: 'configure-multiple-protected-branches-by-using-a-wildcard',
                +    anchor: 'protect-multiple-branches-with-wildcard-rules',
                   }),
                   props: {
                     projectPath: {
                diff --git a/app/assets/javascripts/projects/settings/branch_rules/components/view/constants.js b/app/assets/javascripts/projects/settings/branch_rules/components/view/constants.js
                index b71c33d2b91d..a45ed5c68afe 100644
                --- a/app/assets/javascripts/projects/settings/branch_rules/components/view/constants.js
                +++ b/app/assets/javascripts/projects/settings/branch_rules/components/view/constants.js
                @@ -49,7 +49,7 @@ export const BRANCH_PARAM_NAME = 'branch';
                 export const ALL_BRANCHES_WILDCARD = '*';
                 
                 export const WILDCARDS_HELP_PATH =
                -  'user/project/protected_branches#configure-multiple-protected-branches-by-using-a-wildcard';
                +  'user/project/protected_branches#protect-multiple-branches-with-wildcard-rules';
                 
                 export const PROTECTED_BRANCHES_HELP_PATH = 'user/project/protected_branches';
                 

                Back to you for now :ping_pong:

            • Jacques Erasmus removed review request for @jerasmus

              removed review request for @jerasmus

            • Marcin Sedlak-Jakubowski approved this merge request

              approved this merge request

            • removed review request for @msedlakjakubowski

            • added 1 commit

              Compare with previous version

            • Jacques Erasmus approved this merge request

              approved this merge request

            • Jacques Erasmus requested review from @jerasmus

              requested review from @jerasmus

            • Jacques Erasmus resolved all threads

              resolved all threads

            • Jacques Erasmus enabled an automatic merge when the pipeline for 2b88009a succeeds

              enabled an automatic merge when the pipeline for 2b88009a succeeds

            • Contributor

              Bundle size analysis [beta]

              This compares changes in bundle size for entry points between the commits e7232025 and 395ad3d1

              :sparkles: Special assets

              Entrypoint / Name Size before Size after Diff Diff in percent
              mainChunk 2.95 MB 2.95 MB - 0.0 %
              average 4.09 MB 4.09 MB - 0.0 %

              Note: We do not have exact data for e7232025. So we have used data from: 4762114e.
              The target commit was too new, so we used the latest commit from master we have info on.
              It might help to rerun the bundle-size-review job
              This might mean that you have a few false positives in this report. If something unrelated to your code changes is reported, you can check this comparison in order to see if they caused this change.

              Please look at the full report for more details


              Read more about how this report works.

              Generated by :no_entry_sign: Danger

            • @jerasmus rspec system foss-impact 39/40 fails https://gitlab.com/gitlab-org/gitlab/-/jobs/4350581342

              From the output, I think it's not our fault. Should we rebase or wait?

            • Amy Qualls mentioned in merge request !121737 (merged)

              mentioned in merge request !121737 (merged)

            • Jacques Erasmus mentioned in commit 1238d169

              mentioned in commit 1238d169

            • added workflowstaging label and removed workflowcanary label

            • Please register or sign in to reply
              Loading