Re-imagining Label Reuse #1878
Replies: 3 comments 6 replies
-
I'm puzzled by some aspects to how we support label reuse (I'm calling them label sets for simplicity) in some scenarios. Foremost is how does a user indicate where a label set should apply? The current Horreum implementation uses The other puzzling point is how the user can define a label that derives from labelValues from the label set without adding to the label set. The best idea I've come with is to add the label set name to the label name in the extractor path |
Beta Was this translation helpful? Give feedback.
-
+1 as well on the "Label Sets" atm (or "Label Group"). I am just thinking loud here but what about this possible design:
Now users can associate to a Test, either individual Labels (building a sort of acyclic graph or pipeline) or a Label set that automatically includes a set of labels to be considered.
TBH I was thinking label sets as just handy set of labels, mainly to avoid users to explicitly associate each label one by one to a Test. Thus, a labelValue can be derived from a label (completely ignoring the fact that it might belong to a label set) |
Beta Was this translation helpful? Give feedback.
-
In current Horreum users can export their schemas and tests to json. Does Horreum plan to keep that option for users? The PoC design without label sets supports that option but if we introduce label sets with copy on reference then serialization might impact our design decisions. The use case I am considering is when a label outputs something that has a known shape and a user wants to use a label set on that output. For example, If a user defines a label "hyperfoil" with extractor "$.hyperfoil" they could want to apply the hyperfoil label set to the output of that label. |
Beta Was this translation helpful? Give feedback.
-
In light of #1499 and #1603 and the changes that are planned as a result of these discussion, we should take the time to re-imagine what "re-usable labels" look like.
Re-usable labels should attempt to resolve the issues with the current "Schema" implementation (#1603);
A number of use case present themselves wrt label re-use;
As a user of Horreum, I would like to be able to re-use previously defined labels, either for previous tests or standard labels for well know tools. Updates to the previously defined labels should be isolated and not affect my currently defined labels, but I should be amde aware of updates to copied labels. As sets of labels evolve, i.e. a newer version of a well used tool is released that changes the output, I should be able to use those label definitions in any tests that use that newer tool. I should not have to define which set of labels required to process a run when I upload a run.
As a user of Horreum, changes to Label definitions should automatically be reflected in all locations that the label is referenced, without me having to navigate to multiple configuration areas to redefine label usage
As a team manager, if there labels defined for a test, I should be able to define a set of labels that can be re-used for other tests in my team.
As a administrator of Horreum, I should be able to define sets of labels that can be used globaly by all teams.
Beta Was this translation helpful? Give feedback.
All reactions