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

Add schema type option for module search constraints #1132

Open
ahayes opened this issue Feb 16, 2023 · 0 comments
Open

Add schema type option for module search constraints #1132

ahayes opened this issue Feb 16, 2023 · 0 comments
Labels
Enhancement Desired improvement to design or implementation that adds value. good first issue An issue deemed good for new contributors to the project JavaScript Nunaliit JavaScript related

Comments

@ahayes
Copy link
Member

ahayes commented Feb 16, 2023

Nunaliit's search UI is currently installed by default and searches all documents.

Currently, an Atlas Builder can disable and/or constrain this search behaviour by adding a search object whose contents are described in the Module Document documentation thusly:

If specified, this object is used to provide configuration information to the search service. The attribute "disabled" (boolean) can be defined, which specifies if the search bar will be included in the display of the module. The attribute "constraint", if specified, can be a layer string (i.e. a single layer constraint), an array of layer constraints, or an object with a type of either "layer" or "model" with an array of strings which identify the constraint imposed on the search results (either "layerNames" or "sourceModelIds"). E.g. If layer identifiers are specified, then only documents posted on those layers are reported in search results.

Being able to also constrain by one or more schemas would be helpful. For backwards compatibility, this should be implemented as a new type choice of schema for the constraint object with a schemaNames array.

@ahayes ahayes added Enhancement Desired improvement to design or implementation that adds value. good first issue An issue deemed good for new contributors to the project JavaScript Nunaliit JavaScript related labels Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Desired improvement to design or implementation that adds value. good first issue An issue deemed good for new contributors to the project JavaScript Nunaliit JavaScript related
Projects
None yet
Development

No branches or pull requests

1 participant