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

"Contains data files" query rule #1548

Closed
laurenwalker opened this issue Oct 22, 2020 · 1 comment
Closed

"Contains data files" query rule #1548

laurenwalker opened this issue Oct 22, 2020 · 1 comment
Assignees
Labels
enhancement Portal Editor query builder relates to the QueryBuilderView, used in the EditCollecionView special rule UI Special interfaces used for abstracted rules in the Query Builder
Milestone

Comments

@laurenwalker
Copy link
Member

The documents:* filter is used to find metadata docs that document another object, which effectively means finding only data packages that contain data objects in addition to metadata objects. This now shows up in the query builder as this:

Screen Shot 2020-10-22 at 2.20.12 PM.png

We should build a special rule/filter View for this particular rule

@robyngit robyngit added query builder relates to the QueryBuilderView, used in the EditCollecionView special rule UI Special interfaces used for abstracted rules in the Query Builder labels Oct 25, 2020
@robyngit
Copy link
Member

Note that we want both a special UI for users to build a "Contains data files" true/false rule, and to keep the documents field in the list of metadata fields a user can select from.

robyngit added a commit that referenced this issue Jan 12, 2021
- Add a "Contains data files" query field that allows "is true" and "is false" options, but which searches for "documents:*" behind the scenes. Keep the "Data Object Identifier" (also "documents") field in the list of options.
- Add a "Year of data collection" query field that combines beginDate and endDate (and otherwise hide beginDate and endDate)
- Make these additional fields configurable in the AppModel
- Improve some of the JSDocs in QueryBuilder files

Relates to issues #1564, #1548
@laurenwalker laurenwalker added this to the 2.15.0 milestone Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Portal Editor query builder relates to the QueryBuilderView, used in the EditCollecionView special rule UI Special interfaces used for abstracted rules in the Query Builder
Projects
None yet
Development

No branches or pull requests

2 participants