Skip to content

Nest Macro node meta under config #9447

@QMalcolm

Description

@QMalcolm

Housekeeping

  • I am a maintainer of dbt-core

Short description

The old/deprecated way of having meta was putting it directly on a node. However, awhile back we deprecated that paradigm and moved to nesting meta under a node's config. For reasoning I am not aware of, this never made it to Macro nodes. We should begin supporting the "best practice" path

Acceptance criteria

  • Macro nodes have a meta property under their config property
  • During parsing, flat meta specifications should end up under the config.meta

Suggested Tests

  • Macro meta can be specified in the dbt_project.yaml config specification
  • In a macro definition, people can specify meta directly on an macro or under a macro's config, both should end up in the macro's config.meta

Impact to Other Teams

Change impacts Artifacts team (change to the artifacts)

Will backports be required?

No

Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions