[MGNLCT-35] Reuse existing system to support rename workspace Created: 18/May/18 Updated: 21/Aug/18 Resolved: 07/Jun/18 |
|
| Status: | Closed |
| Project: | Content Types |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Oanh Thai Hoang | Assignee: | Oanh Thai Hoang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 6d 1h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||
| Epic Link: | Content types foundation | ||||||||||||||||
| Sprint: | Saigon 146, Saigon 147 | ||||||||||||||||
| Story Points: | 5 | ||||||||||||||||
| Description |
|
Solution: We can rename logical workspace. All workspace names are viewed in GUI are logical name (not physical name). See one example is https://git.magnolia-cms.com/projects/PLATFORM/repos/ce/browse/magnolia-empty-webapp/src/main/webapp/WEB-INF/config/default/repositories.xml#74-78. So we don't need to rename physical name, just rename logical and we already have all API to access, get, retrieve with logical name. |
| Comments |
| Comment by Oanh Thai Hoang [ 18/May/18 ] |
|
POC for renaming workspace is pushed to branch main and content-type |
| Comment by Oanh Thai Hoang [ 18/May/18 ] |
|
Follow up ticket is created |
| Comment by Oanh Thai Hoang [ 25/May/18 ] |
|
Firstly, think about the usage of rename or delete workspace. Pros:
Cons
|
| Comment by Oanh Thai Hoang [ 25/May/18 ] |
|
1. Solution of rename workspace by rename alias:
Where to define default mapping: Where to initialize:
Where to update mapping:
2. Delete and create new workspace:
3. If we don't support update workspace so there are unnecessary workspaces in repo.
Note: Jackrabbit does not have API for delete. We may create a script to delete workspace folder. |