edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Extending a required multi link with a union variant causes the migration creator to fail.

Open janwirth opened this issue 2 years ago • 2 comments

https://discord.com/channels/841451783728529451/1159769994465394718/1159769998651314197

  • EdgeDB Version: "3.3+d5734dd"
  • EdgeDB CLI Version: EdgeDB CLI 3.5.0+e1ad387
  • OS Version: ProductName: macOS ProductVersion: 13.4 BuildVersion: 22F2063

I am happy to share our schema / migrations through a private channel.

janwirth avatar Oct 31 '23 23:10 janwirth

I'm not clear this is a bug. If I understand, the user is trying to cast to a union of types, which I don't think should be possible. Maybe someone else can have a look too?

raddevon avatar Nov 14 '23 18:11 raddevon

@elprans has a copy of my dbschema folder. You should be able to reproduce this by adding a variant to the ContactBookEntrySource type.

e.g. start with

        required from_source -> KnownFromVisitingSocialEvent | LinkedinUpload;

and change to

        required from_source -> KnownFromVisitingSocialEvent | LinkedinUpload | GoogleCalendar::Calendar;

I have since updated the schema but IIRC this is how I was able to produce the problem.

janwirth avatar Nov 20 '23 18:11 janwirth