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

fix: Data too long for column 'resource_id' #435

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shadinaif
Copy link
Contributor

@shadinaif shadinaif commented Dec 25, 2023

when the course id is a little bit long, the lti xblock id becomes too long for resource_id to handle

To reproduce:

  • Create a course with long ID. For example: course-v1:Public+TEST_IT_01+TEST_IT_01_Dec_2023
  • Add lti_consumer in Advanced settings for the course
  • Try to add an LTI component in the course with version 1.3
  • The unit crashes
    Screenshot from 2023-12-25 14-00-00

we tried that on the latest https://sandbox.openedx.org

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Dec 25, 2023
@openedx-webhooks
Copy link

openedx-webhooks commented Dec 25, 2023

Thanks for the pull request, @shadinaif!

What's next?

Please work through the following steps to get your changes ready for engineering review:

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.

🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads

🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

🔘 Let us know that your PR is ready for review:

Who will review my changes?

This repository is currently maintained by @openedx/openedx-unmaintained. Tag them in a comment and let them know that your changes are ready for review.

Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@shadinaif
Copy link
Contributor Author

For your review @OmarIthawi, please

Copy link

codecov bot commented Dec 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.85%. Comparing base (83fa9e0) to head (c5851e6).

❗ Current head c5851e6 differs from pull request most recent head f6fbae4. Consider uploading reports for the commit f6fbae4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
+ Coverage   97.83%   97.85%   +0.01%     
==========================================
  Files          77       78       +1     
  Lines        6710     6709       -1     
==========================================
  Hits         6565     6565              
+ Misses        145      144       -1     
Flag Coverage Δ
unittests 97.85% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shadinaif shadinaif force-pushed the shadinaif/fix-short-resource-id branch from bb1ad9b to 454346f Compare January 15, 2024 04:53
@shadinaif
Copy link
Contributor Author

please check now @OmarIthawi

Copy link
Member

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

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

Thanks Shadi. One more thing please.

lti_consumer/migrations/0018_auto_20231225_0556.py Outdated Show resolved Hide resolved
@shadinaif shadinaif force-pushed the shadinaif/fix-short-resource-id branch from 454346f to ab4df99 Compare January 24, 2024 12:35
@shadinaif shadinaif requested a review from OmarIthawi January 24, 2024 12:35
@shadinaif shadinaif force-pushed the shadinaif/fix-short-resource-id branch from ab4df99 to c5851e6 Compare January 24, 2024 12:36
Copy link
Member

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @shadinaif!!

@mphilbrick211
Copy link

Hi @OmarIthawi and @shadinaif! Is this pull request still needed?

@OmarIthawi
Copy link
Member

Yes @mphilbrick211, we needed it to get merged but it wasn't triaged since Jan 25th.

@shadinaif there's a new changelog update that conflicts with this pull request, kindly rebase and fix it.

@shadinaif shadinaif force-pushed the shadinaif/fix-short-resource-id branch 2 times, most recently from c0f4d1f to f6fbae4 Compare April 8, 2024 12:28
@shadinaif
Copy link
Contributor Author

shadinaif commented Apr 8, 2024

Rebased. But codecov is failing for no reason ¯\(ツ)

@mphilbrick211
Copy link

Hi @shadinaif and @OmarIthawi! Can this be closed?

when the course id is a little bit long, the lti xblock id becomes too long for resource_id to handle
@shadinaif shadinaif force-pushed the shadinaif/fix-short-resource-id branch from f6fbae4 to df5fd9b Compare July 17, 2024 04:20
@OmarIthawi
Copy link
Member

Thanks @shadinaif. @mphilbrick211, this is now ready for merging. I don't have permissions though. Could you please help?

@itsjeyd
Copy link

itsjeyd commented Nov 28, 2024

@shadinaif @OmarIthawi Sorry for the delay here. Is this PR still needed?

@shadinaif If so, could you please resolve merge conflicts?

Once the build is green we can have someone from Axim engineering merge the PR.

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Nov 28, 2024
@OmarIthawi
Copy link
Member

yes it's still needed @itsjeyd

@itsjeyd
Copy link

itsjeyd commented Nov 29, 2024

Got it, thanks @OmarIthawi.

@shadinaif Over to you for now. Let me know when you're done resolving merge conflicts here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.
Projects
Status: In Eng Review
Development

Successfully merging this pull request may close these issues.

5 participants