Issue with Assigning Clients in Company Database – Missing Recent Entries

Feature(s) impacted

The relationship assignment feature within the Company collection, for instance when assigning a Client.

Observed behavior

When trying to assign a new Client to a Company, the search bar does not return recent Clients. Even when typing the full name, only older entries appear, while the recent ones (which are confirmed to exist in the database) are missing from the search results.

Expected behavior

The search bar should return all matching Clients, including the most recent ones, based on the input provided. Typing a full name should also guarantee a result if the entry exists in the database.

Failure Logs
https://jam.dev/c/4c8c3666-25a6-49a9-89db-769daf5ef570
There are no visible errors in the UI, but the search query may not be fetching the most recent records. Please let me know if there are any logs I should check.

Context

Project name: [VOGZ - Backoffice]

Team name: [MAIN - Alan Ghenassia]

Environment name: [Production / Staging /]

Agent technology: Node.js

Agent (forest package) name & version: [Latest]

Database type: [Mongodb]

Recent changes made on your end: No major changes to the schema, but please let me know if any additional debugging steps are needed.

Hi @VOGZ :wave: and welcome in our community :champagne: !

Do you remember since when this issue is happening ?
Could you share your package.json too ?

You could also put your loggerLevel to Debug, it would greatly help if you could give the mongoose request that is generated when you have the issue.

Sadly at the moment we do not reproduce your issue on our side :disappointed:

Hello @VOGZ,

We have identified an issue with the search bar query filtering order.
A fix has been done in the package @forestadmin/datasource-mongoose@1.11.1,
please upgrade your agent and let us know if that fixes your issue :pray:

@Nicolas.M

Hey,

Thanks a lot, everything is working fine now.

1 Like