Skip to content

DynamicLabels include non-dynamic label #2619

@SaschaPeukert

Description

@SaschaPeukert

Given:

@Node("Metric")
public abstract class Metric {
	@DynamicLabels
    public List<String> dynamicLabels;
	
	...
}

@Node("Counter")
@Value
public class CounterMetric extends Metric {
	...
}

And a test something like this:

...

var c = new CounterMetric(...);
c.dynamicLabels.add("Test");
save(c)
...
var retrievedCounter = load(counter)
...

It appears that dynamicLabels now include "Test" and "Counter" which is not ideal.

Seen with spring-boot 2.6.13 which uses spring-data-neo4j 6.2.9, I think

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions