Show Error Causes modal is not showing up

Description

In Events table we can see sometimes:

when event/log provides `error_causes` field.

For some reason on clicking the icon (file + magnifier) modal with details is not displayed as it was before.

Activity

Show:
Jakub Niezgoda
September 11, 2020, 9:08 AM

I reported that one thinking there’s something broken in UI, but I found that the reason for the problem is that we actually have nothing to show as we get error_causes: [].

Normally we get null and that case we handle properly by not showing “Show Error Cause” icon and modal at all.

Is that correct behavior for the backend side? Should UI handle empty array the same way as null?

Jakub Niezgoda
September 15, 2020, 12:06 PM

After discussion - I’m going to improve handling of that special case (error_causes: []), probably by using _.isEmpty function to check the content of error_causes instead of only checking if it is equal to null.

Done

Assignee

Jakub Niezgoda

Reporter

Jakub Niezgoda

Labels

Target Version

5.1

QA Owner

None

Premium Only

no

Documentation Required

None

Why Blocked?

None

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Priority

Major
Configure