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

[Exploration] Office Hours Querying Enhancements #631

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ajaygandecha
Copy link
Member

@ajaygandecha ajaygandecha commented Oct 12, 2024

This PR explores refactoring the permission check functions used in the common office hours CRUD backend service functions. The idea of these refactors is to load as little information as possible while churning over many courses, members, and sections. Some of these ideas are based off of SQLAlchemy documentation, examples, research, and some suggested optimizations from AI.

@KrisJordan and @jadekeegan, would like to hear your thoughts on this. @KrisJordan, I think to solve the problem noticed in larger courses like COMP 301, it might be helpful if you can gather any other insights on 502 errors occurring on the backend side, as well as the number of observations in the tables we are dealing with (particularly ticket, office-hours (formerly office hour events), and section_member).

@ajaygandecha ajaygandecha added exploration Used on branches that may not be new features but explores new implementations. refactor Used for refactoring current features. labels Oct 12, 2024
@ajaygandecha ajaygandecha self-assigned this Oct 12, 2024
@ajaygandecha ajaygandecha added the DONT MERGE This label is marked for pull requests that should not be merged yet. label Oct 12, 2024
@ajaygandecha ajaygandecha changed the title Exploration - Office Hours Querying Enhancements [Do Not Merge -Exploration] Office Hours Querying Enhancements Oct 12, 2024
@ajaygandecha ajaygandecha changed the title [Do Not Merge -Exploration] Office Hours Querying Enhancements [Do Not Merge - Exploration] Office Hours Querying Enhancements Oct 12, 2024
@ajaygandecha
Copy link
Member Author

( @wzahrt // @atoneyd // @ItIsAndrewL), no todos or anything pressing, but pinging you all on this pull request to alert you of potential (needed) optimizations coming down the pipe to load office hours data for the TV signage, where applicable (specifically if any APIs are querying with joins between course sites, office hour events, and tickets).

@ajaygandecha ajaygandecha changed the title [Do Not Merge - Exploration] Office Hours Querying Enhancements [Exploration] Office Hours Querying Enhancements Nov 23, 2024
@ajaygandecha ajaygandecha removed the DONT MERGE This label is marked for pull requests that should not be merged yet. label Nov 23, 2024
@ajaygandecha
Copy link
Member Author

@KrisJordan, removing the DONT MERGE label here - if this looks good, we can look to merge.

Copy link
Collaborator

@jadekeegan jadekeegan left a comment

Choose a reason for hiding this comment

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

Code LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exploration Used on branches that may not be new features but explores new implementations. refactor Used for refactoring current features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants