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

Fixed facility search offset #4004

Closed
wants to merge 1 commit into from

Conversation

GokulramGHV
Copy link
Member

Fixes #4003

Proposed Changes

  • Fixed the issue in facility search where, when a particular facility is searched for it shows no facilities found even when the total no. of facilities is greater than zero.

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@GokulramGHV GokulramGHV requested a review from a team November 8, 2022 13:33
@GokulramGHV GokulramGHV requested a review from a team as a code owner November 8, 2022 13:33
@vercel
Copy link

vercel bot commented Nov 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
care-storybook ✅ Ready (Inspect) Visit Preview Nov 8, 2022 at 1:35PM (UTC)

@netlify
Copy link

netlify bot commented Nov 8, 2022

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 149e245
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/636a5ac0b78e46000818cb1f
😎 Deploy Preview https://deploy-preview-4004--care-egov-staging.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 settings.

@sonarcloud
Copy link

sonarcloud bot commented Nov 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nihal467
Copy link
Member

nihal467 commented Nov 9, 2022

test approved

@@ -98,7 +98,7 @@ export const HospitalList = (props: any) => {
facility_type: qParams.facility_type,
kasp_empanelled: qParams.kasp_empanelled,
};

if (params.search_text) params.offset = 0;
Copy link
Member

Choose a reason for hiding this comment

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

@GokulramGHV this only works for the search by name filter and will not work for others, so why not add a page parameter as 1 when we make a request related to filters

Copy link
Member

@rithviknishad rithviknishad Nov 9, 2022

Choose a reason for hiding this comment

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

@GokulramGHV also checkout PR #4009
The page offset still remains to 2 :/

image

cc: @khavinshankar

Copy link
Member

Choose a reason for hiding this comment

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

@GokulramGHV @khavinshankar @nihal467 the changes suggested here are fixed in #4017.
Merging this PR to develop will have no effect once #4017 is merged. since the reset method used in this PR is not based on query parameters. The changes were overridden in #4017

@khavinshankar
Copy link
Member

Closing this pr, ref: #4017

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

Successfully merging this pull request may close these issues.

Facility search not working properly
4 participants