[PAGES-860] Annotations endpoint should return missing templates also Created: 04/Oct/22 Updated: 18/Dec/23 |
|
| Status: | Accepted |
| Project: | Magnolia pages module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Phong Le Quoc | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
|||||||||||||||||||||||||
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| 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)
|
|||||||||||||||||||||||||
| Epic Link: | SPA Editor Backlog | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Description |
|
This is a follow ticket of Annotation endpoint should also return missing template with error indicate, ex:
{
...
"/react-sample/main/00": "cms:component content=\"website:/react-sample/main/00\" activationStatus=\"0\" label=\"\" error=\"The template react-lm:components/title is missing\"",
"/react-sample/main/0/nestedArea": "cms:area content=\"website:/react-sample/main/0/nestedArea\" name=\"nestedArea\" availableComponents=\"\" type=\"list\" label=\"NestedArea\" inherit=\"false\" optional=\"false\" createdAreaNode=\"true\" showAddButton=\"true\" showNewComponentArea=\"true\" activationStatus=\"0\" label=\"nestedArea\" error=\"The template nestedArea is missing\"",
...
}
Note: Need a design to show in Editor. |
| Comments |
| Comment by Phong Le Quoc [ 05/Oct/22 ] |
|
Missing components/areas can still be moved, deleted, copied/duplicated. Of course, they should not be modified. |
| Comment by Phong Le Quoc [ 05/Oct/22 ] |
|
Sample code:
|
| Comment by Phong Le Quoc [ 13/Jul/23 ] |
|
| Comment by Phong Le Quoc [ 13/Jul/23 ] |
| Comment by Phong Le Quoc [ 13/Jul/23 ] |
|
Draft PRs https://git.magnolia-cms.com/projects/PLATFORM/repos/main/pull-requests/1317/overview https://git.magnolia-cms.com/projects/MODULES/repos/pages/pull-requests/595/overview
|