-
Notifications
You must be signed in to change notification settings - Fork 80
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
[CT-1222] [CT-1220] [Bug] dbt documentation does not list macros that were migrated from dbt-utils #308
Comments
Also I filed this as a bug and it might be the wrong category, couldn't think what missing doc would fall under. Apologies in advance if that wasn't right. |
Thanks @ali-infostrux! I'm going to move this one over to the Here's the spot where we explicitly filter out any macros defined in the dbt-docs/src/app/services/project_service.js Lines 337 to 339 in aa128ea
Should we keep doing that? Perhaps not! There's good reason to want easy access and documentation to these utilities — especially if we added |
I think if at least the list of macros was available in official dbt documentation, then no need for it in generated project doc, but the list of available macros should be available somewhere aside from diving deep into the dbt-core package code to know what's there. |
Fair! We do have this: https://docs.getdbt.com/reference/dbt-jinja-functions/cross-database-macros But that page is not automatically updated today. Whereas, if we included them here, they would be @dbeatty10 Curious if you have a thought here. Relevant to our convo earlier re: the expanded user persona for cross-db macros as utilities / building blocks |
@jtcohen6 auto-generated documentation for our cross-db macros à la Sphinx docs could be handy for the expanded user persona for cross-db macros as utilities / building blocks. @ali-infostrux thanks for reaching out about this! Did you happen to try the search bar in the upper right corner of https://docs.getdbt.com ? When I typed "datediff" I got the following results. The first four results are all Developer Blog posts, but the next two link to our list of macros. Admittedly, this page might be a bit hard to find within the navigation section on the left: |
What I was realizing, thanks to this issue, is that we already have auto-generated docs for macros — it's Bonus points if we could:
|
The more immediate question to answer right now: Are there still good reasons to exclude "internal" macros from the Especially now that we're adding in utilities that users might want to know about, beyond the internal guts that they should happily ignore. This caused confusion for at least one user, and I imagine it's done the same for many more. |
+1 for I wonder if including "internal" macros for |
Indeed, thanks!
I'm ashamed to say I was browsing the doc with 1.1 selected by default so even as I did look throughout the tree, I never found it. My bad there I'm glad that popped a more interesting discussion in the process though! |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is this a new bug in dbt-core?
Current Behavior
dbt documentation currently has no mention of the macros that were migrated from dbt-utils in March (dbt-labs/dbt-core#4813) and subsequently released.
For example for date-diff, dbt-utils doc mentions: "DEPRECATED: This macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package."
Expected Behavior
Having list of macros included in dbt-core and expected behaviour documented like they were in dbt-utils
Steps To Reproduce
Search for macros in the dbt documentation and find nothing. https://docs.getdbt.com/
Search for macros in dbt-utils and see that they are deprecated. https://github.com/dbt-labs/dbt-utils#datediff-source
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: