Skip to content

[8.2-stable] refactor: load elements through core's shared element repository (#199) - #216

Merged
tvdeyen merged 1 commit into
8.2-stablefrom
backport/8.2-stable/pr-199
Sep 29, 2026
Merged

tvdeyen merged 1 commit into
8.2-stablefrom
backport/8.2-stable/pr-199

Conversation

@alchemycms-ci-bot

Copy link
Copy Markdown
Collaborator

Backport

This will backport the following commits from main to 8.2-stable:

Questions ?

Please refer to the Backport tool documentation

Build the page's element set via Alchemy::PageVersion#element_repository
instead of instantiating Alchemy::ElementsRepository directly. This routes
json_api through the same element-loading seam the rest of the Alchemy
ecosystem uses, so it inherits core's behaviour automatically — the repository
memoization today, and a shared element preloader once core provides one —
rather than maintaining a parallel construction here.

The change is behaviour-preserving: element_repository still wraps the
version's (eager-loaded) elements and applies the same visible filter.

(cherry picked from commit 1f1cce4)
@tvdeyen
tvdeyen merged commit 759b4a3 into 8.2-stable Sep 29, 2026
15 checks passed
@tvdeyen tvdeyen added the performance Performance improvement label Sep 29, 2026
@tvdeyen
tvdeyen deleted the backport/8.2-stable/pr-199 branch September 29, 2026 12:19
@alchemycms-bot alchemycms-bot Bot mentioned this pull request Sep 29, 2026
tvdeyen added a commit that referenced this pull request Sep 29, 2026
## Release v8.2.1

<!-- Release notes generated using configuration in .github/release.yml
at 8.2-stable -->

## What's Changed
### Bug Fixes
* [8.2-stable] fix(IngredientPictureSerializer): Use picture_url (#214)
by @alchemycms-ci-bot in
#217
### Performance Improvements
* [8.2-stable] Route element visibility through ElementsRepository
(#196) by @alchemycms-ci-bot in
#215
* [8.2-stable] refactor: load elements through core's shared element
repository (#199) by @alchemycms-ci-bot in
#216

## New Contributors
* @alchemycms-ci-bot made their first contribution in
#215

**Full Changelog**:
v8.2.0...v8.2.1
---
This PR was automatically created by the prepare-release workflow.
Once merged, the gem will be automatically published to RubyGems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants