-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to inherit enum type #3578
Comments
Yeah it looks like this is just not really implemented. I'm going to put up a PR to produce a real error message, for now. |
The main thing is that the subtypes ought to be domain types, not enum types themselves. THe bulk of the code, however, all has to deal with fixing the _undo_everything/_redo_everything scheme in the presence of inherited enum types. The inherited enums need to be able to be deleted temporarily if an element is being dropped from the parent type, and that needs to be properly ordered with respect to properties that depend on it. We deal with this by pulling the core part of the property type switcharoos into the main sorted loop instead of having it be separate. Fixes #3578.
Alright, I actually ended up taking a second look and realized that actually implementing it would be pretty easy. And then, after I had finished all the parts that I felt were the core of the implementation, I stumbled across some very fiddly interactions with our mechanism for deleting an element from an enum, which wound up requiring some nontrivial changes to that mechanism. |
The main thing is that the subtypes ought to be domain types, not enum types themselves. THe bulk of the code, however, all has to deal with fixing the _undo_everything/_redo_everything scheme in the presence of inherited enum types. The inherited enums need to be able to be deleted temporarily if an element is being dropped from the parent type, and that needs to be properly ordered with respect to properties that depend on it. We deal with this by pulling the core part of the property type switcharoos into the main sorted loop instead of having it be separate. Fixes #3578.
The main thing is that the subtypes ought to be domain types, not enum types themselves. THe bulk of the code, however, all has to deal with fixing the _undo_everything/_redo_everything scheme in the presence of inherited enum types. The inherited enums need to be able to be deleted temporarily if an element is being dropped from the parent type, and that needs to be properly ordered with respect to properties that depend on it. We deal with this by pulling the core part of the property type switcharoos into the main sorted loop instead of having it be separate. Fixes #3578.
Steps to Reproduce:
edgedb migration create
and get error messageThe text was updated successfully, but these errors were encountered: