Releases: fivetran/dbt_lever_source
v0.8.1 dbt_lever_source
PR #34 Includes the following updates:
Bug Fixes
- The
opportunity_idcolumn in thestg_lever__offermodel was generated via thecandidate_idfield. This has now been updated to leverage the trueopportunity_idfield if present. If not present, thecandidate_idfield will be used.
Feature Updates
- Introduced the
tagscolumn in the below staging models. This field is preferred over the deprecatedtagcolumn. The resulting column in the staging model will still betag_name. No schema change results from this update, only column preference.stg_lever__opportunity_tagstg_lever__posting_tag
- The uniqueness test for the
stg_lever__opportunitymodel has been adjusted to include theopportunity_idin the unique combination of columns test. This update was made to correspond with connector updates. See below for the columns used in the uniqueness test.source_relationoffer_idopportunity_id
Under the Hood
- Updated documentation for all above new/modified columns.
- Introduced the generate-docs github workflow for consistent docs generation.
Full Changelog: v0.8.0...v0.8.1
v0.8.0 dbt_lever_source
PR #33 includes the following updates:
Breaking Change for dbt Core < 1.9.6
Note: This is not relevant to Fivetran Quickstart users.
Migrated freshness from a top-level source property to a source config in alignment with recent updates from dbt Core. This will resolve the following deprecation warning that users running dbt >= 1.9.6 may have received:
[WARNING]: Deprecated functionality
Found `freshness` as a top-level property of `lever` in file
`models/src_lever.yml`. The `freshness` top-level property should be moved
into the `config` of `lever`.
IMPORTANT: Users running dbt Core < 1.9.6 will not be able to utilize freshness tests in this release or any subsequent releases, as older versions of dbt will not recognize freshness as a source config and therefore not run the tests.
If you are using dbt Core < 1.9.6 and want to continue running Lever freshness tests, please elect one of the following options:
- (Recommended) Upgrade to dbt Core >= 1.9.6
- Do not upgrade your installed version of the
lever_sourcepackage. Pin your dependency on v0.7.1 in yourpackages.ymlfile. - Utilize a dbt override to overwrite the package's
leversource and apply freshness via the previous release top-level property route. This will require you to copy and paste the entirety of the previous releasesrc_lever.ymlfile and add anoverrides: lever_sourceproperty.
Under the Hood
- Updates to ensure integration tests use latest version of dbt.
Full Changelog: v0.7.1...v0.8.0
v0.7.1 dbt_lever_source
Under the Hood
- Prepends
materializedconfigs in the package'sdbt_project.ymlfile with+to improve compatibility with the newer versions of dbt-core starting with v1.10.0. (PR #30) - Updates the package maintainer pull request template. (PR #31)
Documentation
- Corrected references to connectors and connections in the README. (#29)
Contributors
Full Changelog: v0.7.0...v0.7.1
v0.7.0 dbt_lever_source
PR #26 includes the following updates:
Features
- For Fivetran Lever connectors created on or after July 27, 2024, the
USERandINTERVIEWER_USERsource tables have been renamed toUSERSandINTERVIEW_USER, respectively. This package now prioritizes theUSERSandINTERVIEW_USERtables if available, falling back toUSERandINTERVIEWER_USERif not.- If you have both tables in your schema and would like to specify this package to leverage the
USERand/orINTERVIEWER_USERtables, you can set the variableslever__using_usersand/orlever__using_interview_userto false in yourdbt_project.yml. - For more information, refer to the July 2024 connector release notes and the related README section.
- If you have both tables in your schema and would like to specify this package to leverage the
- Introduced the ability to union source data from multiple Lever connectors. For more details, see the related README section.
Bug fixes
- Fixed an issue where the dbt package would error due to a missing
CONTACT_LINKsource table for users without the titular source data, even if it was enabled in the Fivetran Connector. A null-filled table will now be generated in such cases.
Under the hood
- Turned off freshness tests for
USER/USERSandINTERVIEW_USER/INTERVIEWER_USERto avoid possible conflicts. - Updated temporary models to union source data using the
fivetran_utils.union_datamacro. - Added the
source_relationcolumn in each staging model to identify the origin of each field, utilizing thefivetran_utils.source_relationmacro. - Updated tests to include the new
source_relationcolumn. - Added
not_nulltests for the relevant fields within each staging model.
Full Changelog: v0.6.0...v0.7.0
v0.6.0 dbt_lever_source
This release of dbt_lever_source includes:
🎉 Feature Update 🎉
- PostgreSQL and Databricks compatibility! (#21)
🚘 Under the Hood 🚘
- Incorporated the new
fivetran_utils.drop_schemas_automationmacro into the end of each Buildkite integration test job. (#19) - Updated the pull request templates. (#19)
Full Changelog: v0.5.0...v0.6.0
dbt_lever_source v0.5.0
🚨 Breaking Changes 🚨:
PR #17 includes the following breaking changes:
- Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically
{{ dbt_utils.<macro> }}have been updated to{{ dbt.<macro> }}for the below macros:any_valuebool_orcast_bool_to_textconcatdate_truncdateadddatediffescape_single_quotesexcepthashintersectlast_daylengthlistaggpositionreplacerightsafe_castsplit_partstring_literaltype_biginttype_floattype_inttype_numerictype_stringtype_timestamparray_appendarray_concatarray_construct
- For
current_timestampandcurrent_timestamp_in_utcmacros, the dispatch AND the macro names have been updated to the below, respectively:dbt.current_timestamp_backcompatdbt.current_timestamp_in_utc_backcompat
- Dependencies on
fivetran/fivetran_utilshave been upgraded, previously[">=0.3.0", "<0.4.0"]now[">=0.4.0", "<0.5.0"].
dbt_lever_source v0.4.1
A wizardly Wednesday to all of you! 🧙♂️ 🧙♀️
Package updates
- We added column names in final staging model CTEs to follow best practices for model development. (#16)
dbt_lever_source v0.4.0
🎉 Documentation and Feature Updates
- Apply package standardization updates
- Updated README documentation updates for easier navigation and setup of the dbt package
- Included
lever_[source_table_name]_identifiervariable for additional flexibility within the package when source tables are named differently.
dbt_lever_source 0.3.1
Happy Tuesday 🌮
This release of the dbt_lever_source package includes the following updates:
Under the Hood
- Casted all staging model timestamp fields as
dbt_utils.type_timestamp()in order for downstream date functions to properly compile across warehouses. (#11)
dbt_lever_source v0.3.0
🎉 dbt v1.0.0 Compatibility 🎉
🚨 Breaking Changes 🚨
- Adjusts the
require-dbt-versionto now be within the range [">=1.0.0", "<2.0.0"]. Additionally, the package has been updated for dbt v1.0.0 compatibility. If you are using a dbt version <1.0.0, you will need to upgrade in order to leverage the latest version of the package.- For help upgrading your package, I recommend reviewing this GitHub repo's Release Notes on what changes have been implemented since your last upgrade.
- For help upgrading your dbt project to dbt v1.0.0, I recommend reviewing dbt-labs upgrading to 1.0.0 docs for more details on what changes must be made.
- Upgrades the package dependency to refer to the latest
dbt_fivetran_utils. The latestdbt_fivetran_utilspackage also has a dependency ondbt_utils[">=0.8.0", "<0.9.0"].- Please note, if you are installing a version of
dbt_utilsin yourpackages.ymlthat is not in the range above then you will encounter a package dependency error.
- Please note, if you are installing a version of