Display message for environments and exposed artifacts MR widgets when jobs are archived and data missing

Context

We need to be able to gracefully handle missing build_metadata records should they arise. See https://gitlab.com/gitlab-org/gitlab/-/issues/546419#note_2554679675 for further details.

For old pipelines created prior to #549079 (closed) and whose data is not yet migrated in #552069 (closed): If the jobs in the latest pipeline for an MR do not have build_metadata records, we cannot obtain the data required to display the UI widget for environments nor exposed artifacts.

Instead, we should display a relevant message in place of each widget.

Considerations

With https://gitlab.com/gitlab-org/gitlab/-/issues/549354, non-migrated old jobs without build_metadata records will be considered archived because degenerated? will be true.

We shouldn't just show the message if we cannot obtain the data for each widget because some pipelines may legitimately not have included any configuration for environments nor exposed artifacts. The messages would be clutter in these cases.

Proposal

Show a relevant message if the data for the widget cannot be obtained and the latest pipeline is archived.

We need to discuss with UX/FE what messages are appropriate and how they should be formatted.

Update

This issue is no longer necessary. Please see discussion in #549396 (comment 2745940623).

Edited by Leaminn Ma