Closed di closed 9 years ago
Lime now saves both the href and the resize_href (deprecated) for both a Vertex.Medium.Photo and for cover images as "/image/
So I believe we can move on to step 3 - making hrefs redundant to resize_href in all DB entries. Explicitly, I think this means that all hrefs will be changed from the absolute s3 path to the relative /image/ path. This should not break any templates, right?
This should not break any templates, right?
It will not break any templates, but due to the image-rendering bug, the images might not show up immediately. After I do step 3 we can hit all the sites to make sure the images render... and eventually we will fix that bug too.
Ah, but doesn't /image/
Yes, this is true.
We're now onto steps 4/5/6.
Step 4 was the only instance where Step 5 usage was happening.
We are on to step 7
All references to resize_href
have been removed from the production DB.
Currently, when we are storing an image in S3, we are storing a reference to it's static URL on AWS. For example, for all cover photos:
Now that we have the
/image/
endpoint, we need to stop including this reference and stop using it in templates and in Lime.The main reason is that, in this example, the static AWS url is for all intents and purposes identical to the
/image/IMG_3180.JPG
href, and thus redundant.The reason why this just has become a problem is because during migration between development and production, the AWS bucket does not remain the same, and thus all of these links would point to the bucket of the development user.
Steps to complete this issue:
Make attribute redundant when saving in frontend (Ryan);Makehref
redundant toresize_href
in all DB entries (Dustin);Remove attribute from model when saving in backend (Dustin);href
(Ryan);href
(Ryan);resize_href
in production DB (Dustin).