Eli Sander
04/28/2025, 12:52 PMkapa.ai
04/28/2025, 12:52 PMkapa.ai
04/28/2025, 12:53 PMsql {{ config( meta={ "owner": "@username", "description": "This is a description" } ) }} <test query here> However, there are some important caveats to be aware of: 1. Elementary primarily associates owners with models, not tests. The owner property is attached to a model, and singular tests are not directly related to models unless you explicitly create that relationship [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1700208196154229). 2. To ensure your singular test is associated with a model's owner, you can add a depends_on expression at the top of your test file: sql -- depends_on: {{ ref('model_name') }} 3. If your singular test depends on multiple models, this can cause issues with owner attribution in Elementary. The platform has a strong link between a test and a model, and it expects a test to be associated with just one model [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1700208196154229). 4. After making these changes, you'll need to run the test so Elementary can pick up the changes [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1675867987431539). For tagging in Slack alerts, note that while subscribers configured at the test level will be tagged, there have been some issues with test-level owners being properly recognized in alerts. As a workaround, you can configure an owner for the model that the singular test references [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1675867987431539). Elementary is continuously improving this functionality, so these limitations may change in future releases. I hope this helps with organizing your singular tests in the Elementary dashboard! Note: If you're still experiencing issues after implementing these suggestions, it might be worth checking if your test and the model it references are in different dbt packages, as this has been identified as a potential cause of owner attribution problems [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1667915416294299).