MMBase

Daymarker filter in list works different from bridge Queries

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6, 1.9.7, 2.0.0
  • Component/s: Editwizards
  • Description:
    Hide
    When you search on age (daymarks) in list,jsp, the query creates searches for the first daymark equal or newer than the current day.

    When you search on age (daymarks) in bridge, the query creates searches for the first daymark equal or older than the current day.

    The result is that if (for some reason) a daymark was not created for today, querying in the editwizards on 'today' would give unexpected results (as in that case a daymark id of 9999 is used, which is unpredictable).
    Querying in bridge would instead use the daymark of yesterday, which provides a better (if yet inaccurate) result.

    For consistency and to pervent unpredictable results on queries, the editwizards query should work the same as the bridge.


    Show
    When you search on age (daymarks) in list,jsp, the query creates searches for the first daymark equal or newer than the current day. When you search on age (daymarks) in bridge, the query creates searches for the first daymark equal or older than the current day. The result is that if (for some reason) a daymark was not created for today, querying in the editwizards on 'today' would give unexpected results (as in that case a daymark id of 9999 is used, which is unpredictable). Querying in bridge would instead use the daymark of yesterday, which provides a better (if yet inaccurate) result. For consistency and to pervent unpredictable results on queries, the editwizards query should work the same as the bridge.

Activity

Hide
Pierre van Rooden added a comment - 2011-07-22 10:40
Changed list.jsp in editwizards to use the createAgeConstraint method in org.mmbase.bridge.queries
Show
Pierre van Rooden added a comment - 2011-07-22 10:40 Changed list.jsp in editwizards to use the createAgeConstraint method in org.mmbase.bridge.queries

People

Dates

  • Created:
    2011-07-22 10:38
    Updated:
    2011-07-28 14:15
    Resolved:
    2011-07-22 10:40