-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: Data too long for column 'resource_id' #523
base: master
Are you sure you want to change the base?
Conversation
when the course id is a little bit long, the lti xblock id becomes too long for resource_id to handle
@feanil can u look into this PR and merge it. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me but I've asked @ormsbee to take a look to see if we can better couple this to the course ID ( and if that makes sense) so that we don't have future issues here. @Faraz32123 do you know if there is a max limit on the LTI side for this field?
@feanil: By the LTI 1.3 spec, I think this field should be limited to 255 chars anyhow, so I think we're good there. It's also supposed to be case-sensitive, which the current implementation is not–but I don't think that's worth the potential headaches involved with fixing it at the moment. @Faraz32123: There are a number of things that I don't understand about the LtiArgsLineItem model, and I would appreciate your thoughts:
Thank you. |
@ormsbee hope you doing well. So, based on my understanding based on code, the You are correct that We can certainly dig deeper to explore this further. |
@Faraz32123: So I have one short term concern, and a couple of longer-term ones. The short-term one is just how expensive this migration is going to be, and if there are going to be any negative consequences for running it. As an anecdotal reference point, We've had column changes in the past that averaged around 1 million rows/minute to run the migration, during which that table was locked entirely. So a migration against My longer term concern is that this seems to just be broken in that it's not actually storing the right data at all. So while it might be useful for short-term compatibility to widen the field so we can continue to store the broken things consistently, we should at some point fix this and store the right thing. In addition, it looks like these models are missing important constraints. Whether it's Addressing either of the longer term concerns will involve a potentially disruptive data migration: dealing with historical duplicates from race conditions, fixing code that assumes |
Thanks for the ping, @ormsbee! I'll review and follow up by EOD this Wednesday 01/15/2025. |
Thanks again for the ping. Here are my thoughts. I apologize if any of this you already know. I'm also writing this out as review for myself. TL;DR
Migration ConcernsI’m not concerned about the migration, because the size of the Relationship between
|
when the course id is a little bit long, the lti xblock id becomes too long for resource_id to handle
To reproduce:
I have tested it locally