Show correct warning on issue when project is archived
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 | Issue |
Merge Request "Before") | Merge Request |
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry [ ] Documentation (if required)-
Code review guidelines -
Merge request performance guidelines -
Style guides [ ] Database guides[ ] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
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