uwblueprint / supportive-housing

🏘️ Supportive Housing Of Waterloo location management platform
6 stars 0 forks source link

Resident Directory Filter #205

Closed phamkelly17 closed 10 months ago

phamkelly17 commented 11 months ago

Notion task link

Resident Directory Filter

Implementation description

Steps to test

  1. Test endpoints on Postman
  2. Test individually all filters
  3. Test together

What should reviewers focus on?

Checklist

github-actions[bot] commented 11 months ago

Visit the preview URL for this PR (updated for commit 7bb09ea):

https://blueprintsupportivehousing--pr205-kelly-resident-direc-x79cmvva.web.app

(expires Sat, 06 Jan 2024 03:43:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f6bcdba7452bf82a6ec1a299c37d1bdff7870d09

braydonwang commented 11 months ago

Just wondering, is this the right endpoint url to call when we want to filter by date range but only provide a start date?

localhost:8080/residents?filters={"date_range":{"date_joined": "2023-11-23", "date_left": None}}
phamkelly17 commented 11 months ago

@braydonwang this is the correct endpoint:

http://localhost:8080/residents?filters={"date_range": ["2024-1-31", null]}