overhangio / openedx-scorm-xblock

SCORM XBlock for Open edX
GNU Affero General Public License v3.0
39 stars 50 forks source link

Generalizing assets_proxy for all assets #87

Open timmc-edx opened 1 month ago

timmc-edx commented 1 month ago

While reading through the code in v18.0.2, I notice that the assets_proxy method currently generates a URL and then reads from it. It looks like this was added to support private S3 buckets. I'm wondering if it could be changed to instead just call the open() method on the storage (and by always generating asset-proxy URLs for all storages, not just S3.) I think it would have the following benefits:

Is this a change that would make sense? Am I missing something about the APIs and constraints?

Danyal-Faheem commented 1 week ago

Hey @timmc-edx, thanks for this enhancement request. I've created a PR in #91 for this. Can you take a look and let me know what you think?