Skip to content

Add Vuex action to fetch dependencies via GraphQL

Context

As a first step to migrate the frontend for the group-level dependency list, we decided to fetch data from GraphQL.

This can be done on a Vuex-action level (here), which allows making the change with a small potential impact and also applying a feature flag nicely.

graph TD
    B{Feature Flag enabled?}
    B -->|Yes| C[GraphQL Action]
    B -->|No| D[Existing REST Action]
    
    C --> E[GraphQL Query]
    E --> F[Process GraphQL Response]
    F --> G[Update Store]
    
    D --> H[REST API Call]
    H --> I[Process REST Response]
    I --> G
    
    G --> J[Update UI]
    
    subgraph "New Implementation"
        C
        E
        F
    end
    
    subgraph "Existing Implementation"
        D
        H
        I
    end

Implementation Plan

Edited by David Pisek