Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-232

Allow specifying the upload provider type in the batch details

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoVersionApplicable
    • Fix Version/s: 6.0.3
    • Component/s: Upload

      Description

      Situation

      Currently, the Python SDK has 2 types of uploaders: one for Nuxeo and one for S3.
      Which one to use is determinated through the provider retrieved from batch details.

      Problem

      Customers might implement a custom upload provider, with a name different from "s3" for instance, but still wanting to use the S3 uploader (think of alias).
      This will make the Python SDK to always choose the default upload provider because it does a simple comparison against predefined provider names.

      Solution

      Customers can use aliases to force the selection of a given provider by adding the provider_type key to the extraInfo sub-dict of batch details.
      Example:

      {
          "provider":"custom",
          "fileEntries":[],
          "batchId":"...",
          "extraInfo":{"bucket":"...", "...", "provider_type": "s3"}
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 20 minutes
                  1h 20m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.