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

P2P - Implement Error Handling class #1015

Closed
f-odhiambo opened this issue Jan 28, 2022 · 8 comments
Closed

P2P - Implement Error Handling class #1015

f-odhiambo opened this issue Jan 28, 2022 · 8 comments
Labels

Comments

@f-odhiambo
Copy link
Contributor

f-odhiambo commented Jan 28, 2022

Manage any errors brought about by

  1. Loss Network connectivity
  2. Failed sync operation
  3. Unauthorised sync
  4. Missing fields
  5. Invalid data types/formats
  6. Failed updated during PATCH

And report back either error message or/and status code

@Rkareko
Copy link
Contributor

Rkareko commented May 17, 2022

@f-odhiambo @dubdabasoduba could you give further information on what is required for this ticket.

@dubdabasoduba
Copy link
Member

@Rkareko @ekigamba I think we need the following

  • Gracefully handle all the errors that might occur in the whole P2P process i.e during discovery, paring and data transfer.
  • Provide the appropriate messages in case fatal errors occur.
  • Provide the correct informational messages in case the following things are not available.
    • WifI is not turned on
    • Wifi is connected to a network
    • Wifidirect is not enabled.
  • Could we update the main P2P page to show the requirements instructions for the users? @HenryRae any thoughts?

@pld
Copy link
Member

pld commented May 17, 2022

Are these errors getting thrown by / is this an issue with fhircore or is it with the p2p library?

It might be reasonable for the p2p library to catch any exception the code it raises and throw it's own exception with error messaging, then fhircore can only concern itself with catching the p2p exception

@Rkareko
Copy link
Contributor

Rkareko commented May 17, 2022

@Rkareko @ekigamba I think we need the following

  • Gracefully handle all the errors that might occur in the whole P2P process i.e during discovery, paring and data transfer.

  • Provide the appropriate messages in case fatal errors occur.

  • Provide the correct informational messages in case the following things are not available.

    • WifI is not turned on
    • Wifi is connected to a network
    • Wifidirect is not enabled.
  • Could we update the main P2P page to show the requirements instructions for the users? @HenryRae any thoughts?

@dubdabasoduba thoughts on gracefully handling errors : -

  1. On activity.onPause call diconnect() if already connected. This will disconnect wifi-direct.
  2. Show error message toast / notification
  3. Exit P2P activity so that resources are cleaned up

@Rkareko
Copy link
Contributor

Rkareko commented May 18, 2022

@Rkareko @ekigamba I think we need the following

  • Gracefully handle all the errors that might occur in the whole P2P process i.e during discovery, paring and data transfer.

  • Provide the appropriate messages in case fatal errors occur.

  • Provide the correct informational messages in case the following things are not available.

    • WifI is not turned on
    • Wifi is connected to a network
    • Wifidirect is not enabled.
  • Could we update the main P2P page to show the requirements instructions for the users? @HenryRae any thoughts?

@dubdabasoduba thoughts on gracefully handling errors : -

  1. On activity.onPause call diconnect() if already connected. This will disconnect wifi-direct.
  2. Show error message toast / notification
  3. Exit P2P activity so that resources are cleaned up

Sub tasks

@Rkareko
Copy link
Contributor

Rkareko commented May 18, 2022

  • Provide the appropriate messages in case fatal errors occur.

@dubdabasoduba could you provide further clarification on this point. When fatal errors occur that would mean the app has already crashed.

@Rkareko
Copy link
Contributor

Rkareko commented May 18, 2022

  • Could we update the main P2P page to show the requirements instructions for the users? @HenryRae any thoughts?

@dubdabasoduba @HenryRae please provide designs / way forward on how to implement this.

@pld
Copy link
Member

pld commented Jul 7, 2023

replace w/new issue after discussion

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

No branches or pull requests

4 participants