Skip to content

Hide "email a new issue" on archived issues lists

Coung Ngo requested to merge 438436-fix-archived-project-email into master

What does this MR do and why?

This MR hides "email a new issue" link on archived issues lists (#438436 (closed))

You cannot create new issues in archived projects so it does not make sense to show this in the UI

Changelog: fixed

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

Before After
Screenshot_2024-02-07_at_15-05-30_Issues___Jashkenas___Underscore___GitLab Screenshot_2024-02-07_at_15-11-22_Issues___Jashkenas___Underscore___GitLab
Screenshot_2024-02-08_at_15-32-32_Merge_requests___Jashkenas___Underscore___GitLab Screenshot_2024-02-08_at_15-32-06_Merge_requests___Jashkenas___Underscore___GitLab

How to set up and validate locally

  1. Enable reply by email in gdk
    1. Open config/gitlab.yml
    2. Update config to enabled: true within incoming_email: (roughly line 118)
  2. Archive a project in a project's settings e.g. http://127.0.0.1:3000/jashkenas/Underscore/edit
  3. Visit the issues list and confirm there is no "Email a new issue to this project" link at the bottom of the list e.g. http://127.0.0.1:3000/jashkenas/Underscore/-/issues
  4. Visit the merge requests list and confirm there is no "Email a new issue to this project" link at the bottom of the list e.g. http://127.0.0.1:3000/jashkenas/Underscore/-/merge_requests

Related to #438436 (closed)

Edited by Coung Ngo

Merge request reports