GoogleCloudPlatform / professional-services

Common solutions and tools developed by Google Cloud's Professional Services team. This repository and its contents are not an officially supported Google product.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Support Slackbot breaks with case escalations

TheLanceLord opened this issue · 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