Closed kshitijrajsharma closed 2 years ago
Thank you Kshitij and the team
@itskshitiz321 - thanks for the prompt response 🙏 - does this delta treats 31 days as the accepted time difference for the input time stamps?
cc @d-rita
Yes it will check how many days are there in between and it will treat based on the no of days in a respective month , for example for may in 2022 it will validate 31 days and for current month (June ) it will validate 30 days @ramyaragupathy
If a person queries mid-month, say from 15th May to 15th June, what will be the accepted range of days: 30 or 31 days? @itskshitiz321
@d-rita It will be based on the no of days in first month during querying if user queries from 15th of may then validation will be of 31 days since may ended on 31
Uses python relativedelta util , Details can be found here
Testing param to osm-users/statistics
{"userId":752045,"fromTimestamp":"2022-05-01T00:00:00Z","toTimestamp":"2022-05-31T11:59:00Z","projectIds":[],"hashtags":[]}
Expected result : Validation for Above parameter should pass with current fix