Shorthand with S3 Flysystem

Created on 6 August 2024, 4 months ago
Updated 30 August 2024, 3 months ago

Problem/Motivation

Flysystem is a general PHP library acting as a wrapper to different storage systems. We use it through the Flysystem Drupal plugin to externalize the storage of the site assets, to manage content in an external server and allowing us to use several containerized replicas of the CMS.

The Flysytem Plugin relies in a Drupal feature called “Drupal stream wrappers”, which is a layer over the base filesystem access in PHP.

The Shorthand plugin does not use the stream abstraction. It looks like it could be directly accessing the local php filesystem, taking a look at downloading one of the Stories it downloads into the filesystem of one of my CMS replicas but not the other replica, so there is one replica that does not have access. For these cases we use Flysystem with S3 to share resources between our replicas and this is where the Shorthand module should download the Stories.

Feature request
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alfaro
  • Status changed to Postponed: needs info 3 months ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    It's a new feature request. It requests new functionality that is yet to be implemented.
    I'd recommend to implement new stream wrapper configuration option to choose between public and S3 if S3 is available.
    Priority: normal as the issue does not require any urgent fixes.

    As far as current functionality goes, the modules uses public stream wrapper.
    My recommendation would be

    • manually to replace public with S3 in code and test it on your instance
    • fix any issues found
    • introduce configuration option for S3

    Let me know how you'd go.

Production build 0.71.5 2024