Skip to content
Snippets Groups Projects

Feat: profile edit main settings part one

1 unresolved thread

What does this MR do and why?

  • This s a splitted partial of !143932 (closed).
  • This MR implements updating username/email/pronouns/pronunciation feature in Vue implementation.

Feat: profile edit main settings part one

  • Add a main settings component for main settings.
  • Add a password prompt modal to profile edit component for verification.
  • Enhance profile_helper for providing data needed by frontend.
  • Add tests against these changes above.

Changlog: changed EE: true

Related to #389918, #393769

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

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

The section in the red rectangle is the UI changes in this MR.

Before submitting

CleanShot_2024-02-23_at_11.08.07_2x

Submitting with email changed

CleanShot_2024-02-23_at_12.30.37_2x

How to set up and validate locally

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

  1. Enable feature flag with following code in Rails Console
 Feature.enable(:profile_edit_vue)
  1. Click on the current user avatar > Edit profile
Edited by Diana Zubova

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
  • Diana Zubova
  • Diana Zubova
  • Diana Zubova
  • Diana Zubova
  • Diana Zubova
  • Diana Zubova requested changes

    requested changes

  • Diana Zubova removed review request for @dzubova

    removed review request for @dzubova

  • Wu Jeremy added 2441 commits

    added 2441 commits

    Compare with previous version

  • Diana Zubova requested review from @dzubova

    requested review from @dzubova

  • issue: the e-mail link is not shown correctly

    before after
    Screenshot_2024-05-28_at_19.12.43 Screenshot_2024-05-28_at_17.18.00
  • Diana Zubova requested changes

    requested changes

  • Wu Jeremy added 215 commits

    added 215 commits

    Compare with previous version

  • Hi @dzubova, I have updated the code as suggested, but for the testing one I would like it to remain the same because I think if we separate the test it would look redundant. I also left one question for you, Thank you in advance for your patience.

  • Wu Jeremy requested review from @dzubova

    requested review from @dzubova

  • Diana Zubova changed the description

    changed the description

  • Diana Zubova requested review from @pedroms

    requested review from @pedroms

  • Diana Zubova approved this merge request

    approved this merge request

  • Diana Zubova requested review from @peterhegman and removed review request for @dzubova

    requested review from @peterhegman and removed review request for @dzubova

  • added pipelinetier-2 label and removed pipelinetier-1 label

  • Peter Hegman requested review from @ealcantara and removed review request for @peterhegman

    requested review from @ealcantara and removed review request for @peterhegman

  • Kevin Morrison approved this merge request

    approved this merge request

  • Greg Myers approved this merge request

    approved this merge request

  • No concerns from an AppSec perspective.

  • Joseph Wambua approved this merge request

    approved this merge request

  • Joseph Wambua requested review from @georgekoltsov and removed review request for @joseph

    requested review from @georgekoltsov and removed review request for @joseph

  • George Koltsov removed review request for @georgekoltsov

    removed review request for @georgekoltsov

  • George Koltsov approved this merge request

    approved this merge request

  • added pipelinetier-3 label and removed pipelinetier-2 label

  • 3 Warnings
    :warning: This merge request is quite big (835 lines changed), please consider splitting it into multiple merge requests.
    :warning: 16f7c83e: The commit body should not contain more than 72 characters per line. For more information, take a look at our Commit message guidelines.
    :warning: This merge request contains lines with testid selectors. Please ensure e2e:package-and-test job is run.
    1 Message
    :book: CHANGELOG missing:

    If this merge request needs a changelog entry, add the Changelog trailer to the commit message you want to add to the changelog.

    If this merge request doesn't need a CHANGELOG entry, feel free to ignore this message.

    testid selectors

    The following changed lines in this MR contain testid selectors:

    app/assets/javascripts/profile/edit/components/main_settings.vue

    +        data-testid="profile-edit-name"
    +        data-testid="profile-edit-id"
    +        data-testid="profile-edit-pronouns"
    +        data-testid="profile-edit-pronunciation"
    +        data-testid="profile-edit-email"

    app/assets/javascripts/profile/edit/components/profile_edit_app.vue

    +        data-testid="submit-edit-button"

    If the e2e:package-and-test job in the qa stage has run automatically, please ensure the tests are passing. If the job has not run, please start the manual:e2e-test-pipeline-generate job in the prepare stage and ensure the tests in follow-up:e2e:package-and-test-ee pipeline are passing.

    For the list of known failures please refer to the latest pipeline triage issue.

    If your changes are under a feature flag, please check our Testing with feature flags documentation for instructions.

    Reviewer roulette

    Category Reviewer Maintainer
    backend @hmerscher profile link current availability (UTC+2) @reprazent profile link current availability (UTC+2)
    frontend @eduardobonet profile link current availability (UTC+2) @afontaine profile link current availability (UTC-4)
    test for spec/features/* @hmerscher profile link current availability (UTC+2) Maintainer review is optional for test for spec/features/*
    UX @mnichols1 profile link current availability (UTC-4) Maintainer review is optional for UX

    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

  • Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits ffd62ef0 and 346e4257

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 4.29 MB 4.29 MB - 0.0 %
    mainChunk 3.25 MB 3.25 MB - 0.0 %

    Note: We do not have exact data for ffd62ef0. So we have used data from: 999e33d1.
    The intended commit has no webpack pipeline, so we chose the last commit with one before it.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

  • E2E Test Result Summary

    allure-report-publisher generated test report!

    e2e-test-on-gdk: :white_check_mark: test report for bed17622

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Verify      | 43     | 0      | 3       | 0     | 46    | ✅     |
    | Create      | 126    | 0      | 12      | 0     | 138   | ✅     |
    | Plan        | 60     | 0      | 2       | 0     | 62    | ✅     |
    | Package     | 19     | 0      | 12      | 0     | 31    | ✅     |
    | Govern      | 65     | 0      | 0       | 0     | 65    | ✅     |
    | Data Stores | 27     | 0      | 4       | 0     | 31    | ✅     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Monitor     | 8      | 0      | 0       | 0     | 8     | ✅     |
    | Release     | 5      | 0      | 0       | 0     | 5     | ✅     |
    | Manage      | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Fulfillment | 1      | 0      | 0       | 0     | 1     | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 356    | 0      | 34      | 0     | 390   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+

    e2e-package-and-test: :white_check_mark: test report for 346e4257

    expand test summary
    +---------------------------------------------------------------------+
    |                           suites summary                            |
    +----------------+--------+--------+---------+-------+-------+--------+
    |                | passed | failed | skipped | flaky | total | result |
    +----------------+--------+--------+---------+-------+-------+--------+
    | Create         | 425    | 0      | 48      | 9     | 473   | ✅     |
    | Package        | 31     | 0      | 14      | 0     | 45    | ✅     |
    | Systems        | 7      | 0      | 0       | 0     | 7     | ✅     |
    | Plan           | 88     | 0      | 11      | 0     | 99    | ✅     |
    | Govern         | 109    | 0      | 8       | 1     | 117   | ✅     |
    | Monitor        | 12     | 0      | 13      | 0     | 25    | ✅     |
    | Manage         | 30     | 0      | 15      | 1     | 45    | ✅     |
    | GitLab Metrics | 2      | 0      | 1       | 0     | 3     | ✅     |
    | Verify         | 52     | 0      | 14      | 0     | 66    | ✅     |
    | Fulfillment    | 4      | 0      | 24      | 0     | 28    | ✅     |
    | Configure      | 1      | 0      | 3       | 0     | 4     | ✅     |
    | Analytics      | 3      | 0      | 0       | 0     | 3     | ✅     |
    | Data Stores    | 43     | 0      | 14      | 0     | 57    | ✅     |
    | Ai-powered     | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Growth         | 0      | 0      | 2       | 0     | 2     | ➖     |
    | Release        | 5      | 0      | 1       | 0     | 6     | ✅     |
    | Secure         | 3      | 0      | 2       | 0     | 5     | ✅     |
    | ModelOps       | 0      | 0      | 1       | 0     | 1     | ➖     |
    +----------------+--------+--------+---------+-------+-------+--------+
    | Total          | 815    | 0      | 173     | 11    | 988   | ✅     |
    +----------------+--------+--------+---------+-------+-------+--------+

    e2e-test-on-cng: :x: test report for bed17622

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Configure   | 0      | 0      | 3       | 0     | 3     | ➖     |
    | Create      | 138    | 0      | 16      | 0     | 154   | ✅     |
    | Plan        | 83     | 0      | 11      | 0     | 94    | ✅     |
    | Monitor     | 8      | 0      | 12      | 0     | 20    | ✅     |
    | Manage      | 2      | 0      | 8       | 0     | 10    | ✅     |
    | Ai-powered  | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Govern      | 79     | 0      | 9       | 0     | 88    | ✅     |
    | Verify      | 52     | 0      | 14      | 0     | 66    | ✅     |
    | Data Stores | 30     | 0      | 13      | 0     | 43    | ✅     |
    | Package     | 22     | 1      | 15      | 0     | 38    | ❌     |
    | ModelOps    | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Secure      | 3      | 0      | 2       | 0     | 5     | ✅     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Fulfillment | 2      | 0      | 24      | 0     | 26    | ✅     |
    | Release     | 5      | 0      | 1       | 0     | 6     | ✅     |
    | Growth      | 0      | 0      | 2       | 0     | 2     | ➖     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 426    | 1      | 132     | 0     | 559   | ❌     |
    +-------------+--------+--------+---------+-------+-------+--------+
  • Enrique Alcántara
  • @JeremyWuuuuu Impressive work :clap: . I left a few minor requests :ping_pong: .

  • Enrique Alcántara requested changes

    requested changes

  • Wu Jeremy requested review from @ealcantara

    requested review from @ealcantara

  • Wu Jeremy added 3105 commits

    added 3105 commits

    Compare with previous version

  • Wu Jeremy reset approvals from @georgekoltsov by pushing to the branch

    reset approvals from @georgekoltsov by pushing to the branch

  • Kevin Morrison unapproved this merge request

    unapproved this merge request

  • Kevin Morrison approved this merge request

    approved this merge request

  • added pipelinetier-2 label and removed pipelinetier-3 label

  • Wu Jeremy added 1 commit

    added 1 commit

    Compare with previous version

  • Wu Jeremy added 1 commit

    added 1 commit

    Compare with previous version

  • Enrique Alcántara approved this merge request

    approved this merge request

  • added pipelinetier-3 label and removed pipelinetier-2 label

  • Kevin Morrison unapproved this merge request

    unapproved this merge request

  • Kevin Morrison approved this merge request

    approved this merge request

  • Enrique Alcántara resolved all threads

    resolved all threads

  • Enrique Alcántara enabled automatic add to merge train when the pipeline for 6e7705b8 succeeds

    enabled automatic add to merge train when the pipeline for 6e7705b8 succeeds

  • Enrique Alcántara removed review request for @ealcantara

    removed review request for @ealcantara

  • added typemaintenance label and removed typefeature label

  • Greg Myers unapproved this merge request

    unapproved this merge request

  • Greg Myers approved this merge request

    approved this merge request

  • 🤖 GitLab Bot 🤖 resolved all threads

    resolved all threads

  • Arturo Herrero changed milestone to %17.2

    changed milestone to %17.2

  • Wu Jeremy added 983 commits

    added 983 commits

    Compare with previous version

  • Wu Jeremy reset approvals from @ealcantara by pushing to the branch

    reset approvals from @ealcantara by pushing to the branch

  • Wu Jeremy added 1 commit

    added 1 commit

    Compare with previous version

  • requested review from @JeremyWuuuuu and @ealcantara

  • Enrique Alcántara removed review request for @JeremyWuuuuu

    removed review request for @JeremyWuuuuu

  • Kevin Morrison unapproved this merge request

    unapproved this merge request

  • Kevin Morrison approved this merge request

    approved this merge request

  • added pipelinetier-2 label and removed pipelinetier-3 label

  • Enrique Alcántara removed review request for @ealcantara

    removed review request for @ealcantara

  • Wu Jeremy added 656 commits

    added 656 commits

    Compare with previous version

  • requested review from @ealcantara

  • :tools: Generated by gitlab_quality-test_tooling.


    :snail: Slow tests detected in this merge request. These slow tests might be related to this merge request's changes.

    Click to expand
    Job File Name Duration Expected duration
    #7179398483 spec/lib/search/settings_spec.rb#L6 Search results for settings behaves like all sections exist and have correct anchor links has only valid settings sections 31.88 s < 27.12 s
    #7263305199 spec/lib/search/settings_spec.rb#L6 Search results for settings behaves like all sections exist and have correct anchor links has only valid settings sections 30.9 s < 27.12 s
    #7263305381 ee/spec/lib/ee/search/settings_spec.rb#L19 Search results for settings behaves like all sections exist and have correct anchor links has only valid settings sections 47.87 s < 27.12 s
    #7286084714 spec/lib/search/settings_spec.rb#L6 Search results for settings behaves like all sections exist and have correct anchor links has only valid settings sections 42.83 s < 27.12 s
    #7286084990 ee/spec/lib/ee/search/settings_spec.rb#L19 Search results for settings behaves like all sections exist and have correct anchor links has only valid settings sections 47.56 s < 27.12 s
  • A deleted user added rspec:slow test detected label
  • Enrique Alcántara approved this merge request

    approved this merge request

  • added pipelinetier-3 label and removed pipelinetier-2 label

    • Resolved by Enrique Alcántara

      Before you set this MR to auto-merge

      This merge request will progress on pipeline tiers until it reaches the last tier: pipelinetier-3.

      Before you resolve this discussion, please check the following:

      • You are the last maintainer of this merge request
      • The latest pipeline for this merge request is pipelinetier-3 (You can find which tier it is in the pipeline name)
      • This pipeline is recent enough (created in the last 8 hours)

      If all the criteria above apply, please resolve this discussion and the set auto-merge for this merge request.

      See pipeline tiers and merging a merge request for more details.

  • Kevin Morrison unapproved this merge request

    unapproved this merge request

  • Kevin Morrison approved this merge request

    approved this merge request

  • Pedro Moreira da Silva approved this merge request

    approved this merge request

    • Resolved by Enrique Alcántara

      Hi @ealcantara , it looks like there was a undercoverage error reported, for the failure 1st and 3rd I can add more tests, but for the 2nd one, I think there was already test cases included, could you help me here for what I should to in order to get this MR pipeline passed?

      CleanShot_2024-06-27_at_09.02.38_2x

      CleanShot_2024-06-27_at_09.04.29_2x

  • Wu Jeremy added 1590 commits

    added 1590 commits

    Compare with previous version

  • Wu Jeremy reset approvals from @ealcantara by pushing to the branch

    reset approvals from @ealcantara by pushing to the branch

  • Greg Myers unapproved this merge request

    unapproved this merge request

  • Greg Myers approved this merge request

    approved this merge request

  • Enrique Alcántara resolved all threads

    resolved all threads

  • Enrique Alcántara approved this merge request

    approved this merge request

  • Enrique Alcántara enabled automatic add to merge train when the pipeline for fcac1500 succeeds

    enabled automatic add to merge train when the pipeline for fcac1500 succeeds

  • Wu Jeremy added 1 commit

    added 1 commit

    Compare with previous version

  • Wu Jeremy reset approvals from @ealcantara by pushing to the branch

    reset approvals from @ealcantara by pushing to the branch

  • Kevin Morrison unapproved this merge request

    unapproved this merge request

  • Kevin Morrison approved this merge request

    approved this merge request

  • Enrique Alcántara removed review request for @ealcantara

    removed review request for @ealcantara

  • Christina Lohr changed milestone to %17.3

    changed milestone to %17.3

  • added idle label

  • Security policy violations have been resolved.

    Edited by GitLab Security Bot
  • Christina Lohr changed milestone to %17.4

    changed milestone to %17.4

  • removed idle label

  • requested review from @serenafang

  • added idle label

  • added grouporganizations label and removed groupglobal search label

  • removed idle label

  • Hi @JeremyWuuuuu are you still interested in working on this?

  • added idle label

  • @JeremyWuuuuu, it seems we're waiting on an action from you for approximately two weeks.

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

  • Please register or sign in to reply
    Loading