department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
17 stars 2 forks source link

Investigate appointment cancellation permissions error #4652

Closed kpethtel closed 1 year ago

kpethtel commented 1 year ago

This sentry error contains the following error message implying that the user can't cancel the appointment, but the mobile app restricts cancellation based on the cancellable attribute. It seems odd that we'd be receiving these errors if the appointment is cancellable.

[
{
code: VAOS_409A, 
detail: access to this clinic is restricted to only privileged users, 
href: None, 
id: None, 
links: [], 
meta: None, 
source: {
vamf_body: {"message":"access to this clinic is restricted to only privileged users"}, 
vamf_status: 409, 
vamf_url: https://internal-dsva-vagov-prod-fwdproxy-2075821597.us-gov-west-1.elb.amazonaws.com:4463/vaos/v1/patients/1018881410V044606/appointments/13883149
}, 
status: 409, 
title: Conflict
}
]

http://sentry.vfs.va.gov/organizations/vsp/issues/14995/events/276377bc9e954218b1d8f58ef828f977/?project=3&query=is%3Aunresolved+mobile&statsPeriod=14d

Expected outcome: Talk to VAMF and determine whether we can avoid attempting to cancel these appointments based on the appointment information we receive from VAMF.

Tonksthebear commented 1 year ago

It looks like this issue is not unique to Mobile, web also gets this issue. In this thread, it seems the issue may be coming from Vista allowing cancellation but privileges for the proxy user aren't configured properly. There is no way to determine this ahead of time.

We could potentially talk to the Identities team to see if it's solvable, but Steve implied this is a lost cause.

It seems there isn't much to do in regards to solving this ticket, and/or the solution needs to come from another team.