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

feat: expand listing filters #4628

Merged
merged 14 commits into from
Feb 17, 2025
Merged

feat: expand listing filters #4628

merged 14 commits into from
Feb 17, 2025

Conversation

mcgarrye
Copy link
Collaborator

@mcgarrye mcgarrye commented Feb 4, 2025

This PR addresses #(4542)

  • Addresses the issue in full
  • Addresses only certain aspects of the issue

Description

Adds the filters described in the ticket, as well as any missing filters in Doorway.
Logic has been alphabetized for read-ability. Unit tests were added for all filters. Should have no impact on existing functionality in Core, HBA or Doorway.

How Can This Be Tested/Reviewed?

Start up the backend API.
Using the OpenAPI, call the POST listings/list endpoint.
Adjust the filters to test each filter.
Note1: the search field at the bottom of the sample payload will prevent anything from being found if not removed or changed.
NOTE2: we do not have any guardrails with which comparisons are used for each case. So using = on a list or <= on a string or IN on a number may have unpredictable results or even 500 errors.

Happy path testing for public listings page and partners listing page.
For partners listing page, try the search and signing in as jadmin and partner.

Author Checklist:

  • Added QA notes to the issue with applicable URLs
  • Reviewed in a desktop view
  • Reviewed in a mobile view
  • Reviewed considering accessibility
  • Added tests covering the changes
  • Made corresponding changes to the documentation
  • Ran yarn generate:client and/or created a migration when required

Review Process:

  • Read and understand the issue
  • Ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates

@mcgarrye mcgarrye added the 2 reviews needed Requires 2 more review before ready to merge label Feb 4, 2025
Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 1515014
🔍 Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/67a28945f2e9800008fac24f
😎 Deploy Preview https://deploy-preview-4628--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 1515014
🔍 Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/67a28945130d4b0008a4e94d
😎 Deploy Preview https://deploy-preview-4628--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for bloom-public-seeds ready!

Name Link
🔨 Latest commit 1515014
🔍 Latest deploy log https://app.netlify.com/sites/bloom-public-seeds/deploys/67a2894566747200081b0692
😎 Deploy Preview https://deploy-preview-4628--bloom-public-seeds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit b0d135e
🔍 Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/67ae5d036e7e9400088ffc5c
😎 Deploy Preview https://deploy-preview-4628--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit b0d135e
🔍 Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/67ae5d034c399e0008071f2e
😎 Deploy Preview https://deploy-preview-4628--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for bloom-public-seeds ready!

Name Link
🔨 Latest commit b0d135e
🔍 Latest deploy log https://app.netlify.com/sites/bloom-public-seeds/deploys/67ae5d032ab6e10008adba4a
😎 Deploy Preview https://deploy-preview-4628--bloom-public-seeds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@ludtkemorgan ludtkemorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm halfway done with the review and will finish tomorrow!

Copy link
Collaborator

@YazeedLoonat YazeedLoonat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I think changes to the DTO caused some loss in typing in the swagger file that needs addressing though

@YazeedLoonat YazeedLoonat added needs changes The author must make changes and then re-request review before merging and removed 2 reviews needed Requires 2 more review before ready to merge labels Feb 13, 2025
@mcgarrye mcgarrye added 2 reviews needed Requires 2 more review before ready to merge and removed needs changes The author must make changes and then re-request review before merging labels Feb 13, 2025
Copy link
Collaborator

@YazeedLoonat YazeedLoonat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YazeedLoonat YazeedLoonat added 1 review needed Requires 1 more review before ready to merge and removed 2 reviews needed Requires 2 more review before ready to merge labels Feb 17, 2025
@ludtkemorgan ludtkemorgan added ready to merge Should be applied when a PR has been reviewed and approved and removed 1 review needed Requires 1 more review before ready to merge labels Feb 17, 2025
@mcgarrye mcgarrye merged commit c2370ed into main Feb 17, 2025
24 checks passed
@mcgarrye mcgarrye deleted the 4542/expand-listing-filters branch February 17, 2025 21:59
@mcgarrye mcgarrye removed the ready to merge Should be applied when a PR has been reviewed and approved label Feb 17, 2025
mcgarrye added a commit to housingbayarea/bloom that referenced this pull request Feb 18, 2025
* feat: expand listing filters

4542

* feat: test for expanded listing filters

4542

* feat: remove unused imports

4542

* feat: add e2e tests and corrections

4542

* feat: add test for search

4542

* feat: correct linting and small changes

4542

* feat: make test more unique

4542

* feat: increase response limit

4542

* feat: always filter by jurisdiction

4542. This will reduce flakyness

* feat: fix swagger file

5442

* feat: separate dtos

4542
mcgarrye added a commit to metrotranscom/doorway that referenced this pull request Feb 18, 2025
* feat: expand listing filters

4542

* feat: test for expanded listing filters

4542

* feat: remove unused imports

4542

* feat: add e2e tests and corrections

4542

* feat: add test for search

4542

* feat: correct linting and small changes

4542

* feat: make test more unique

4542

* feat: increase response limit

4542

* feat: always filter by jurisdiction

4542. This will reduce flakyness

* feat: fix swagger file

5442

* feat: separate dtos

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

Successfully merging this pull request may close these issues.

3 participants