-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(ui): optimized boards queries #6603
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psychedelicious
requested review from
blessedcoolant,
maryhipp,
hipsterusername and
brandonrising
as code owners
July 12, 2024 04:23
github-actions
bot
added
api
python
PRs that change python files
services
PRs that change app services
frontend
PRs that change frontend files
python-tests
PRs that change python tests
labels
Jul 12, 2024
hipsterusername
approved these changes
Jul 12, 2024
psychedelicious
force-pushed
the
psyche/board-counts
branch
from
July 12, 2024 04:31
6b9f109
to
fcc3f7f
Compare
3 tasks
psychedelicious
commented
Jul 12, 2024
maryhipp
reviewed
Jul 14, 2024
…cover image This _substantially_ reduces the number of queries required to list all boards. A single query now gets one, all, or a page of boards, including counts and cover image name. - Add helpers to build the queries, which share a common base with some joins. - Update `BoardRecord` to include the counts. - Update `BoardDTO`, which is now identical to `BoardRecord`. I opted to not remove `BoardDTO` because it is used in many places. - Update boards high-level service and board records services accordingly.
chore(ui): typegen
psychedelicious
force-pushed
the
psyche/board-counts
branch
from
July 15, 2024 07:25
dae775f
to
9d3a72f
Compare
|
maryhipp
approved these changes
Jul 15, 2024
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.
LGTM!
Marked draft to prevent premature merge. |
3 tasks
Superseded by #6931 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api
frontend
PRs that change frontend files
python
PRs that change python files
python-tests
PRs that change python tests
services
PRs that change app services
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Optimize board related queries, reducing the number of SQL queries and network requests needed to list boards.
Fixes incorrect board image counts.
Related Issues / Discussions
n/a
QA Instructions
The UI should list boards and their counts accurately, and moving images around in a board should work as it did before.
Merge Plan
Checklist