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

[Feature Request] Show prefetched rows with the DBIC Filter #161

Open
rabbiveesh opened this issue Mar 13, 2021 · 1 comment
Open

[Feature Request] Show prefetched rows with the DBIC Filter #161

rabbiveesh opened this issue Mar 13, 2021 · 1 comment

Comments

@rabbiveesh
Copy link
Contributor

I love the DB filter for showing DBIC Rows. One thing that could be added is to show prefetched relations. Right now, it just shows the parent row.

I'll try and find some time to look into if this is difficult or not. But may as well float the idea here to see if it's a bad idea.

@garu
Copy link
Owner

garu commented Mar 14, 2021

I'm really glad you're enjoying the filter! If there's a clean (i.e. non-private) way to test whether a relationship has been prefetched or not, I think it could be a great addition to the filter. The way I see it there should be two new options:

filter_db.list_prefecthed - true/false, whether to list which relationships are prefetched;
filter_db.expand_prefetched - to expand them just like class.expand does: any true number means how many levels deep to go.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants