Bug 1295529
| Summary: | REST Query API: startDate and endDate parameters do not work | ||
|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Alessandro Lazarotti <alazarot> |
| Component: | Business Central | Assignee: | Shelly McGowan <smcgowan> |
| Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.3.0 | CC: | alazarot, kverlaen, lpetrovi, rsynek, smcgowan, tradej |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1260881 | Environment: | |
| Last Closed: | 2020-03-27 19:41:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1260881 | ||
| Bug Blocks: | |||
|
Description
Alessandro Lazarotti
2016-01-04 18:44:59 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1260881#c7 "For 6.3, which has not yet been released, I will try to change the behaviour to do hat Radovan suggests, which is a much more logical and user-friendly variant (submitting "yy-MM-DD" retrieves _all_ process instances retrieved that day, or in other words, is equivalent to startDate_min="yy-MM-DD"&&startDate_max="yy-MM-DD+1" )." Marco, maybe what I am going to write is unnecessary, but just to make it clear - the idea was it should work on every component of the datetime expression, e.g.: "yy-MM-DD" => "I don't care about hours, minutes nor seconds" "yy-MM" => "I don't care even about days, get me processes of the given month" The same goes for hours, minutes, seconds. Thanks! Radovan, Your specification is incomplete: could you specify the feature more? Should users be able to submit only one number and have the REST service know which part of the date this specifies? For example, if the user does "startDate=14", is that by default the year? If you're going to specify a feature, please specify *exactly* what you want! Otherwise, this will become rather frustrating for both of us... After a discussion on IRC we agreed on the following behaviour: "yy-MM-DD_HH_mm_ss.SSS" => returns all processes started exactly that time, including milliseconds "yy-MM-DD" => returns all processes (or other entities) started that day, regardless of hours,minutes,etc. "yy-MM-DD_HH_mm_ss" => returns all processes started that time, regardless of milliseconds, i.e. all instances started between ss.000 and ss.999 "HH_mm_ss" => all processes started that time today. Unfortunately, this feature will not be included in product 6.3. |