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

Fix feed in patient consultation #6753

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Fix feed in patient consultation #6753

merged 1 commit into from
Nov 29, 2023

Conversation

khavinshankar
Copy link
Member

@khavinshankar khavinshankar commented Nov 29, 2023

WHAT

The Feed in the patient consultation was not working when there was no hostname present in asset and had to fallback to the facility's middleware hostname.

This was happening because the state was not updated properly in the frontend after the data was fetched.

Proposed Changes

@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

HOW

🤖[deprecated] Generated by Copilot at d5bf7c7

  • Change the facilityMiddlewareHostname variable to a state variable and add a setter function (link). This allows the component to re-render when the middleware address changes and to pass it as a prop to the ConsultationCard component.

@khavinshankar khavinshankar requested a review from a team as a code owner November 29, 2023 09:29
Copy link

vercel bot commented Nov 29, 2023

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

Name Status Preview Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview Nov 29, 2023 9:29am

Copy link

netlify bot commented Nov 29, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit d5bf7c7
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6567048f1334d90007a15232
😎 Deploy Preview https://deploy-preview-6753--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 configuration.

Copy link

cypress bot commented Nov 29, 2023

Passing run #1641 ↗︎

0 87 0 0 Flakiness 0

Details:

Fix feed in patient consultation
Project: CARE Commit: d5bf7c7d52
Status: Passed Duration: 02:09 💡
Started: Nov 29, 2023 9:33 AM Ended: Nov 29, 2023 9:35 AM

Review all test suite changes for PR #6753 ↗︎

@nihal467
Copy link
Member

LGTM

@gigincg gigincg merged commit 9b2d947 into develop Nov 29, 2023
65 checks passed
Copy link

@khavinshankar We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

@gigincg gigincg deleted the fix-patient-feed branch November 29, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review P1 breaking issue or vital feature tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

patient camera feed not showing up
5 participants