-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Breaking changes in DisplayManager in 1.5 #12678
Comments
Could we add it to |
@ns8482e could you please add docs for this? |
2 similar comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
@hishamco it should be backward compatible, it breaking the module can you change the milestone to 1.5? I’ll create PR tonight |
@MikeAlhayek is not backward compatible? |
@hishamco No html prefix changes are not backward compatible, module written on 1.4 can’t find the method as param of API function has changed and now it’s complaining about method not found exception |
Hope if you can fix this before |
@ns8482e your module depends on v1.3 so you can add dependency to your module for OC <=1.4. then create another package that depends on >=1.5. There is is really no to do in OC for this. The issue is that your project is marked as compatible with 1.3+ when it's not. your current release need to depend on OC 1.2> and <= 1.4. This way your customer won't be able to update the package if they are using 1.5 |
@MikeAlhayek It's not just about my modules, It about how how OC Framework handles breaking changes gracefully in minor version upgrades. |
:) Can't predict that OC 1.5 will introduce breaking changes when released module 1.3 released |
@hishamco I guess this can't be fixed as @MikeAlhayek suggests -requires the module to be recompiled |
Niraj please do the right fix, then you can request @jtkech |
It's compiler - It doesn't allow me to add overload method as it thinks ambiguous. @jtkech original interface was as below Task<IShape> BuildEditorAsync(TModel model, IUpdateModel updater, bool isNew, string groupId = "");
Task<IShape> UpdateEditorAsync(TModel model, IUpdateModel updater, bool isNew, string groupId = ""); That changed to following in 1.5-preview Task<IShape> BuildEditorAsync(TModel model, IUpdateModel updater, bool isNew, string groupId = "", string htmlPrefix = "");
Task<IShape> UpdateEditorAsync(TModel model, IUpdateModel updater, bool isNew, string groupId = "", string htmlPrefix = ""); So all calls from module complied and released before 1.4 expects a method that has four params that results in method not found in when upgraded OC to 1.5-preview. Here in new method newly added default parameter |
Describe the bug
I am using
BuildEditor
ofDisplayManager
to create a shape, It's working well, but when upgraded to 1.5 preview feed started getting following error.The text was updated successfully, but these errors were encountered: