Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order by newest/oldest is made by entity_id not by created_at #855

Open
savlo opened this issue Aug 25, 2023 · 7 comments
Open

Order by newest/oldest is made by entity_id not by created_at #855

savlo opened this issue Aug 25, 2023 · 7 comments

Comments

@savlo
Copy link

savlo commented Aug 25, 2023

Preconditions (*)

  1. Magento Open Source 2.4.6 without sample data is installed.
  2. Page Builder version 2.2.4

Steps to reproduce (*)

  1. Create 2-3 product and alter their created_at to not be in the same order as their entity_id
  2. Use the page builder products and set the sort by to Newest first or Oldest first

Expected result (*)

  1. The products should be in the right older based on their created_at date/time

Actual result (*)

  1. The products are ordered based on their entity_id
@m2-assistant
Copy link

m2-assistant bot commented Aug 25, 2023

Hi @savlo. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

@savlo
Copy link
Author

savlo commented Aug 25, 2023

@magento I am working on this

@m2-assistant
Copy link

m2-assistant bot commented Aug 25, 2023

Hi @savlo! 👋
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

@savlo
Copy link
Author

savlo commented Aug 25, 2023

@magento add to contributors team

@m2-assistant
Copy link

m2-assistant bot commented Aug 25, 2023

Hi @savlo! 👋
Thank you for joining. Please accept team invitation 👉 here 👈 and add your comment one more time.

@savlo
Copy link
Author

savlo commented Aug 25, 2023

@magento I am working on this

@savlo
Copy link
Author

savlo commented Aug 25, 2023

Might need some ideas into this, because I also see why it should be by entity_id, since it will make the sorting faster, and the entity_id should guarantee the order is correct, but since created_at can be altered by product interface, this might be an edge case

@engcom-Hotel engcom-Hotel moved this to Dev In Progress in Backlog Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Dev In Progress
Development

No branches or pull requests

1 participant