Problem with Smart Relationships in Related Data after upgrade

Expected behavior

Return all related data with specific requests

Actual behavior

Actually no custom route for my smart relashionship was loaded. Route like /MODEL/:model_id/relationships/OTHER_MODEL were not found on chrome console tabs network. It seems to be a regression with forest 8. With forest 7 everything worked fine.

Failure Logs

If a write a console.log on custom routes, nothing is send to the console.

Context

My custom attribute how was defined on my forest file:

The custom route with console.log (who was never write in the console)

My chrome network tab with search:

The content of my related data page for “Topic”:

My console:

My relashionshipHelper (for more context):

Please provide any relevant information about your setup.

  • Package Version: ^8.0.0
  • Express Version: ~4.17.1
  • Mongoose Version: ~5.8.2
  • Database Dialect: Mongodb
  • Project Name: Intent

Thanks for your help

There is a known bug with 8.0.0 and related data.
Can you upgrade to the latest 8.x.x version, and tell me if the issue is still there?

npm i forest-express-mongoose@latest

1 Like

Thanks a lot everything works fine now. Thanks for your reactivity :slight_smile: