Skip to content
Snippets Groups Projects

Add domain verification operation views

All threads resolved!

Related issue #375492 (closed)

What does this MR do and why?

Add domain verification operation views.

The feature is under feature flag: domain_verification_operation

The haml views are copy from app/views/projects/pages_domains/. The main differences:

  • Add a new project select component in create form
  • UI changed(design link) and follow the new Pajamas design system
  • Action link url changed
  • Need add new documentation page replace the doc link

dependent MRs:

design link Figma

/cc @daveliu @qk44077907

Screenshots or screen recordings

Empty index page Index page with domains
image image
New domain page
image image
Edit domain page
image

How to set up and validate locally

  1. simulate the SaaS locally:

    export GITLAB_SIMULATE_SAAS=1
  2. Upload Premium license to enable domain_verification feature

  3. Enable pages in gitlab.yml:

    pages:
      enabled: true
      access_control: false
      host: example.com
      port: 80
      external_http: true
      external_https: true
  4. enable domain_verification_operation feature in console:

    Feature.enable(:domain_verification_operation)
  5. Change application settings in rails console:

    ApplicationSetting.current.update(pages_domain_verification_enabled: true, lets_encrypt_terms_of_service_accepted: true, 
    lets_encrypt_notification_email: "test@gitlab.com")
  6. Visit domain verification page http://localhost:3000/groups/flightjs/-/settings/domain_verification

  7. Click the Add Domain button.

MR acceptance checklist

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

