[MGNLSYNC-43] Finalize support for invoking synchronization asynchronously Created: 27/May/20 Updated: 29/Mar/22 Resolved: 26/Jun/20 |
|
| Status: | Closed |
| Project: | Magnolia Synchronization Module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.9 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Simon Lutz | Assignee: | Roman Kovařík |
| Resolution: | Done | Votes: | 0 |
| Labels: | maintenance | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1d 3h 10m | ||
| Original Estimate: | Not Specified | ||
| 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)
|
||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||
| Sprint: | Maintenance 11, Maintenance 12, Maintenance 13 | ||||||||||||||||||||||||
| Story Points: | 8 | ||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||
| Description |
|
See the review items on the original ticket:
|
| Comments |
| Comment by Roman Kovařík [ 16/Jun/20 ] |
|
Example request (copy/pasteable) curl -u superuser:superuser http://localhost:8080/magnoliaAuthor/.rest/synchronization/v1/trigger --data ' {"url" : "http://localhost:8080/magnoliaPublic", "workspace": "website", "fromPath" : "/", "fromDate" : "2012-03-29T10:05:45-06:00"} ' --header "Content-Type: application/json" |
| Comment by Roman Kovařík [ 19/Jun/20 ] |
|
For documentation:
JSON body of the request (in the current documentation these are request params, now part of the request body instead):
{
"workspace": "website" //target workspace
"path" : "/", //target path
"template" : "reiceiverName" //receiver template configured under synchronization module config (can be added via module config decoration). This parameter is mutually exclusive with url
"url" : "http://localhost:8080/magnoliaPublic" //target URL. This parameter is mutually exclusive with template
"fromPath" : "/",
"fromDate" : "2012-03-29T10:05:45-06:00"}
... (all params in the current doumentation)
}
|
| Comment by Federico Grilli [ 25/Jun/20 ] |
|
For the release notes: version 1.9 depends on publishing-transactional 1.0.6+. Notable changes in REST api, see Roman's comment above in particular There is a known issue upon updating in case a 1.9 beta version is installed
2020-06-25 15:10:19,851 WARN agnolia.transformer.ClassPropertyBasedTypeResolver: Encountered the 'class' property but failed to resolved the type from its value: [info.magnolia.synchronization.commands.RestSynchronizationCommand]
This is harmless and the following node will have to be removed manually from the JCR configuration
/modules/synchronization-rest/commands
Also, in case 1.9-beta3 is installed, the following node will have to be removed from JCR configuration /modules/synchronization-core/commands/synchronization/synchronize/synchronizationSenderClass
|