User tests: Successful: Unsuccessful:
added the option to filter users by:
call JROOT_URL/api/index.php/v1/users?filter[groupid]=8
call JROOT_URL/api/index.php/v1/users?filter[lastVisitDateStart]=2020-01-29T20:36:01Z
call JROOT_URL/api/index.php/v1/users?filter[search]=myName
call JROOT_URL/api/index.php/v1/users?filter[state]=0
call JROOT_URL/api/index.php/v1/users?filter[active]=1
call JROOT_URL/api/index.php/v1/users?filter[registrationDateStart]=2018-01-29T20:36:01Z
call JROOT_URL/api/index.php/v1/users?filter[registrationDateEnd]=2020-01-29T20:36:01Z
or any combination like :
JROOT_URL/api/index.php/v1/users?filter[groupid]=8&filter[state]=0
etc
Expected values for registrationDateStart , registrationDateEnd and lastVisitDateStart,lastVisitDateEnd are:
2020-03-29T20:36:01Z
2020-03-29T20:36:01+00:00
the api response is filtered
N/A
yes
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
I have tested this item {{base_path}}/api/index.php/v1/users?filter[status]=1
{{base_path}}/api/index.php/v1/users?filter[status]=0
return the same list of users
{{base_path}}/api/index.php/v1/users?users?filter[registrationdate]=never
returns a list of users who have the registration date
Same list of 3 users is given from
{{base_path}}/api/index.php/v1/users?users?filter[lastvisitdate]=never
The example is incorrect. [status]
should be [state]
.
See comment in testing instructions:
never (make sense only for lastvisitdate)
JROOT_URL/api/index.php/v1/users?filter[groupid]=system&filter[status]=0
This too please.
filter[groupid]=system
Should be integer.
I have tested this item
re tested. it works!
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Category | ⇒ | Administration com_users |
this needs to be retested
cause we have now differnt and better filter for: registrationDate/lastVisitDate
Status | Ready to Commit | ⇒ | Pending |
I have tested this item
Start & End inverted ;)
This example output the users:
{{base_path}}/api/index.php/v1/users?filter[lastVisitDateEnd]=2010-04-18T14:52:20Z&filter[lastVisitDateStart]=2050-04-18T14:52:20Z
If we have Start < End doesn't :(
I have tested this item
not work
JROOT_URL/api/index.php/v1/users?filter[lastVisitDateStart]=2020-01-29T20:36:01Z
work if
inverted Date with Start
JROOT_URL/api/index.php/v1/users?filter[lastVisitStartDate]=2020-01-29T20:36:01Z
idem for
JROOT_URL/api/index.php/v1/users?filter[registrationDateStart]=2018-01-29T20:36:01Z
JROOT_URL/api/index.php/v1/users?filter[registrationDateEnd]=2020-01-29T20:36:01Z
Labels |
Removed:
?
|
we have had a live debug sesion with the help of @Razzo1987
now should be fixed
please retest @Razzo1987
I have tested this item
good !
I have tested this item
Now Start & End works correctly.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-04-19 15:04:12 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
I have tested this item✅ successfully on 893d051
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28451.