Skip to content

Show correct warning on issue when project is archived

Alexandru Croitor requested to merge 24190-archived-project-warning-message into master

What does this MR do?

Adjusts the message shown when viewing an issue in an archived project. Instead of always showing that the issue or merge request is logged, show a message about project being archived.

This MR exposes project's archived and archived_project_docs_path attribute though internal(private) API and makes use of it to extend discussion_locked_widget.vue component functionality to lock discussion not only when issue or merge request is locked but also when project is archived and display corresponding message.

Documentation

No documentation change is needed as this does not change or add any functionality, but rather improves the existing messaging.

References

issue requesting the change 24190: when viewing an issue in an archived project, an incorrect message is shown

Screenshots

Before

Before After
Issue Before Issue After
Merge Request Before "Before") Merge Request After

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

re #24190 (closed)

Edited by Alexandru Croitor

Merge request reports

Loading