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

How does a user create a Definition #13

Open
eebs opened this issue Feb 25, 2020 · 0 comments
Open

How does a user create a Definition #13

eebs opened this issue Feb 25, 2020 · 0 comments

Comments

@eebs
Copy link
Contributor

eebs commented Feb 25, 2020

The Definition object holds all the information needed to process the parsed input string and create a set of clauses that are used to query the provided relation.

Creating a definition by hand is tedious, and would benefit from some abstraction. How can we allow a developer or designer to define the definition for an index table? Some sort of minimal DSL would allow us to define abstractions for useful behavior. We could provide methods like filter that would create an ExpressionFilter, or a method like search to create a KeywordSearch. A user would be able to specify options or configuration using the DSL.

This is closely tied to #12 where we would like to allow a user to name a filter such that it could be referenced when generating a UI and enumerate a set of options for the filter.

In eeb51ac I removed the basic DSL we had been creating as it was not the right abstraction. This may be a good starting point for this issue.

Whatever DSL we create should ultimately produce a Query::Definition. Using the DSL should not be required, but should provide a significantly improved experience over defining the Definition manually.

@eebs eebs added this to the 0.1 milestone Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant