opendatahub-io / odh-dashboard

Dashboard for ODH
Apache License 2.0
30 stars 168 forks source link

[Tech Debt]: use barrel files to expose component apis and hide internal code #1833

Closed christianvogt closed 9 months ago

christianvogt commented 1 year ago

Feature description

We should adopt a method that allows us to selectively expose component APIs for use across the repo.

Today the app has full access to import any module from the components dir. There is also no clear structure to this directory.

Proposal is to adopt the same pattern defined here: https://github.com/openshift/hac-infra#folder-structure-design

Describe alternatives you've considered

No response

Anything else?

No response

lucferbux commented 1 year ago

We already have barrel files for some parts of the project, such as api, I like the structure attached in the description, it could be beneficial for the rest of the project.

dgutride commented 9 months ago

Migrated to: https://issues.redhat.com/browse/RHOAIENG-2538