-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Update the ModelManager to handle multiple metamodel versions. #986
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Atul_khadse <[email protected]>
Signed-off-by: Atul_khadse <[email protected]>
* @throws {IllegalModelException} | ||
* @return {ModelFile} The newly added model file (internal). | ||
*/ | ||
addModel(ast, cto, fileName, disableValidation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would override the addModel
in BaseModelManager
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing that out! I’ll review it and make sure the base functionality remains unaffected. I think if we want to extend the addModel from BaseModelManager without overriding it completely, we can call the parent method using super.addModel(...) like this
* @throws {Error} If the version is not supported. | ||
*/ | ||
validateMetamodelVersion(version) { | ||
if (!this.metamodelVersions.includes(version)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR. But we first need to decide on the strategy how do we support multiple versions of metamodel first and then make relavant changes.
Happy to hear you opinions on the issue discssion board. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sanketshevkar Thank you for the feedback! That makes sense. I'll share my thoughts on the strategy for supporting multiple metamodel versions on the issue discussion board. Looking forward to collaborating on this further!
Closes #556
Changes
Flags
Related Issues