Skip to content

refactor: fetching CI jobs

Tomas Vik requested to merge 268-refactor-fetching-jobs into main

This MR renames and restructures fetchLastJobsForCurrentBranch method + adds a test.

The fetchLastJobsForCurrentBranch method was named incorrectly (it was fetching jobs for the pipeline from the argument) and it was doing postprocessing (sorting and deduplicating) which is only desirable in the status bar:

sidebar_assignees_widget_vue___gitlab_and_fish__Users_tomas_workspace_code

We are about to fetch jobs for #268 (closed) where we want to process them differently.

Related to #268 (closed)

Merge request reports