Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonapi "Calculate_delta_date" issue #30

Open
siyamalan opened this issue Apr 13, 2019 · 2 comments
Open

jsonapi "Calculate_delta_date" issue #30

siyamalan opened this issue Apr 13, 2019 · 2 comments

Comments

@siyamalan
Copy link

siyamalan commented Apr 13, 2019

Steps to reproduce

I tried different request parameters "today, yesterday this-week, this-month this-year" to extract analysis request data

I entered below url
"http://website-address/lims/@@API/senaite/v1/search?portal_type=AnalysisRequest&children=yes&recent_modified=today

Current behavior

Getting
{ "_runtime": 0.0014731884002685547, "message": "'module' object has no attribute 'calculate_delta_date'", "success": false }

Expected behavior

I should be getting data based on my request parameters as described in https://plonejsonapiroutes.readthedocs.io/en/latest/api.html.
"recent_modified=today" request parameter is not working

Not sure if I should input "today" under recent_modified or something else

@ramonski
Copy link
Contributor

Hello @siyamalan, this was previously fixed here: #26
Can you please use the latest master branch and confirm?
Thanks

@siyamalan
Copy link
Author

siyamalan commented Apr 13, 2019

Thanks ramonksi
I am getting what I am exactly expecting for http://localhost:8080/lims/@@API/senaite/v1/search?portal_type=AnalysisRequest&recent_created=today

values today, yesterday, this-month work fine.
Today gives everything created today,
Yesterday gives everything created yesterday and today
this-month gives everything for entire month.

Noticed few more issues that senaite.jsonapi may not have anything to do with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants