Sort not working suddenly

Feature(s) impacted

Sort list

Observed behavior

All our lists are sorted by ids, suddenly the sort don’t work anymore by default and even when we use the interface to sort by created_at.

Expected behavior

Sort should always works

Failure Logs

I don’t see any logs in Chrome console and in the server

Context

  • Project name: Kingdom
  • Team name: Operations
  • Environment name: Production
  • Agent technology: Nodejs
  • Agent (forest package) name & version:
  • @forestadmin/agent”: “^1.35.16”,
    @forestadmin/datasource-mongoose”: “^1.5.30”,
    @forestadmin/datasource-replica”: “^1.0.64”,
  • Database type: Mongodb
  • Recent changes made on your end if any: Setup Sentry, not sure if it was in the same time but I doubt that there is a link.

Hello @Julian_Renard,

Sorry to hear that. I see that you are using the @forestadmin/datasource-mongoose version ^1.5.30.

Lately, we released multiple fixes around sorting on mongoose (perf improvements, sorting fix). You should try with the latest @forestadmin/datasource-mongoose version 1.8.2 to ensure the issue has not been fixed yet.

Let me know if it works with the latest version.

Kind regards,
Morgan

2 Likes

Hi @Julian_Renard,

did it fixes your issue ?
I will consider this ticket as closed next week if there is no reply on your part :wink:

Yes, updating fixed it :wink:

1 Like