-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images #71
Images #71
Conversation
grano-client changes to use files https://github.com/Rizziepit/grano-client/compare/file_support?expand=1 |
Conflicts: grano/logic/schemata.py
This is really impressive. I'm a bit uncertain, to be honest, about whether we actually need image configs on a per-project, API-driven level. My initial sense is that making this an instance specific setting would be sufficient, and that it's more interesting to focus on uploading the rendered images somewhere to S3. This should be part of a plugin, though, not the application core. |
My initial intention was to make it a plugin. This is difficult when the transformation + uploading of files has to happen dynamically, i.e. as soon as a property or an attribute changes (there is no schema change event and a bunch of race conditions creep in). Do we need files to be uploaded dynamically? Perhaps the plugin should have a management command instead that reads a yaml configuration and transforms and uploads image files accordingly? What do you think about the files as property attributes? |
Given these concerns, would it be easier to make this a plugin which generates formats on demand via the API and then sets up a forced HTTP cache in front of that? We would still want to have a pre-defined set of configs to avoid cache-bombing, but it might be the easiest thing to build?
|
I like Then the grano instance would have something like this in its settings:
And grano-images would provide the following endpoint: |
Ok, so after some discussion on Slack, we're going to go with the simplest solution; which is to render out images straight from the api (with a possible local file cache), and a good HTTP cache header set. |
Image logic moved to https://github.com/Rizziepit/grano-images |
Conflicts: grano/logic/properties.py
Conflicts: grano/model/property.py
A start to image support: support file properties. Fixes #55.
This branch is still in progress.