Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composing queries from sub-queries #5

Open
Conal-Tuohy opened this issue Sep 22, 2023 · 2 comments
Open

Composing queries from sub-queries #5

Conal-Tuohy opened this issue Sep 22, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Conal-Tuohy
Copy link
Owner

(from Martin Bush)

Sometimes query results are cluttered up with racing news; race results, racing form, etc, Horse names can be basically anything, and racing has always been big in Australia.

If you want to exclude racing content, It's possible to use negative queries to identify and exclude a lot of this stuff, but being able to express that "racing" query in a form that could be composed into a large query is potentially useful.

It suggests the need to be able to express sub-queries in a serializable form that can be named and saved, shared, etc, and integrated using a query-builder UI into a larger query by reference.

Queries could be persisted in users' browser local storage, or as cookies.

@Conal-Tuohy Conal-Tuohy self-assigned this Sep 22, 2023
@Conal-Tuohy Conal-Tuohy added the enhancement New feature or request label Sep 22, 2023
@Conal-Tuohy
Copy link
Owner Author

Such subqueries would need to be integrated into the jQuery-QueryBuilder framework:

One option:

  • a virtual "field" corresponding to the record as a whole, i.e. this, perhaps named "Item" or "Entire record")
  • a pair of operators "matches" and "doesn't match"
  • a value list containing the names of the various saved subqueries

e.g. this item doesn't match racing

Another option:

  • two virtual fields: matching and excluding
  • a drop-down list of unary operators consisting of the names of the saved subqueries

e.g. excluding racing

@Conal-Tuohy
Copy link
Owner Author

There should be a button which a user can use to transclude a subquery (as a group) if they need to customize it specifically for its role in the main query

@Conal-Tuohy Conal-Tuohy transferred this issue from Conal-Tuohy/TroveProxy Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant