question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple value support for JQL `commitProperty`

See original GitHub issue

Currently there is no way to query on a commit property with multiple values using “IN” semantics, instead you have to query multiple times which is very inefficient:

Sets.newHashSet("1b2e", "8f32").stream()
    .flatMap(v -> javers.findSnapshots(QueryBuilder
        .byClass(myClass)
        .withCommitProperty("traceId", v)
        .build()).stream());

It would be much nicer to be able to simply query by multiple property values, for example:

javers.findSnapshots(QueryBuilder
    .byClass(myClass)
    .withCommitProperties("traceId", Sets.newHashSet("1b2e", "8f32"))
    .build());

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
antchcommented, Nov 5, 2019

This seems like a straight-forward enhancement so I could probably contribute, but unfortunately it has to be outside of work time.

0reactions
bartoszwalacikcommented, Oct 18, 2021

released in 6.4.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

JQL (JaVers Query Language) examples
Child-value-object — JaVers loads all child Value Objects owned by selected Entities. ... Single query can specify more than one commit property.
Read more >
Advanced search reference - JQL operators - Atlassian Support
The " IN " operator is used to search for issues where the value of the specified field is one of multiple specified...
Read more >
javers - Bountysource
Currently I have a commit property I wish to use as filter, ... Mongodb supports multiple documents transaction of multiple collections starting version...
Read more >
Write JQL Query | Mixpanel Developer Docs
This reference documentation for the JQL API makes it possible for Mixpanel users to write JavaScript ... reduce() - aggregating many input values...
Read more >
JQL - Search for value in multiple fields by typing it once
Not sure if it is not too wide approach but using simply text ~ "value". searches in all searchable text fields in issues....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found