API: filter extension versions by blender_version parameter #86

Merged
Oleg-Komarov merged 2 commits from api-filter-blender-version into main 2024-04-22 15:24:06 +02:00
Owner

As specified in #70:
Use the latest extension version compatible with a given blender_version, as opposed to the previous behavior when only the latest extension version was checked.
Now if there are any compatible versions, the extension will be listed, previously it was listed only if the latest version was compatible.

Also this PR uses an opportunity to optimize the db prefetches to avoid 6*N + 1 query problem.

As specified in #70: Use the latest extension version compatible with a given blender_version, as opposed to the previous behavior when only the latest extension version was checked. Now if there are any compatible versions, the extension will be listed, previously it was listed only if the latest version was compatible. Also this PR uses an opportunity to optimize the db prefetches to avoid 6*N + 1 query problem.
Oleg-Komarov added 1 commit 2024-04-22 15:13:39 +02:00
Get the latest extension version compatible with a specified blender_version.

Prevent N+1 queries in the api endpoint
Oleg-Komarov force-pushed api-filter-blender-version from c3f0d8861a to 75213d0b3e 2024-04-22 15:23:32 +02:00 Compare
Anna Sirota approved these changes 2024-04-22 15:23:44 +02:00
Oleg-Komarov merged commit 71a32c1ad8 into main 2024-04-22 15:24:06 +02:00
Oleg-Komarov deleted branch api-filter-blender-version 2024-04-22 15:24:07 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#86
No description provided.