Delayed job status renders “Status Unknown”
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: Put your extension version here
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.61.2
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: happens on
gitlab.com
- GitLab version: happens on
Summary
The job status Delayed is presented as Status Unknown in the sidebar pipeline view.
Steps to reproduce
- Create a project
- Add a
.gitlab-ci.yml
- Add two jobs like:
staging: script: echo Deployed to staging! production: rules: - when: delayed start_in: 30m
- Open the project in VS Code
- See the job status in the sidebar
What is the current bug behavior?
The job shows Status Unknown as status when it is delayed.
What is the expected correct behavior?
The job shows Delayed as status when it is delayed.
Relevant logs and/or screenshots
Possible fixes
See the STATUS_METADATA
in src/gitlab/ci_status_metadata.ts
. delayed
has to be added.