Project

General

Profile

Bug #18811

Searching for future dates by day is not relative to today

Added by Thomas McKay about 5 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Today is: 2017-03-06 (day 65)
Database record is: 2017-06-19 (day 170)

Search success: expires < "172 days"
Search zero results: expires < "171 days"
Search zero results: expires < "Today + 175 days"

As a user, my expectation is that date searches are relative to today. Trying "Today +" syntax also yields zero results.

https://github.com/wvanbergen/scoped_search/issues/162

History

#1 Updated by Thomas McKay about 5 years ago

  • Bugzilla link set to 1429629

#2 Updated by Ohad Levy about 5 years ago

can you provide more examples on how you want to use it? I wonder if there are easy workarounds to your issue.

#3 Updated by Thomas McKay about 5 years ago

The use case is to search for subscriptions expiring in less than 30 days, as an example.

Time is normally thought of as relative to now. So when I say, "Expiring in less than 30 days" that implies a search for objects with an expiration falling within the window of now to now+30days. When I say, "Expired within the last 30 days" that implies an expiration falling within now to now-30days.

#4 Updated by Dominic Cleal about 5 years ago

  • Project changed from Foreman to Katello
  • Category deleted (Search)

#5 Updated by Tomer Brisker about 5 years ago

https://github.com/wvanbergen/scoped_search/pull/163 has been merged, will need to get a new version of scoped search released to get it out.

#6 Updated by Eric Helms about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Thomas McKay
  • Legacy Backlogs Release (now unused) set to 211

#7 Updated by Justin Sherrill about 5 years ago

  • Status changed from Assigned to Resolved
  • Legacy Backlogs Release (now unused) changed from 211 to 166

This should be resolved by new scoped search

Also available in: Atom PDF