Major
Nice to have
Bugfix
Major
Enhancement
- Resource key for classifications and their elements is the bare name without prefix.
- Resource key for attributes has the type name as prefix without further prefix.
- Resource-Key for types has a prefix but an extremely weird "element.typename".
Improvement
- All model elements have a resource key with prefix "model.
- All model elements have the module name as another prefix.
- All parts of a type (attributes, classification list elements) have the type name as another prefix.
Code migration
- Run tool test.com.top_logic.element.model.util.ModelResourceUpgrade in project context. It will upgrade resource files in all dependencies as well.
- Remove<legacy-qualified-name> annotation from model definitions (no data migration needs to be performed, the annotation remains for now for compatibility reasons).
- The type attribute of form:formPage tags needs to be rearranged
- Search \btype\s*=\s* "(?=<%) on *.jsp.
- If the attribute refers to a MO type, it must be type="<%= TLModelUtil.moType(Group.OBJECT_NAME) %>" (for MO type Group.OBJECT_NAME).
- If it refers to a model type, it must be type="<%= TLModelUtil.findType(ContactFactory.STRUCTURE_NAME, ContactFactory.PERSON_TYPE) %>" for the corresponding type.
- Various resource providers with absurd strategies how to find an icon for an object are omitted and have to be replaced:
- AttributedResourceProvider -> WrapperResourceProvider
- StructuredResourceProvider -> WrapperResourceProvider
- StructuredAttributedResourceProvider -> WrapperResourceProvider
- TypeBasedImageResourceProvider -> DefaultResourceProvider
- If resources are still missing after migration, this may be due to model resource keys being entered in places where they do not belong:
- In I18NConstants files with legacy...().
- In layout configurations for example in resPrefix="...".
- In JSPs.
These must then also be converted.
Test
Refactoring, no additional test.