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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Loparev created an issue. See original summary.

Loparev’s picture

Issue summary: View changes
Loparev’s picture

The 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.

Loparev’s picture

  • Loparev committed 1d3039d on 8.x-2.x
    Issue #2915744 by Loparev: Context: implement reuploading for missing...
Loparev’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.