datahub-project / datahub

The Metadata Platform for your Data and AI Stack
https://datahubproject.io
Apache License 2.0
9.93k stars 2.94k forks source link

Invariant Violation: 8 when trying to raise an incident #11828

Open Gerrit-K opened 1 week ago

Gerrit-K commented 1 week ago

Describe the bug When trying to raise a data incident, there's a javascript error in the browser console with the message Invariant Violation: 8. The UI is not updated, but the incident is actually created, which can be seen when the page is reloaded.

To Reproduce Steps to reproduce the behavior:

  1. Go to some data asset, e.g. a table
  2. Click on 'Incidents'
  3. Click on 'Raise Incident'
  4. Fill in the form and click 'Add'
  5. You'll see a popup 'Failed to raise incident! An unexpected error occurred' and a more detailed error in the browser console:
    Invariant Violation: Invariant Violation: 8 (see https://github.com/apollographql/invariant-packages)
    at new t (http://localhost:9002/assets/index-98a3141e.js:67:3362)
    at http://localhost:9002/assets/index-98a3141e.js:99:28292
    at Set.forEach (<anonymous>)
    at e.processSelectionSet (http://localhost:9002/assets/index-98a3141e.js:99:27823)
    at e.processFieldValue (http://localhost:9002/assets/index-98a3141e.js:99:28729)
    at http://localhost:9002/assets/index-98a3141e.js:99:28670
    at Array.map (<anonymous>)
    at e.processFieldValue (http://localhost:9002/assets/index-98a3141e.js:99:28644)
    at http://localhost:9002/assets/index-98a3141e.js:99:28024
    at Set.forEach (<anonymous>)

Expected behavior Creating incidents should not raise an error.

Desktop (please complete the following information):

Additional context The gms doesn't seem to log any errors.