digma-ai / digma-intellij-plugin

Digma JetBrains plugin
MIT License
31 stars 7 forks source link

Invalid response message on environment creation failure #2544

Open kshmidt-digma opened 2 days ago

kshmidt-digma commented 2 days ago

Code place with the error: https://github.com/digma-ai/digma-intellij-plugin/blob/main/src/main/kotlin/org/digma/intellij/plugin/ui/recentactivity/RecentActivityService.kt#L132

Current behaviour: Message to be sent by the plugin:

window.postMessage({
  "payload": ,
  "type": "digma",
  "action": "RECENT_ACTIVITY/SET_CREATE_ENVIRONMENT_RESULT"
}

Expected behavior: Message to be sent by the plugin:

window.postMessage({
  "payload":  {
    "id":  string,
    "errors": {
        "errorCode": string,
        "errorDescription": string
    }[] | undefined
  },
  "type": "digma",
  "action": "RECENT_ACTIVITY/SET_CREATE_ENVIRONMENT_RESULT"
}
kshmidt-digma commented 2 days ago

Related to https://github.com/digma-ai/digma-ui/issues/969