SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.07k stars 650 forks source link

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

Open CodeXiD opened 7 months ago

CodeXiD commented 7 months ago

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

hossamhamzahm commented 2 months ago

Same issue here, any workarounds bro?

CodeXiD commented 2 months ago

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