diff --git a/app/assets/javascripts/issues_list/components/issuable.vue b/app/assets/javascripts/issues_list/components/issuable.vue index a2970bdc43b3d9320dda87e827fdf89f6c2b0251..60b01a6d37f2eba578956e0c459346fe8c497f66 100644 --- a/app/assets/javascripts/issues_list/components/issuable.vue +++ b/app/assets/javascripts/issues_list/components/issuable.vue @@ -32,9 +32,9 @@ import IssueAssignees from '~/vue_shared/components/issue/issue_assignees.vue'; export default { i18n: { - openedAgo: __('opened %{timeAgoString} by %{user}'), - openedAgoJira: __('opened %{timeAgoString} by %{user} in Jira'), - openedAgoServiceDesk: __('opened %{timeAgoString} by %{email} via %{user}'), + openedAgo: __('created %{timeAgoString} by %{user}'), + openedAgoJira: __('created %{timeAgoString} by %{user} in Jira'), + openedAgoServiceDesk: __('created %{timeAgoString} by %{email} via %{user}'), }, components: { IssueAssignees, diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index e28daabe1ed3c4b5ecce685308b7a3dfbbe2b56d..639a54fa9ec27ac4575a30b6aae4aa9c7a4963d0 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -151,7 +151,7 @@ def issuable_meta_author_status(author) def issuable_meta(issuable, project) output = [] - output << "Opened #{time_ago_with_tooltip(issuable.created_at)} by ".html_safe + output << "Created #{time_ago_with_tooltip(issuable.created_at)} by ".html_safe if issuable.is_a?(Issue) && issuable.service_desk_reply_to output << "#{html_escape(issuable.service_desk_reply_to)} via " diff --git a/app/views/projects/issues/_issue.html.haml b/app/views/projects/issues/_issue.html.haml index 235107134949d32a97c1de1eb5fba8055bb59063..838b4538cad0a4eb9dcbd955ac00aae24f272da0 100644 --- a/app/views/projects/issues/_issue.html.haml +++ b/app/views/projects/issues/_issue.html.haml @@ -22,7 +22,7 @@ #{issuable_reference(issue)} %span.issuable-authored.d-none.d-sm-inline-block · - opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')} by + created #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')} by - if issue.service_desk_reply_to #{issue.service_desk_reply_to} via #{link_to_member(@project, issue.author, avatar: false)} diff --git a/changelogs/unreleased/246959-msj-opened-created-ui.yml b/changelogs/unreleased/246959-msj-opened-created-ui.yml new file mode 100644 index 0000000000000000000000000000000000000000..d0435638be8728d61f01e13098d7cb5db049f3cd --- /dev/null +++ b/changelogs/unreleased/246959-msj-opened-created-ui.yml @@ -0,0 +1,5 @@ +--- +title: Use Created instead of opened when describing issue creation +merge_request: 49478 +author: +type: other diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 7d4e91afdcd1eee23936f0593c88db26d131d435..46897477f6b5edb30afb6f7d7d44636751aaa882 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -35243,6 +35243,15 @@ msgstr "" msgid "created" msgstr "" +msgid "created %{timeAgoString} by %{email} via %{user}" +msgstr "" + +msgid "created %{timeAgoString} by %{user}" +msgstr "" + +msgid "created %{timeAgoString} by %{user} in Jira" +msgstr "" + msgid "created %{timeAgo}" msgstr "" @@ -36016,15 +36025,6 @@ msgstr "" msgid "open issue" msgstr "" -msgid "opened %{timeAgoString} by %{email} via %{user}" -msgstr "" - -msgid "opened %{timeAgoString} by %{user}" -msgstr "" - -msgid "opened %{timeAgoString} by %{user} in Jira" -msgstr "" - msgid "opened %{timeAgo}" msgstr "" diff --git a/spec/frontend/issues_list/components/issuable_spec.js b/spec/frontend/issues_list/components/issuable_spec.js index 236eab6e276a9b14c20de26c42644a4c21fca8c7..97d841c861dc9ec0b932a29c2c314673c6262c25 100644 --- a/spec/frontend/issues_list/components/issuable_spec.js +++ b/spec/frontend/issues_list/components/issuable_spec.js @@ -192,9 +192,9 @@ describe('Issuable component', () => { expect(wrapper.classes('closed')).toBe(false); }); - it('renders fuzzy opened date and author', () => { + it('renders fuzzy created date and author', () => { expect(trimText(findOpenedAgoContainer().text())).toContain( - `opened 1 month ago by ${TEST_USER_NAME}`, + `created 1 month ago by ${TEST_USER_NAME}`, ); });