[MGNLREST-175] Filtering by null date should be supported Created: 09/Mar/18  Updated: 03/Apr/18  Resolved: 29/Mar/18

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.1.1

Type: Improvement Priority: Trivial
Reporter: Oanh Thai Hoang Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1.5d
Original Estimate: 1d

Attachments: PNG File query-date-null-in-jcr.png     PNG File some-node-has-date-null.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Documentation update required:
Yes
Date of First Response:
Sprint: Saigon 139, Saigon 140
Story Points: 5

 Description   

Use case: Users want to query content whose date is null. It seems like we don't support it for now.

The figure below shows content in config workspace that have null lastModified.

Currently we can query content with null date.

 

 

 



 Comments   
Comment by Sang Ngo Huu [ 29/Mar/18 ]

Support new operation for filtering null:

  • magnoliaPublic/.rest/delivery/website/v2?mgnl:created[null]=true equivalent to mgnl:created IS NULL in JCR query
  • magnoliaPublic/.rest/delivery/website/v2?mgnl:created[null]=false equivalent to mgnl:created IS NOT NULL in JCR query

This operation supports all properties type

Generated at Mon Feb 12 06:57:22 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.