GoogleCloudPlatform/professional-services

Google Cloud Support Slackbot breaks with case escalations

TheLanceLord opened this issue · 0 comments

/GoogleCloudPlatform/professional-services/google-cloud-support-slackbot/support_case.py for @TheLanceLord

When fetched with the Cloud Support API, escalated cases aren't returning the displayName field in the Case Object. Having a Support Engineer or member of the account team go into the escalated case and adding a name to the field and then redeploying the bot fixes the issue. A longterm fix is needed to:

  1. Check that fields exist in the returned Case object and assign them empty values if they don't
  2. Nest the case updates process in a while loop with a try condition so it can auto-heal if there is an issue without the need to redeploy the bot