Replication: View mappings does not work if any selected table can't be replicated

Description

If a selected table has any issue and can't be replicated, View Mappings does not work for any selected table.

Expected result: Clicking View Mappings displays the column mapping, or shows a message saying the mapping can't be generated for this table.

Actual result: The loading spinner comes up and never clears. (Once I saw a {responseCode: 500} message, but I haven't been able to reproduce this.)

Steps:
1. Create a new replication pipeline
2. Select at least one table with an issue that will prevent replication (e.g. no primary key)
3. Continue to the "Review Assessment" step
4. Click "View Mapping" for any table

Release Notes

None

Activity

Show:
Edwin Elia
January 7, 2021, 12:53 AM

6.3:

Edwin Elia
January 6, 2021, 10:59 PM

PR:

Sagar Kapare
January 6, 2021, 2:17 PM

It seems like issue in the UI.

POST request is sent to backend following form for view mapping:

namespaces/system/apps/delta/services/assessor/methods/v1/contexts/default/drafts/8451fa89-3ba8-4203-bbd3-e72612dee17d/assessTable

with body:

{"database": "sakila", "table": "actor"}

Backend responds with following response:

However on console I see following error

error TypeError: Cannot read property 'forEach' of undefined
at SafeSubscriber.eval [as _next] (index.tsx?a795:213)
at SafeSubscriber.__tryOrUnsub (Subscriber.js?6f3b:238)
at SafeSubscriber.next (Subscriber.js?6f3b:185)
at Subscriber._next (Subscriber.js?6f3b:125)
at Subscriber.next (Subscriber.js?6f3b:89)
at Subject.next (Subject.js?72fe:55)
at SafeSubscriber.eval [as _next] (index.js?7811:82)
at SafeSubscriber.__tryOrUnsub (Subscriber.js?6f3b:238)
at SafeSubscriber.next (Subscriber.js?6f3b:185)
at Subscriber._next (Subscriber.js?6f3b:125)

Once it goes into that state, further view mappings calls fail to render.

Fixed

Assignee

Edwin Elia

Reporter

Nick Briggs