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

Warning messages: Scoped order is ignored, it's forced to be batch order. if run rake zammad:searchindex:rebuild is used #4888

Closed
martini opened this issue Oct 17, 2023 · 0 comments
Assignees
Milestone

Comments

@martini
Copy link
Collaborator

martini commented Oct 17, 2023

Used Zammad Version

6.1

Environment

  • Installation method: any
  • Operating system (if you're unsure: cat /etc/os-release ): any
  • Database + version: any
  • Elasticsearch version: any
  • Browser + version: any

Actual behaviour

If I execute run rake zammad:searchindex:rebuild, I get the following warnings in log/production.log

W, [2023-10-17T09:10:19.669317#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.671097#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.672431#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.890057#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.891493#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.892759#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:19.894092#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:20.837973#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:20.839949#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:20.903117#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.
W, [2023-10-17T09:10:21.121303#4012-6120]  WARN -- : Scoped order is ignored, it's forced to be batch order.

Expected behaviour

execute run rake zammad:searchindex:rebuild without warnings

Steps to reproduce the behaviour

Execute run rake zammad:searchindex:rebuild and have a look into log/production.log

It is because here https://github.com/zammad/zammad/blob/develop/app/models/concerns/has_search_index_backend.rb#L187 in_batches is used which will not work with order or reorder.

IMO we need to replace in_batches here.

Support Ticket

No response

I'm sure this is a bug and no feature request or a general question.

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants