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

Adding proper error message for Camera config page #7696

Closed
wants to merge 6 commits into from

Conversation

hrit2773
Copy link
Contributor

@hrit2773 hrit2773 requested a review from a team as a code owner April 24, 2024 07:53
Copy link

vercel bot commented Apr 24, 2024

@hrit2773 is attempting to deploy a commit to the Open Healthcare Network Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

netlify bot commented Apr 24, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 957ffbf
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/663a386ed0f1cd00081da706
😎 Deploy Preview https://deploy-preview-7696--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.

@hrit2773
Copy link
Contributor Author

@nihal467 updated the error message to wrong configuration credentials. can you plz review this

@hrit2773
Copy link
Contributor Author

@nihal467 can i get a review on this PR is the cypress test failing due to timeout issues

@nihal467
Copy link
Member

nihal467 commented May 7, 2024

LGTM

Comment on lines +161 to +165
if (key === "operateAsset") {
Notification.Error({
msg: "Wrong Middleware Hostname...!",
});
} else {
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a hack. Also, I thought we moved to useQuery. Please check src/Utils/request/useQuery.ts. If the middleware API calls still use fireRequest, please consider refactoring it to useQuery.

cc: @rithviknishad

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@khavinshankar the middleware api call uses fire request.. of course I can change it to useQuery if @rithviknishad agrees to it

Copy link
Member

Choose a reason for hiding this comment

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

The existing usages of operateAsset was hard to switch to using useQuery/request as there were places where we were passing the redux's dispatch as params to the functions inside it.

However, switching to newer camera feed components would solve the issue as it is not using the deprecated operateAsset. (Eg: #7654)

The newer camera feed components handles the error messages as expected and wouldn't have this underlying issue in the first place.

@hrit2773 Do you want to switch to using the newer camera feed components in the asset config page? If yes, you can make a separate PR.

@nihal467
Copy link
Member

@hrit2773 any update on the PR

@bodhish
Copy link
Member

bodhish commented Sep 20, 2024

Closing as we haven't moved ahead.

@bodhish bodhish closed this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add proper error message for Camera configuration page
5 participants