Skip to content
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

Move user profile image url into the details field #5697

Merged
merged 1 commit into from
Feb 2, 2022
Merged

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Jan 31, 2022

What type of PR is this? (check all applicable)

  • Bug Fix

Description

In #4469 we found that some URLs from Google are longer than the 320 character limit of the users.profile_image_url field. Per Arik's suggestion, this PR moves the the profile_image_url field into the details JSON field.

I manually tested this migration through upgrade and downgrade.

Related Tickets & Documents

Closes #4469

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

No changes to UI.

Makes the details field a JSONB field per pg doc recommendations.

Update model.all() method to work properly now that profile_image_url
is not an independent field.

Closes #4469
Copy link

@robertkhoury robertkhoury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@susodapop susodapop merged commit 49fe295 into master Feb 2, 2022
@susodapop susodapop deleted the issue-4469 branch February 2, 2022 20:03
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
)

Makes the details field a JSONB field per pg doc recommendations.

Update model.all() method to work properly now that profile_image_url
is not an independent field.

Closes getredash#4469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redash can't create user from Google with long profile_image_url
2 participants