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

[Bug]: When querying table relations via @adminjs/relations the hooks for the table are not executed #1594

Open
CodeXiD opened this issue Dec 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@CodeXiD
Copy link

CodeXiD commented Dec 20, 2023

Contact Details

No response

What happened?

When I display the dependency table (Entity2) on the Entity1 view page, it does not display the information that I additionally passed in the hook to get the Entity2 table, that is, I assume that when receiving relations, the hook is simply not executed, I think it would be logical that when receiving relations, the same hooks would be executed as for the target entity in the resource, so that I could control the data that I want to display or modify in the table when displaying it.

Bug prevalence

always

AdminJS dependencies version

"@adminjs/design-system": "^4.0.3",
"@adminjs/express": "^6.0.1",
"@adminjs/import-export": "^3.0.0",
"@adminjs/nestjs": "^6.0.1",
"@adminjs/relations": "^1.0.0",
"@adminjs/typeorm": "^5.0.0",
"adminjs": "^7.3.0",

What browsers do you see the problem on?

Chrome

Relevant log output

No response

Relevant code that's giving you issues

No response

@CodeXiD CodeXiD added the bug Something isn't working label Dec 20, 2023
@hossamhamzahm
Copy link

Same issue here, any workarounds bro?

@CodeXiD
Copy link
Author

CodeXiD commented Apr 26, 2024

@hossamhamzahm We did not find a way to solve this and scored 🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants