Issue/Motivation
Implement reuploading of missing resources with new Context API.
1. Upload context.
2. Check if there were missing resources.
3. Upload missing resources for the context.
We should use ContextApi::getAllMissingResources
method which returns resources by project id. It means in the response could be resources which don't relate to uploaded context. We should filter such resources. For example set up a cache (let's say for an hour) where we will put all the resources which we couldn't upload. It means that for the next 1 hour we will not try to upload missing resources which are in the cache and will try to upload resources which aren't in the cache. It will allow us to avoid making too many requests for resources which we already marked as failed.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff.txt | 489 bytes | Loparev |
#4 | tmgmt_smartling-new_context_api-full.patch | 84.74 KB | Loparev |
#4 | tmgmt_smartling-new_context_api-code.patch | 9.79 KB | Loparev |
#3 | tmgmt_smartling-new_context_api-full.patch | 84.61 KB | Loparev |
#3 | tmgmt_smartling-new_context_api-code.patch | 9.66 KB | Loparev |
Comments
Comment #2
Loparev CreditAttribution: Loparev commentedComment #3
Loparev CreditAttribution: Loparev commentedThe full patch contains updated SDK as well as new code related only to the connector.
The
code
patch contains only new code related to the connector.Comment #4
Loparev CreditAttribution: Loparev commentedComment #6
Loparev CreditAttribution: Loparev commented