villebro commented on PR #38360:
URL: https://github.com/apache/superset/pull/38360#issuecomment-3992367835

   > @villebro Previously, we accepted multiple entry points and now it's a 
single one. Is this intended? I thought entry points would just be another 
contribution type like tools, APIs, etc and you would just need to annotate a 
file instead of a convention.
   
   @michael-s-molina Yes, this is intentional. The single entrypoint mirrors 
our frontend module federation pattern where `index.tsx` serves as the main 
entry point. So on the frontend we have a convention of `index.tsx`, while on 
the backend we have `entrypoint.py`.
   
   IMO, an entrypoint isn't a contribution type like APIs or tools - it's 
infrastructure that simply registers contributions or triggers arbitrary code 
you wish to execute during bootstrap time. The frontend doesn't have 
"entrypoint contributions" either, and multiple entrypoints felt redundant 
since you can simply import multiple modules within a single entrypoint.
   
   TL;DR: the proposed design here harmonizes backend/frontend architecture 
while maintaining full flexibility through imports, and aims to minimize 
developer overhead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to