Skip to content

Conversation

@pomegranited
Copy link
Contributor

@pomegranited pomegranited commented Jun 26, 2025

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Jun 26, 2025
@openedx-webhooks
Copy link

openedx-webhooks commented Jun 26, 2025

Thanks for the pull request, @pomegranited!

This repository is currently maintained by @axim-engineering.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are 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.


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.

@bradenmacdonald
Copy link
Contributor

In c971295 I have some further work on this branch that takes the queries of the main test in edx-platform down a bit further, from 225 to 196. But I'm not sure the added complexity is worth the cost. Many of these queries are just loading a single object, which are always going to be very fast queries anyways. We really want to focus on select_related where it's loading many rows of objects at once. This PR does include some of that though.

@pomegranited
Copy link
Contributor Author

@bradenmacdonald

In c971295 I have some further work on this branch that takes the queries of the main test in edx-platform down a bit further, from 225 to 196. But I'm not sure the added complexity is worth the cost.

Yeah, I wasn't sure about muddying the API either.. I chose to continue adding things to the hard-coded select_related list instead, but am not sure if that's acceptable either. It did help a lot with the query counts on openedx/edx-platform#36813, as did avoiding using the content_libraries Metadata classes.

@pomegranited pomegranited marked this pull request as ready for review July 2, 2025 13:52
@pomegranited pomegranited requested a review from ormsbee July 2, 2025 13:53
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Ready for Review in Contributions Jul 15, 2025
@rpenido rpenido force-pushed the jill/container-hierarchy branch from 8d37a0a to ddc65e9 Compare July 23, 2025 17:55
@rpenido rpenido force-pushed the jill/container-hierarchy branch from 6e14bbf to 666ae68 Compare August 6, 2025 19:25
@rpenido rpenido assigned rpenido and unassigned rpenido Aug 7, 2025
Copy link
Contributor

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

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

This LGTM. I haven't tested it though.

Comment on lines +1297 to +1299
select_related_version: An optional optimization; specify a relationship
on ContainerVersion, like `componentversion` or `containerversion__x`
to preload via select_related.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think a single relationship is going to be sufficient here, or will we have some use cases where we need to specify multiple relationships to select, like ["containerversion__subsectionversion", "containerversion__unitversion"] ?

I'm guessing that since this is only loading a single level at a time, a single string like you have is sufficient.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing that since this is only loading a single level at a time, a single string like you have is sufficient.

I think that's the case for now. We can update it later (or move to something like what is discussed here: openedx/edx-platform#36813 (comment)).

@ChrisChV ChrisChV requested a review from ormsbee August 7, 2025 22:27
@rpenido
Copy link
Contributor

rpenido commented Aug 12, 2025

Hi @ormsbee! Sorry for the ping.
Could you review this again and check if we are good to merge?
Thanks!

@bradenmacdonald bradenmacdonald merged commit d037e75 into openedx:main Aug 13, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in Contributions Aug 13, 2025
@bradenmacdonald bradenmacdonald deleted the jill/container-hierarchy branch August 13, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants