Skip to content

Removed todos, and added refs to the rest#1248

Merged
royduin merged 6 commits intomasterfrom
feature/reduce-todos
Apr 3, 2026
Merged

Removed todos, and added refs to the rest#1248
royduin merged 6 commits intomasterfrom
feature/reduce-todos

Conversation

@indykoning
Copy link
Copy Markdown
Member

ref: RAP-1859

@indykoning indykoning requested a review from royduin as a code owner April 2, 2026 13:21
Comment on lines -30 to -32
// TODO: Are we filtering this on the frontend?
// As "searchable" will be used for the
// listing and the search...
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are filtering this on the frontend

Comment on lines -10 to -11
// TODO: Maybe create a model for this and cache it?
// But most likely it's never going to change...
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But most likely it's never going to change

It's not worth it to turn this into a model with more queries

Comment thread src/Models/Product.php
Comment on lines -290 to -295
// TODO: Double check the prices with the indexer.
// We should index all customer group prices
// as we can only verify that on the
// frontend. But currently this
// is also loading all prices
// for just a product page.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are actually using this on the frontend now, on PDPs as well

let price = product.prices?.[groupId]?.tier_price ? product.prices[groupId].tier_price : product.price

@royduin royduin merged commit d271dae into master Apr 3, 2026
15 checks passed
@royduin royduin deleted the feature/reduce-todos branch April 3, 2026 12:53
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.

4 participants