Edited by Linjie Zhang

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
    • Resolved by Drew Blessing

      The instructions for testing in the description that update Let's Encrypt application settings do not work. The notification email can't include example.com per validation:

      ActiveRecord::RecordInvalid: Validation failed: Lets encrypt notification email Let's Encrypt does not accept emails on example.com

  • Linjie Zhang added 1 commit

    added 1 commit

    • f8421689 - Add domain verification operation views

    Compare with previous version

  • Linjie Zhang changed the description

    changed the description

  • Linjie Zhang added 4 commits

    added 4 commits

    • 43a0bc50 - Update validation message
    • 33bfb276 - Add shared_examples in DomainVerificationController spec
    • 81daf7e2 - Update
    • a3f73796 - Add domain verification operation views

    Compare with previous version

  • Linjie Zhang changed the description

    changed the description

  • Linjie Zhang added 2617 commits

    added 2617 commits

    Compare with previous version

  • Linjie Zhang marked this merge request as ready

    marked this merge request as ready

  • Author Contributor
  • requested review from @brytannia

  • Tetiana Chupryna requested review from @dblessing and removed review request for @brytannia

    requested review from @dblessing and removed review request for @brytannia

  • Drew Blessing requested review from @agulina

    requested review from @agulina

  • Few minor suggestions. Angelo might have some better feedback since this is mostly frontend.

    Thanks for your work, @zhanglinjie

  • Angelo Gulina removed review request for @agulina

    removed review request for @agulina

  • Jon Glassman requested review from @jglassman1

    requested review from @jglassman1

  • Linjie Zhang added 3 commits

    added 3 commits

    • d0a2665d - Update domain verification doc
    • 7972e5d7 - Add domain verification helper
    • bdd277e9 - Update domain verification doc

    Compare with previous version

  • Jon Glassman
  • Linjie Zhang added 1 commit

    added 1 commit

    • 4ee07f9e - Update domain verification doc

    Compare with previous version

  • Jon Glassman approved this merge request

    approved this merge request

  • Jon Glassman removed review request for @jglassman1

    removed review request for @jglassman1

  • Linjie Zhang added 1 commit

    added 1 commit

    Compare with previous version

  • Ottilia Westerlund approved this merge request

    approved this merge request

  • Drew Blessing approved this merge request

    approved this merge request

  • Thanks for this! A minor doc suggestion, but consider it non-blocking for merging purposes. We can always update the docs in a follow up MR.

    Edited by Cynthia "Arty" Ng
  • Cynthia "Arty" Ng approved this merge request

    approved this merge request

  • Linjie Zhang added 1 commit

    added 1 commit

    Compare with previous version

  • Author Contributor

    rspec:undercoverage job failed, but test coverage locally is ok. Could we add pipeline:skip-undercoverage label to skip this job? @dblessing @agulina

    SIMPLECOV=1 bundle exec rspec spec/presenters/pages_domain_presenter_spec.rb \
    ee/spec/requests/groups/settings/domain_verification_controller_spec.rb \
    ee/spec/features/groups/settings/domain_verification_spec.rb
    scripts/undercoverage
    #=> undercover: ✅ No coverage is missing in latest changes
  • Angelo Gulina approved this merge request

    approved this merge request

  • Angelo Gulina requested review from @f_caplette

    requested review from @f_caplette

  • Frédéric Caplette requested review from @jivanvl and removed review request for @f_caplette

    requested review from @jivanvl and removed review request for @f_caplette

  • Jose Ivan Vargas changed milestone to %16.0

    changed milestone to %16.0

  • Jose Ivan Vargas
  • Jose Ivan Vargas
  • Jose Ivan Vargas
  • Linjie Zhang added 1 commit

    added 1 commit

    • 4062e104 - Update domain verification views

    Compare with previous version

  • Jose Ivan Vargas approved this merge request

    approved this merge request

  • Jose Ivan Vargas removed review request for @jivanvl

    removed review request for @jivanvl

  • Drew Blessing approved this merge request

    approved this merge request

  • Drew Blessing resolved all threads

    resolved all threads

  • Drew Blessing enabled an automatic merge when the pipeline for 825ef92e succeeds

    enabled an automatic merge when the pipeline for 825ef92e succeeds

  • A deleted user added documentation label

    added documentation label

  • Contributor
    7 Warnings
    :warning: 4062e104: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines.
    :warning: c5ac0bd7: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: c25104c9: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: 7972e5d7: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines.
    :warning: d0a2665d: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines.
    :warning: f47fb5d3: Commits that change 30 or more lines across at least 3 files should describe these changes in the commit body. For more information, take a look at our Commit message guidelines.
    :warning: This merge request contains deprecated components. Please consider using Pajamas components instead.
    2 Messages
    :book: CHANGELOG missing:

    If you want to create a changelog entry for GitLab FOSS, add the Changelog trailer to the commit message you want to add to the changelog.

    If you want to create a changelog entry for GitLab EE, also add the EE: true trailer to your commit message.

    If this merge request doesn't need a CHANGELOG entry, feel free to ignore this 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:

    Deprecated components

    These deprecated components are in the process of being migrated. Please consider using Pajamas components instead.

    • bs-callout

    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 Hitesh Raghuvanshi current availability (@hraghuvanshi) (UTC+5.5) Heinrich Lee Yu current availability (@engwan) (UTC+8)
    frontend Tomas Vik current availability (@viktomas) (UTC+2) Vitaly Slobodin current availability (@vitallium) (UTC+2)
    test for spec/features/* Sanad Liaquat current availability (@sliaquat) (UTC+5) Maintainer review is optional for test for spec/features/*

    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

  • Contributor

    Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits 73d65409 and 4062e104

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 4.03 MB 4.02 MB -5.33 KB -0.1 %
    mainChunk 2.88 MB 2.88 MB - 0.0 %

    :new: New entry points: 3

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.groups.settings.domain_verification.new 0 Bytes 397.27 KB +397.27 KB 100.0 %
    pages.groups.settings.domain_verification.show 0 Bytes 397.27 KB +397.27 KB 100.0 %
    pages.groups.settings.domain_verification.index 0 Bytes 255.81 KB +255.81 KB 100.0 %

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

  • Contributor

    Allure report

    allure-report-publisher generated test report!

    e2e-review-qa: :exclamation: test report for 4062e104

    expand test summary
    +-----------------------------------------------------------------------+
    |                            suites summary                             |
    +------------------+--------+--------+---------+-------+-------+--------+
    |                  | passed | failed | skipped | flaky | total | result |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Verify           | 10     | 0      | 0       | 0     | 10    | ✅     |
    | Data Stores      | 22     | 0      | 0       | 0     | 22    | ✅     |
    | Create           | 27     | 0      | 1       | 0     | 28    | ✅     |
    | Plan             | 50     | 0      | 1       | 0     | 51    | ✅     |
    | Govern           | 24     | 0      | 0       | 1     | 24    | ❗     |
    | Manage           | 8      | 0      | 3       | 0     | 11    | ✅     |
    | Framework sanity | 9      | 0      | 1       | 0     | 10    | ✅     |
    | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
    | Package          | 0      | 0      | 1       | 0     | 1     | ➖     |
    +------------------+--------+--------+---------+-------+-------+--------+
    | Total            | 154    | 0      | 7       | 1     | 161   | ❗     |
    +------------------+--------+--------+---------+-------+-------+--------+
  • Nick Malcolm approved this merge request

    approved this merge request

  • 🤖 GitLab Bot 🤖 resolved all threads

    resolved all threads

  • merged

  • @dblessing, did you forget to run a pipeline before you merged this work? Based on our code review process, if the latest pipeline was created more than 6 hours ago OR finished more than 2 hours ago, you should:

    1. Ensure the merge request is not in Draft status.
    2. Start a pipeline (especially important for Community contribution merge requests).
    3. Set the merge request to merge when pipeline succeeds.

    This is a guideline, not a rule. Please consider replying to this comment for transparency.

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

  • @zhanglinjie, how was your code review experience with this merge request? Please tell us how we can continue to iterate and improve:

    1. React with a :thumbsup: or a :thumbsdown: on this comment to describe your experience.
    2. Create a new comment starting with @gitlab-bot feedback below, and leave any additional feedback you have for us in the comment.

    Interested in learning more tips and tricks to solve your next challenge faster? Subscribe to the GitLab Community Newsletter for contributor-focused content and opportunities to level up.

    Thanks for your help! :heart:

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

  • Drew Blessing mentioned in commit 37a726af

    mentioned in commit 37a726af

  • added workflowstaging label and removed workflowcanary label

  • Aboobacker MK mentioned in merge request !121246 (merged)

    mentioned in merge request !121246 (merged)

  • Please register or sign in to reply
    Loading