-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
User profile image urls #166
Comments
Was causing http urls instead of https. see: #166 Solution is to force use SSL, and forward it from Nginx to the container See more: rails/rails#22965
smartcitizen-api/app/views/v0/users/_user.jbuilder Lines 16 to 17 in 88f9a16
4. This is a rails thing and might change. |
|
upload.rb is deprecated. Consider removal on the upcoming refurbish |
Related? #223 |
After reviewing #239, I feel we are missing something still. Is there a migration to do for this to work? Currently: |
Hey @oscgonfer - i've taken a look this morning, it appears to be unrelated to that PR, but definitely a related bug: `` profiles that used the old See for example https://images.smartcitizen.me/s100/avatars/701/1citvht.10407640_420278614786473_8707648267347732669_n.jpg on the profile https://smartcitizen.me/users/6028. We would need to work out where that pointed to (an AWS bucket, i'm guessing?) and if the images still exist we could either:
Any idea whereabouts the images might be, or where that DNS record originally pointed to? |
There is a The app appears to be down: Here is the app on Heroku: It might need some updates Last line from the log file:
|
Hi there @viktorsmari - aha thanks for that - any idea where the source code for that lives, and would you be able to give me access to the repo, and to the application on heroku? I'll investigate further. Many thanks! Tim |
I did not find it here: Maybe the code is hosted directly on Heroku, and not on Github? Maybe @pral2a can give you access to the Heroku dashboard? |
That was a middleware written in Node to abstract S3 I though that was fully deprecated in favour of Rails Active Storage Overview but maybe some legacies remain I sent a tarball of the Heroku source Thank! :) |
Finally looking at this, sorry folks for the delay. We've got two related problems, as i see it:
Therefore I think we need to tackle this in steps:
I'm happy to start working on (2) and get ready for (3) when ready - would you like me to dip my toe into the angular app and see if i can handle (1) too, or is someone else better placed to do that? (cc @oscgonfer ) |
Ok, i started working on (1) to see if i could find my way around the web-app and this has thrown up another interesting thing - it appears I'm getting hit by the rate limit when just browsing the site, and this is also causing images (and other things) not to load, which may also be causing problems! |
Yep, confirmed - i think this might be a more urgent thing to sort out - @oscgonfer we can chat this morning! |
Another possible related thing - some users raise an error for having a profile_picture blob without a |
Ok, (2) above is deployed - i'll do (1) and (3) early next week! |
Once fablabbcn/smartcitizen-web#448 and #277 are merged this should all work fine, and then i can get to work removing all trace of the old avatars from the api. |
Closing as @timcowlishaw added this to the #286 |
User profile JSON blob returned by
/v0/me
profile_picture
orprofile_picture2
User profile contains the
avatar
property with a deprecated domain / service "https://images.smartcitizen.me/s100/avatars/b4b/1djs79t.lab.png"Why we have
profile_picture
orprofile_picture2
?I suggest we clean this path or document it properly
/rails/active_storage/representations/
?Topic 1 is critical, topics 2-4 are not urgent but will be useful to address them
The text was updated successfully, but these errors were encountered: