Skip to content
Snippets Groups Projects

Address require-string-literal-i18n-helpers offenses

Closed Rishabh Gupta requested to merge (removed):imrishabh18-339497 into master
5 unresolved threads

What does this MR do and why?

Address vue i18n literal string violations. Closes - #339497 (closed)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

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.

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
  • Rishabh Gupta added 1 commit

    added 1 commit

    • 467aa8ab - Removed the lines, no longer being used

    Compare with previous version

  • Mireya Andres approved this merge request

    approved this merge request

  • 6 Warnings
    :warning: 06e9b753: The commit subject must start with a capital letter. For more information, take a look at our Commit message guidelines.
    :warning: c8cbed5d: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: 529a7bb9: 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: 4b142b48: The commit subject must contain at least 3 words. For more information, take a look at our Commit message guidelines.
    :warning: This merge request does not refer to an existing milestone.
    :warning: You've made some app changes, but didn't add any tests.
    That's OK as long as you're refactoring existing code,
    but please consider adding any of the tooling, ~"tooling::pipelines", ~"tooling::workflow", documentation, QA labels.
    1 Message
    :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.

    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
    frontend Himanshu Kapoor (@himkp) (UTC+2) Savas Vedova (@svedova) (UTC+2)

    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 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 2b719bdf and fd88f02e

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 3.23 MB 3.23 MB +1.01 KB 0.0 %
    mainChunk 1.89 MB 1.89 MB - 0.0 %

    :fearful: Significant Growth: 12

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.groups.epics.new 1.3 MB 1.61 MB +326.86 KB 24.6 %
    pages.profiles.personal_access_tokens 226.38 KB 341.81 KB +115.43 KB 51.0 %
    pages.profiles 166.56 KB 281.81 KB +115.25 KB 69.2 %
    pages.profiles.slacks 174.35 KB 289.6 KB +115.25 KB 66.1 %
    pages.profiles.two_factor_auths 302.43 KB 416.34 KB +113.91 KB 37.7 %
    pages.profiles.preferences.show 182.61 KB 295.88 KB +113.27 KB 62.0 %
    pages.profiles.show 1021.15 KB 1.1 MB +109.39 KB 10.7 %
    pages.profiles.accounts.show 309.94 KB 350.23 KB +40.3 KB 13.0 %
    pages.profiles.billings 290.18 KB 330.48 KB +40.3 KB 13.9 %
    pages.profiles.keys 247.18 KB 287.48 KB +40.3 KB 16.3 %

    The table above is limited to 10 entries. Please look at the full report for more details

    :new: New entry points: 1

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.profiles.password_prompt 0 Bytes 281.83 KB +281.83 KB 100.0 %

    Your MR has at least one entrypoint growing significantly (more > 1 KB or 2%). If you write new or extend existing features, this is expected and there is nothing to worry about.

    Please consider pinging someone from the FE Foundations (@dmishunov, @justin_ho, @mikegreiling or @nmezzopera) for review, if you are unsure about the size increase.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

  • Allure report

    allure-report-publisher generated test report for fd88f02e!

    review-qa-smoke: :pencil: test report

    • @imrishabh18 There are some pipeline failures.

      Changes in translated strings found, please update file `/builds/gitlab-org/gitlab/locale/gitlab.pot` by running:
        bin/rake gettext:regenerate
      Then commit and push the resulting changes to `/builds/gitlab-org/gitlab/locale/gitlab.pot`.

      Since we updated the strings, could you run bin/rake gettext:regenerate?

    • Hi @imrishabh18 :wave: just checking in. There are some changes here that seems different from the updated master branch. Perhaps we need a rebase? I think there shouldn't be complaints with regenerating text stings here once we do that

    • Please register or sign in to reply
  • Rishabh Gupta added 1 commit

    added 1 commit

    Compare with previous version

  • Rishabh Gupta added 1319 commits

    added 1319 commits

    Compare with previous version

  • Mireya Andres
    Mireya Andres @mgandres started a thread on an outdated change in commit 10ff7558
  • 4 # FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
    5 #
    1 6 msgid ""
    2 7 msgstr ""
    3 "Project-Id-Version: gitlab-ee\n"
    8 "Project-Id-Version: gitlab 1.0.0\n"
    4 9 "Report-Msgid-Bugs-To: \n"
    5 "Last-Translator: \n"
    10 "PO-Revision-Date: 2021-10-06 18:30+0000\n"
    11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    6 12 "Language-Team: Bashkir\n"
    7 13 "Language: ba_RU\n"
    8 14 "MIME-Version: 1.0\n"
    9 15 "Content-Type: text/plain; charset=UTF-8\n"
    10 16 "Content-Transfer-Encoding: 8bit\n"
    17 <<<<<<< HEAD
    • @imrishabh18 hey thanks for sticking this one out, we're in the last stretch! It looks like you pushed some merge conflicts here in a lot of the .po files though

      I think what you can do is:

      • git pull on the master branch
      • Checkout to you previous commit 9ffdca0e9f9f51928e994736cbf7ef31386f82bf
      • git rebase master

      This should put your commit on top of the latest changes in the master branch. I noticed there will be some conflicts, for example: ee/app/assets/javascripts/ci_minutes_usage/components/minutes_usage_project_chart.vue is already updated to use getTranslatedMonthName(monthName) so we can keep that in and just include the changes relevant to the MR.

      • in app/assets/javascripts/packages_and_registries/infrastructure_registry/details/components/package_history.vue I believe shouldn't be any changes in combinedUpdateText since those are not relevant to the MR either

      Hope this makes things clear!

    • changed this line in version 6 of the diff

    • Author Contributor

      I did reset the .po files, but not sure where is this other changes in the file got commited.

    • Please register or sign in to reply
  • Rishabh Gupta added 1 commit

    added 1 commit

    • 1d1c597e - resolved the merge conflicts

    Compare with previous version

  • 105 105 data-testid="month-dropdown-item"
    106 106 @click="changeSelectedMonth(monthName)"
    107 107 >
    108 {{ getTranslatedMonthName(monthName) }}
  • mentioned in merge request !72385 (merged)

  • Let's close this in favor of !72385 (merged).

  • mentioned in merge request !72387 (merged)

  • 🤖 GitLab Bot 🤖 added devopsmanage label and removed 1 deleted label

    added devopsmanage label and removed 1 deleted label

  • Please register or sign in to reply
    Loading