Fixes: U4-2833 Packages using DataEditorSetting install alias.#205
Fixes: U4-2833 Packages using DataEditorSetting install alias.#205leekelleher wants to merge 1 commit intoumbraco:6.2.0from
Conversation
There was a problem hiding this comment.
I've been told that this is a breaking change, (apologies). I'll find an alternative solution and update the pull-request.
|
I think using a Tuple to describe "something" in a collection should be an absolute last resort. IMO its not very obvious what is what alias/value or value/alias. Its easy to get wrong and its not mentioned in the code comment. Did you exporer using a dictionary for alias / value? |
|
Please just backport the changes to IDataTypeService from v7 - think stephen said he did that already? |
|
I can't figure out what you think is a breaking change? Did you already change the bit that is linked in the diff above? |
|
PS... we are allowed to add methods to service interfaces, of course we cannot change or remove methods on these interfaces. http://our.umbraco.org/documentation/Development-Guidelines/breaking-changes#Whatisabreakingchange? |
|
Thanks Morten/Shannon. I was lead to believe (at last week's UK hackathon) that adding a method to an interface was a breaking change - so if not, then great. I'll fix up the |
|
Hey lee, generally adding stuff to an interface would be but since developers cannot actually implement and use the interfaces defined here http://our.umbraco.org/documentation/Development-Guidelines/breaking-changes#Whatisabreakingchange this gives the core some flexibility when upgrading/fixing the data layer - otherwise we'd be completely stuck. |
|
DOH! disregard the thing i just wrote (have deleted now)! Yes, we'd like to back port much of the service/repo layer to 6.2 but it will be quite manual due to the db changes made in v7.0. I've done a bit here and there already. |
|
The DataTypeService in v7 has a bunch CRUD in the service, which should be refactored to use a repository before its backported. At least IMO ;-) |
|
yeah, just a few methods - would be easy to fix up |
|
Closing this one as it looks like we want to go another way with this. |
Extends the package installer to check if a
PreValueelement has anAliasvalue.Updates the
DataTypeServiceto write the alias to thecmsDataTypePreValuesdatabase table.