Skip to content

Fix default_order_by_id for association loading#5089

Merged
johha merged 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-default-order-by-id-association-loading
May 7, 2026
Merged

Fix default_order_by_id for association loading#5089
johha merged 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-default-order-by-id-association-loading

Conversation

@philippthun
Copy link
Copy Markdown
Member

@philippthun philippthun commented May 5, 2026

Add placeholder_literalizer_loader hook so the extension applies ORDER BY id to Sequel association queries that use the optimized loader path.

Add tests to buildpack and CNB lifecycle data model specs verifying the association is ordered by id via the extension.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun philippthun force-pushed the fix-default-order-by-id-association-loading branch 5 times, most recently from edd3da4 to d142e3c Compare May 7, 2026 08:09
@philippthun philippthun closed this May 7, 2026
@philippthun philippthun reopened this May 7, 2026
@philippthun philippthun closed this May 7, 2026
@philippthun philippthun reopened this May 7, 2026
@philippthun philippthun force-pushed the fix-default-order-by-id-association-loading branch from d142e3c to a664767 Compare May 7, 2026 08:55
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 7, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: johha / name: johha (7af3e9e)

@philippthun philippthun force-pushed the fix-default-order-by-id-association-loading branch 2 times, most recently from e9fc957 to 3bcb699 Compare May 7, 2026 10:38
@johha johha force-pushed the fix-default-order-by-id-association-loading branch from 3bcb699 to ae9f315 Compare May 7, 2026 11:00
@johha johha marked this pull request as ready for review May 7, 2026 12:18
@johha johha force-pushed the fix-default-order-by-id-association-loading branch from ae9f315 to e3f4ca5 Compare May 7, 2026 12:19
Add placeholder_literalizer_loader hook so the extension applies
ORDER BY id to Sequel association queries that use the optimized
loader path.

Add tests to buildpack and CNB lifecycle data model specs verifying
the association is ordered by id via the extension.
@lukaszgryglicki
Copy link
Copy Markdown

/easycla

@johha
Copy link
Copy Markdown
Contributor

johha commented May 7, 2026

@lukaszgryglicki thanks for fixing/reverting 👍

@johha johha merged commit 9890107 into cloudfoundry:main May 7, 2026
11 checks passed
@johha johha deleted the fix-default-order-by-id-association-loading branch May 7, 2026 16:39
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request May 7, 2026
Changes in cloud_controller_ng:

- Fix default_order_by_id for association loading
    PR: cloudfoundry/cloud_controller_ng#5089
    Author: Philipp Thun <philipp.thun@sap.com>
    Author: johha <johannes.haass@sap.com>
@cloudfoundry cloudfoundry deleted a comment from lukaszgryglicki May 8, 2026
@cloudfoundry cloudfoundry deleted a comment from johha May 8, 2026
@cloudfoundry cloudfoundry deleted a comment from johha May 8, 2026
@cloudfoundry cloudfoundry deleted a comment from johha May 8, 2026
@cloudfoundry cloudfoundry deleted a comment from johha May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Order of buildpacks for multi-buildpacks is not being respected in application manifests

3 participants