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
metabase.analyze
API namespace
#42469
Conversation
(mu/defn infer-entity-type :- analyze.schema/Table | ||
(mu/defn infer-entity-type-by-name :- analyze.schema/Table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this because classifiers.name/infer-entity-type
clearly implied this was based on column name, however analyze/infer-entity-type
lost that clarity
This seems to introduce a circular reference:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exposes a thorny circular dependency between the query-processor
and analyze
modules, not sure the easiest way to resolve that.
Otherwise this looks hunky dory
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done
@@ -27,6 +27,7 @@ | |||
[java-time.api :as t] | |||
[malli.core :as mc] | |||
[medley.core :as m] | |||
[metabase.analyze :as analyze] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency bothers me a bit, in my mind models shouldn't depend on higher level modules, if possible. We could "fix" this by moving the constants out to a general config namespace at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, but that's a step 2 thing and step 1 is just getting things in modules. It's going to take a while and several iterations to clean everything up
* Squashed commit * Update config * Backport the kondo ignore stuff from other PR. * `metabase.analyze` API namespace
No description provided.