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

Can't display resources for which there is no dashboard #2104

Open
pablobm opened this issue Dec 28, 2021 · 1 comment
Open

Can't display resources for which there is no dashboard #2104

pablobm opened this issue Dec 28, 2021 · 1 comment
Labels
bug breakages in functionality that is implemented

Comments

@pablobm
Copy link
Collaborator

pablobm commented Dec 28, 2021

  • What were you trying to do?

Displaying (small display with display_resource) a resource for which there is no dashboard.

  • What did you end up with (logs, or, even better, example apps are great!)?

The app breaks as it requires a dashboard.

  • What versions are you running?

    • Rails 6.1
    • administrate 0.16
  • Additional information

This was first raised at #346 (comment) by @nickrivadeneira. It wasn't possible to reopen, and it's a slightly different use case anyway, so I'm creating a new issue to track that.

@pablobm pablobm added the bug breakages in functionality that is implemented label Dec 28, 2021
@pablobm
Copy link
Collaborator Author

pablobm commented Dec 28, 2021

@nickrivadeneira, thank you for the report. I see what you mean.

I'm unsure as to how to fix this. On one hand, I feel that defining the dashboard only to provide display_resource might be the "correct" thing to do, but I see that it might not be very friendly. A way to improve this would be to catch the error at display_associated_resource and replace it with a better one that explains the situation.

But I'm open to other ideas. Do you have anything specific in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug breakages in functionality that is implemented
Projects
None yet
Development

No branches or pull requests

1 participant