Only use the simplified Git fields
https://redmine.teklia.com/issues/5720
The simplified fields for Git repos and revisions introduced in backend#1775 (closed) must be used exclusively, and not the old fields that are being deleted in backend#1805 (closed).
-
Update the
Worker,WorkerVersion,WorkerRun,CreateWorkerVersionPayloadandListWorkersParametersTypeScript types -
Update the
isWorkertype guard to userepository_url -
Remove the
RevisionWithRefsandGitReftypes -
Remove the
GitRefTypeenum -
Remove the
GIT_REF_COLORSconstant inconfig.ts -
Rename
REVISION_STATE_COLORStoWORKER_VERSION_STATE_COLORS -
Display truncated version IDs instead of revision hashes in the filter bar, just like what we do in WorkerRun summaries in the backend
-
Update
src/components/Process/Workers/Versions/Details.vue- Remove the
hasRevision,refsCount,shortHashcomputed properties - Remove the Author and References rows
- Remove the
is-uidCSS class - Add a Tag row which shows the version's
tagor a em-dash - The Commit row is renamed Revision and its link opens the
revision_url
- Remove the
-
Update
src/components/Process/Workers/Versions/List.vueandRow.vue- When there is a revision URL, the columns are now ID, Revision, Created, State, Actions. The Revision column shows the clickable URL, truncated using CSS so it will at most fill up the table without going on multiple lines.
- When there is a version number, the columns are now ID, Version, Created, State, Actions
-
Update
src/components/Process/Workers/Versions/Summary.vue- When there is a revision URL, show the clickable URL, truncated using CSS
-
Update
WorkerRunDetails.vue- Remove the
refsClassmethod - The Git revision is now renamed Revision and shows a clickable truncated URL
- Remove the
-
Update
src/views/Process/Workers/Version.vue- Remove the
shortHashcomputed property - Remove the Author and References rows
- Rename the Commit field to Revision and have it show a clickable, non-truncated URL
- Remove the
-
Update
src/views/Process/Workers/Manage.vue- Add a new Repository field displaying the
repository_urlas a clickable URL
- Add a new Repository field displaying the
-
Update
src/components/Process/Workers/Versions/CreateForm.vue- Update
repository_idtorepository_urlin the repo check. - Creating worker versions on workers with repo URLs is still forbidden from the frontend, even though it might be allowed by the API.
- Update