This repository was archived by the owner on May 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Performance improvements: rendering the Subscription Relationship column and checking if order is a renewal, switch etc. #732
Merged
mattallan
merged 25 commits into
trunk
from
for/731-improve-performance-rendering-order-type-column
Feb 26, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
dd1299a
Introduce new function to check if an order is a subscription parent …
44321ec
Refactor our wcs_order_contains_x() functions to be more performant
976c961
Update render_contains_subscription_column_content() to accept order …
74a9e5a
Add changelog entry
fc91135
Replace count(wcs_get_subscriptions_for_order()) with new is_parent_o…
b8f94ab
Merge branch 'trunk' into for/731-improve-performance-rendering-order…
adeaeca
Dont render the inefficient parent order distinction on orders list t…
1122373
Move checking for parent order as the final elseif as it's the most r…
ec44e56
Call wcs_is_order() before passing the order to get_related_subscript…
de03e43
Introduce new wrapper for WCS_Related_Order_Store get_related_subscri…
ad40418
Use new wcs_get_subscription_ids_for_order() in order contains functions
7598c36
Update wcs_get_subscriptions_for_order() to use new get_related_subsc…
c6b4d21
Add support for fetching parent order types as well
ecf3bdf
Add unit tests
6621e10
Fix unit tests to match expected array returned (ids in DESC order)
71baf7c
Order by IDs
5f237ab
Always query for parent order relations if parent is passed - don't m…
cd7ac49
Add support for fetching subscription IDs for any order type
4051a4c
add default behaviour details to docblock
9dd21cf
Add unit tests for a realistic resubscribe case
b4bcb76
Sort the returned array of subscription IDs
d492796
Ensure backwards compatibility with filter hooks passing WC order obj…
1de39ec
Merge branch 'trunk' into for/731-improve-performance-rendering-order…
05813de
Update changelog
d1ea790
Rename wcs_is_parent_order() to wcs_order_contains_parent() for consi…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.