[MGNLCT-171] CT-based apps' names way too related to content type names Created: 22/Jan/21 Updated: 25/Mar/22 |
|
| Status: | Open |
| Project: | Content Types |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Template: | |||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Description |
Steps to reproduce
and the app's name is in plural as well: "authors.yaml" After following the best practice to have content type names in singular ( and after installing the module, curiously, one can open the "author" app:
The app works:
but one cannot edit any item in it:
because the edit actions are bound with the singular form of the app:
Expected results Renaming content type name should not affect app name and its actions. Actual resultsWorkaroundDevelopment notes |
| Comments |
| Comment by Martin Drápela [ 26/Jan/21 ] |
|
Another try with a very special empty LM: sinplu.zip Initial state: both CT and app have the same name - "plural" and are registered as follows:
After 2) providing a correct reference to the renamed CT in the app descriptor, the new content type name "singular" gets propagated into the appName nodes of actions, which then produces the NoSuchDefinitionException:
|
| Comment by Martin Drápela [ 26/Jan/21 ] |
|
Workaround (to be documented) Set app name in the app descriptor, e.g. !content-type:singular icon: icon-people name: plural Results in correct action names:
|