North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

/users/{userId}/tasks Pagination #265

Closed unicornsleuth closed 3 years ago

unicornsleuth commented 3 years ago

Closes #259

Format of query string now accepted: /users/{userId}/tasks?count={count}&page={page}

note: failing to pass in the count or page values will return 1st 10

Other Changes: fix caching in /users

To Test:

kieranmiguel commented 3 years ago

Great stuff. I noticed the cache_toggle is currently set to on/off in your code. Personally I don't know how to access the key vault, but I know it was initially set as true/false so could cause issues after deployment. Since you did all the work I am going to try to set up redis queries so we don't need to expire caches in a time limit, and can instead expire based on taskid. I'll message if I get that working.