This collection cannot be found

Feature(s) impacted

Clicking to create an associated object in my Rails app via the Forest Admin edit page for an object.

Observed behavior

Clicking Create a new book in series here:

Returns the following page:

Expected behavior

A form to pop up, similar to the Create form for the associated model, but with details pertaining to the associated object filled out.

We can submit that form and then be taken back to the original Edit page to continue with our edits!

Failure Logs

Just getting 404 errors in my logs.

Context

This has previously always worked and has suddenly stopped working on all environments, including my local development environment.

We’ve made no changes that should impact Forest.

Hello @Nadia,

Thank you for the feedback.

Since it happened in all your environments at the same time, it seems to point to a regression on the UI.
But I was unable to reproduce this error behavior. It is ok to create a related record while creating a record.

To go further, these informations will help:

  • Are you able to browse / manipulate the collections book and series independently correctly?
  • Can you please share the models files for the entities book and series? Any related configuration is
  • Can you please share an HAR* of the failing scenario?
  • Can you please provide the package versions used in your server?

Thank you

XHR*: you can create an HAR by using the network tab of your browser.
1- clean the network calls
2- do again the failing scenario
3- Export a HAR file by right-clicking on the list of network calls and select “save all as HAR with content”

Hi @Sliman_Medini!

Are you able to browse / manipulate the collections book and series independently correctly?
Yes!

Can you please share the models files for the entities book and series? Any related configuration is

I don’t think it’s related to the book or series model. Not being able to create a related object is happening with every single model in the app.

Can you please share an HAR of the failing scenario?*

While going to generate the HAR, I noticed this in the console:

I’ll DM you the .har file!

Can you please provide the package versions used in your server?

  • Rails 6.1.4.4
  • forest_liana 7.2.2

Hello @Nadia,

Thanks for your message.

A fix has been released just now.
Could you please try again and tell me if it’s fixed on your side?

Thanks!

Hello @adriguy! It works! Thank you!

What was the problem?

1 Like

Great news @Nadia, thanks for your prompt answer!

A routing issue on our side :confused: Sorry again!

1 Like