Skip to content

Show representative of relations in custom dashboard entities (List widget) #3532

@antoinemzs

Description

@antoinemzs

Context

In the List widget, we can select any dimension that may have a number of relations tied to it (the *_side fields). These are currently just opaque IDs, and appear as-is in the list display.

Use case

We want to not see the opaque IDs, but the representative of these IDs. However, we still need the opaque IDs available so that we can craft queries, URLs... with them.

Current Workaround

Not implemented: we could resolve the IDs by querying the regular OpenBAS API for the relevant entities. Not favoured as a long term solution.

Proposed Solution

Introduce a standard whereby *_side fields should be implemented as either of type

Variant A:
EsBase or Set or List to benefit from the structure's fields base_id and base_representative

Pro: standard structure in the ES related subsystem.
Con: not the primary use case for the EsBase struct.

Variant B:
EsSide with only two fields: id and representative

Pro: tailored for the use case
Con: another struct in the data model.

We would implement variant B.

@RomuDeuxfois

Metadata

Metadata

Assignees

Labels

featureuse for describing a new feature to developneeds triageuse to identify issue needing triage from Filigran Product team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions