lib/release_tools/metrics/environment_state/common_staging_production.rb [46:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

        def latest_successful_deployment
          Retriable.with_context(:api) do
            GitlabOpsClient.deployments(
              Project::Release::Metadata,
              environment,
              status: 'success',
              order_by: 'id',
              sort: 'desc',
              opts: {
                per_page: 1
              }
            ).first
          end
        end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lib/release_tools/metadata/compare_service.rb [25:39]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

      def latest_successful_deployment
        Retriable.with_context(:api) do
          GitlabOpsClient.deployments(
            Project::Release::Metadata,
            environment,
            status: 'success',
            order_by: 'id',
            sort: 'desc',
            opts: {
              per_page: 1
            }
          ).first
        end
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



