From 5a401a9e8dd46e4582ac4edd2883e34714e77530 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 5 Nov 2024 09:16:58 -0600 Subject: [PATCH 1/3] bump version to 1.12.0 (#217) --- dbt_common/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_common/__about__.py b/dbt_common/__about__.py index b6c3033..134ed00 100644 --- a/dbt_common/__about__.py +++ b/dbt_common/__about__.py @@ -1 +1 @@ -version = "1.11.0" +version = "1.12.0" From bdf827a2c14d94e1307c245f0652581b847c5fde Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 6 Nov 2024 12:26:26 -0600 Subject: [PATCH 2/3] update macos runner (#215) --- .github/workflows/ci_dbt_core_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_dbt_core_testing.yml b/.github/workflows/ci_dbt_core_testing.yml index 4deab18..37016e8 100644 --- a/.github/workflows/ci_dbt_core_testing.yml +++ b/.github/workflows/ci_dbt_core_testing.yml @@ -173,7 +173,7 @@ jobs: - name: "generate include" id: generate-include run: | - INCLUDE=('"python-version":"3.9","os":"windows-latest"' '"python-version":"3.9","os":"macos-12"' ) + INCLUDE=('"python-version":"3.9","os":"windows-latest"' '"python-version":"3.9","os":"macos-14"' ) INCLUDE_GROUPS="[" for include in ${INCLUDE[@]}; do for group in $(seq 1 ${{ env.PYTHON_INTEGRATION_TEST_WORKERS }}); do From 1c9da9fb867908e939996d081e1aa261d6feff29 Mon Sep 17 00:00:00 2001 From: Peter Webb Date: Mon, 11 Nov 2024 15:16:33 -0500 Subject: [PATCH 3/3] Changelog Repair (#175) * Reconstruct missing changelog history * Merge changelog * Fix file formatting --- .changes/0.1.1.md | 10 ++ .changes/0.1.3.md | 7 + .changes/0.1.4.md | 9 ++ .changes/0.1.5.md | 5 + .changes/0.1.6.md | 9 ++ .changes/1.0.0.md | 7 + .changes/1.0.1.md | 6 + .changes/1.0.2.md | 9 ++ .changes/1.0.3.md | 6 + .changes/1.0.4.md | 5 + .changes/1.1.0.md | 6 + .changes/1.2.0.md | 6 + .changes/1.3.0.md | 5 + .changes/1.4.0.md | 6 + .changes/1.6.0.md | 9 ++ .changes/1.7.0.md | 5 + .changes/header.tpl.md | 2 +- .../Dependencies-20240425-112704.yaml | 6 - .../Dependencies-20240501-140032.yaml | 6 - .../unreleased/Features-20240131-152923.yaml | 6 - .../unreleased/Features-20240201-101851.yaml | 6 - .../unreleased/Features-20240201-104437.yaml | 6 - .../unreleased/Features-20240410-090810.yaml | 6 - .../unreleased/Features-20240412-105245.yaml | 6 - .../unreleased/Features-20240419-232030.yaml | 6 - .../unreleased/Features-20240506-170058.yaml | 6 - .../unreleased/Features-20240514-162052.yaml | 6 - .../unreleased/Features-20240515-161106.yaml | 6 - .../unreleased/Features-20240716-102457.yaml | 6 - .../unreleased/Fixes-20240206-160231.yaml | 6 - .../unreleased/Fixes-20240221-200204.yaml | 6 - .../unreleased/Fixes-20240715-205355.yaml | 6 - .../Under the Hood-20240122-163546.yaml | 6 - .../Under the Hood-20240123-161107.yaml | 6 - .../Under the Hood-20240123-194242.yaml | 6 - .../Under the Hood-20240206-081323.yaml | 6 - .../Under the Hood-20240208-100709.yaml | 6 - .../Under the Hood-20240221-104344.yaml | 6 - .../Under the Hood-20240227-145400.yaml | 6 - .../Under the Hood-20240314-161737.yaml | 6 - .../Under the Hood-20240319-122548.yaml | 6 - .../Under the Hood-20240423-080648.yaml | 6 - .../Under the Hood-20240528-110518.yaml | 6 - .../Under the Hood-20240529-143154.yaml | 6 - .../Under the Hood-20240603-123631.yaml | 6 - .../Under the Hood-20240617-204541.yaml | 6 - .../Under the Hood-20240618-155025.yaml | 6 - .../Under the Hood-20240716-125753.yaml | 6 - CHANGELOG.md | 135 +++++++++++++++++- 49 files changed, 240 insertions(+), 193 deletions(-) create mode 100644 .changes/0.1.1.md create mode 100644 .changes/0.1.3.md create mode 100644 .changes/0.1.4.md create mode 100644 .changes/0.1.5.md create mode 100644 .changes/0.1.6.md create mode 100644 .changes/1.0.0.md create mode 100644 .changes/1.0.1.md create mode 100644 .changes/1.0.2.md create mode 100644 .changes/1.0.3.md create mode 100644 .changes/1.0.4.md create mode 100644 .changes/1.1.0.md create mode 100644 .changes/1.2.0.md create mode 100644 .changes/1.3.0.md create mode 100644 .changes/1.4.0.md create mode 100644 .changes/1.6.0.md create mode 100644 .changes/1.7.0.md delete mode 100644 .changes/unreleased/Dependencies-20240425-112704.yaml delete mode 100644 .changes/unreleased/Dependencies-20240501-140032.yaml delete mode 100644 .changes/unreleased/Features-20240131-152923.yaml delete mode 100644 .changes/unreleased/Features-20240201-101851.yaml delete mode 100644 .changes/unreleased/Features-20240201-104437.yaml delete mode 100644 .changes/unreleased/Features-20240410-090810.yaml delete mode 100644 .changes/unreleased/Features-20240412-105245.yaml delete mode 100644 .changes/unreleased/Features-20240419-232030.yaml delete mode 100644 .changes/unreleased/Features-20240506-170058.yaml delete mode 100644 .changes/unreleased/Features-20240514-162052.yaml delete mode 100644 .changes/unreleased/Features-20240515-161106.yaml delete mode 100644 .changes/unreleased/Features-20240716-102457.yaml delete mode 100644 .changes/unreleased/Fixes-20240206-160231.yaml delete mode 100644 .changes/unreleased/Fixes-20240221-200204.yaml delete mode 100644 .changes/unreleased/Fixes-20240715-205355.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240122-163546.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240123-161107.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240123-194242.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240206-081323.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240208-100709.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240221-104344.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240227-145400.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240314-161737.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240319-122548.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240423-080648.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240528-110518.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240529-143154.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240603-123631.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240617-204541.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240618-155025.yaml delete mode 100644 .changes/unreleased/Under the Hood-20240716-125753.yaml diff --git a/.changes/0.1.1.md b/.changes/0.1.1.md new file mode 100644 index 0000000..c5c8087 --- /dev/null +++ b/.changes/0.1.1.md @@ -0,0 +1,10 @@ +## dbt-common 0.1.1 - January 26, 2024 + +### Under the Hood + +- Clean up macro contexts. ([#35](https://github.com/dbt-labs/dbt-common/issues/35)) +- Change metadata_vars \`if not\` to \`if ... is None\` ([#6073](https://github.com/dbt-labs/dbt-common/issues/6073)) +- Inject TagIterator into BlockIterator for greater flexibility. ([#38](https://github.com/dbt-labs/dbt-common/issues/38)) + +### Contributors +- [@truls-p](https://github.com/truls-p) ([#6073](https://github.com/dbt-labs/dbt-common/issues/6073)) diff --git a/.changes/0.1.3.md b/.changes/0.1.3.md new file mode 100644 index 0000000..08a00b1 --- /dev/null +++ b/.changes/0.1.3.md @@ -0,0 +1,7 @@ +## dbt-common 0.1.3 - February 1, 2024 + +### Features + +- Cache static objects between tests to accelerate integration runs. ([#55](https://github.com/dbt-labs/dbt-common/issues/55)) +- Added a new InvocationContext class for application context management. ([#57](https://github.com/dbt-labs/dbt-common/issues/57)) +- Add dataclass utility `Mergeable` ([#58](https://github.com/dbt-labs/dbt-common/issues/58)) diff --git a/.changes/0.1.4.md b/.changes/0.1.4.md new file mode 100644 index 0000000..1363347 --- /dev/null +++ b/.changes/0.1.4.md @@ -0,0 +1,9 @@ +## dbt-common 0.1.4 - February 7, 2024 + +### Fixes + +- Make invocation contexts more reliable in testing scenarios. ([#52](https://github.com/dbt-labs/dbt-common/issues/52)) + +### Under the Hood + +- Remove `fire_event_if_test` method ([#66](https://github.com/dbt-labs/dbt-common/issues/66)) diff --git a/.changes/0.1.5.md b/.changes/0.1.5.md new file mode 100644 index 0000000..579829f --- /dev/null +++ b/.changes/0.1.5.md @@ -0,0 +1,5 @@ +## dbt-common 0.1.65- February 8, 2024 + +### Under the Hood + +- Add Invocation Context Support to MultiThreadedExecutor ([#75](https://github.com/dbt-labs/dbt-common/issues/75)) diff --git a/.changes/0.1.6.md b/.changes/0.1.6.md new file mode 100644 index 0000000..bf11004 --- /dev/null +++ b/.changes/0.1.6.md @@ -0,0 +1,9 @@ +## dbt-common 0.1.6 - February 22, 2024 + +### Fixes + +- Fix the unset_contextvars function in events/contextvars.py ([#82](https://github.com/dbt-labs/dbt-common/issues/82)) + +### Under the Hood + +- Restrict protobuf library to major version 4. ([#9566](https://github.com/dbt-labs/dbt-common/issues/9566)) diff --git a/.changes/1.0.0.md b/.changes/1.0.0.md new file mode 100644 index 0000000..6ae4f82 --- /dev/null +++ b/.changes/1.0.0.md @@ -0,0 +1,7 @@ +## dbt-common 1.0.0 - April 1, 2024 + +### Under the Hood + +- Implement record/replay mechanism ([#9689](https://github.com/dbt-labs/dbt-common/issues/9689)) +- Stream JSON on read/write instead of holding it in memory ([#96](https://github.com/dbt-labs/dbt-common/issues/96)) +- Improve startup performance by lazy-compiling mashumaro serialization functions ([#97](https://github.com/dbt-labs/dbt-common/issues/97)) diff --git a/.changes/1.0.1.md b/.changes/1.0.1.md new file mode 100644 index 0000000..dd926ad --- /dev/null +++ b/.changes/1.0.1.md @@ -0,0 +1,6 @@ +## dbt-common 1.0.1 - April 12, 2024 + +### Features + +- Support environment variables which dbt can see but user code cannot. ([#103](https://github.com/dbt-labs/dbt-common/issues/103)) +- Add `error_tag` util to the `ui` module ([#107](https://github.com/dbt-labs/dbt-common/issues/107)) diff --git a/.changes/1.0.2.md b/.changes/1.0.2.md new file mode 100644 index 0000000..5feb9a1 --- /dev/null +++ b/.changes/1.0.2.md @@ -0,0 +1,9 @@ +## dbt-common 1.0.2 - April 24, 2024 + +### Features + +- Add ability to silence warnings via `WarnErrorOptions` ([#111](https://github.com/dbt-labs/dbt-common/issues/111)) + +### Under the Hood + +- Remove the final underscore from secret and private environment variable constants. ([#109](https://github.com/dbt-labs/dbt-common/issues/109)) diff --git a/.changes/1.0.3.md b/.changes/1.0.3.md new file mode 100644 index 0000000..a3d5b7a --- /dev/null +++ b/.changes/1.0.3.md @@ -0,0 +1,6 @@ +## dbt-common 1.0.3 - May 1, 2024 + +### Dependencies + +- Pin agate `>=1.7.0,<1.10` ([#119](https://github.com/dbt-labs/dbt-common/pull/119)) +- update pathspec upper version limitation ([#120](https://github.com/dbt-labs/dbt-common/pull/120)) diff --git a/.changes/1.0.4.md b/.changes/1.0.4.md new file mode 100644 index 0000000..333027c --- /dev/null +++ b/.changes/1.0.4.md @@ -0,0 +1,5 @@ +## dbt-common 1.0.4 - May 7, 2024 + +### Features + +- Enable serialization contexts ([#126](https://github.com/dbt-labs/dbt-common/issues/126)) diff --git a/.changes/1.1.0.md b/.changes/1.1.0.md new file mode 100644 index 0000000..54d1ea9 --- /dev/null +++ b/.changes/1.1.0.md @@ -0,0 +1,6 @@ +## dbt-common 1.1.0 - May 21, 2024 + +### Features + +- Support adding callbacks to the event manager ([#131](https://github.com/dbt-labs/dbt-common/issues/131)) +- Add a print event to support firing event to console in --quiet mode ([#8756](https://github.com/dbt-labs/dbt-common/issues/8756)) diff --git a/.changes/1.2.0.md b/.changes/1.2.0.md new file mode 100644 index 0000000..5847497 --- /dev/null +++ b/.changes/1.2.0.md @@ -0,0 +1,6 @@ +## dbt-common 1.2.0 - May 29, 2024 + +### Under the Hood + +- Allow dynamic selection of record types when recording. ([#140](https://github.com/dbt-labs/dbt-common/issues/140)) +- Move StatsItem, StatsDict, TableMetadata to dbt-common ([#141](https://github.com/dbt-labs/dbt-common/issues/141)) diff --git a/.changes/1.3.0.md b/.changes/1.3.0.md new file mode 100644 index 0000000..9b94fae --- /dev/null +++ b/.changes/1.3.0.md @@ -0,0 +1,5 @@ +## dbt-common 1.3.0 - June 5, 2024 + +### Under the Hood + +- Move CatalogKey, ColumnMetadata, ColumnMap, CatalogTable to dbt-common ([#147](https://github.com/dbt-labs/dbt-common/issues/147)) diff --git a/.changes/1.4.0.md b/.changes/1.4.0.md new file mode 100644 index 0000000..b5db0b8 --- /dev/null +++ b/.changes/1.4.0.md @@ -0,0 +1,6 @@ +## dbt-common 1.4.0 - June 18, 2024 + +### Under the Hood + +- Add support for basic diff of run recordings. ([#144](https://github.com/dbt-labs/dbt-common/issues/144)) +- Deserialize Record objects on a just-in-time basis. ([#151](https://github.com/dbt-labs/dbt-common/issues/151)) diff --git a/.changes/1.6.0.md b/.changes/1.6.0.md new file mode 100644 index 0000000..64ab621 --- /dev/null +++ b/.changes/1.6.0.md @@ -0,0 +1,9 @@ +## dbt-common 1.6.0 - July 2, 2024 + +### Features + +- Add to and to_columns to ColumnLevelConstraint and ModelLevelConstraint contracts ([#168](https://github.com/dbt-labs/dbt-common/issues/168)) + +### Fixes + +- Fix case-insensitive env vars for Windows ([#166](https://github.com/dbt-labs/dbt-common/issues/166)) diff --git a/.changes/1.7.0.md b/.changes/1.7.0.md new file mode 100644 index 0000000..2d86eb5 --- /dev/null +++ b/.changes/1.7.0.md @@ -0,0 +1,5 @@ +## dbt-common 1.7.0 - July 30, 2024 + +### Under the Hood + +- Add record grouping mechanism to record/replay. ([#169](https://github.com/dbt-labs/dbt-common/issues/169)) diff --git a/.changes/header.tpl.md b/.changes/header.tpl.md index 8bee7b4..4dbd720 100644 --- a/.changes/header.tpl.md +++ b/.changes/header.tpl.md @@ -1,4 +1,4 @@ -# dbt Core Changelog +# dbt-common Changelog - This file provides a full account of all changes to `dbt-common` - Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. diff --git a/.changes/unreleased/Dependencies-20240425-112704.yaml b/.changes/unreleased/Dependencies-20240425-112704.yaml deleted file mode 100644 index 1805a41..0000000 --- a/.changes/unreleased/Dependencies-20240425-112704.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Pin agate `>=1.7.0,<1.10` -time: 2024-04-25T11:27:04.91767-05:00 -custom: - Author: emmyoop - PR: "119" diff --git a/.changes/unreleased/Dependencies-20240501-140032.yaml b/.changes/unreleased/Dependencies-20240501-140032.yaml deleted file mode 100644 index bc21f82..0000000 --- a/.changes/unreleased/Dependencies-20240501-140032.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: update pathspec upper version limitation -time: 2024-05-01T14:00:32.257513+10:00 -custom: - Author: jerry153fish - PR: "120" diff --git a/.changes/unreleased/Features-20240131-152923.yaml b/.changes/unreleased/Features-20240131-152923.yaml deleted file mode 100644 index fc64926..0000000 --- a/.changes/unreleased/Features-20240131-152923.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Cache static objects between tests to accelerate integration runs. -time: 2024-01-31T15:29:23.951857-05:00 -custom: - Author: peterallenwebb - Issue: "55" diff --git a/.changes/unreleased/Features-20240201-101851.yaml b/.changes/unreleased/Features-20240201-101851.yaml deleted file mode 100644 index fdd88f5..0000000 --- a/.changes/unreleased/Features-20240201-101851.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add dataclass utility `Mergeable` -time: 2024-02-01T10:18:51.474231-08:00 -custom: - Author: QMalcolm - Issue: "58" diff --git a/.changes/unreleased/Features-20240201-104437.yaml b/.changes/unreleased/Features-20240201-104437.yaml deleted file mode 100644 index ff251fa..0000000 --- a/.changes/unreleased/Features-20240201-104437.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Added a new InvocationContext class for application context management. -time: 2024-02-01T10:44:37.161298-05:00 -custom: - Author: peterallenwebb - Issue: "57" diff --git a/.changes/unreleased/Features-20240410-090810.yaml b/.changes/unreleased/Features-20240410-090810.yaml deleted file mode 100644 index e947316..0000000 --- a/.changes/unreleased/Features-20240410-090810.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support environment variables which dbt can see but user code cannot. -time: 2024-04-10T09:08:10.068999-04:00 -custom: - Author: peterallenwebb - Issue: "103" diff --git a/.changes/unreleased/Features-20240412-105245.yaml b/.changes/unreleased/Features-20240412-105245.yaml deleted file mode 100644 index 2712c27..0000000 --- a/.changes/unreleased/Features-20240412-105245.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add `error_tag` util to the `ui` module -time: 2024-04-12T10:52:45.887334-07:00 -custom: - Author: QMalcolm - Issue: "107" diff --git a/.changes/unreleased/Features-20240419-232030.yaml b/.changes/unreleased/Features-20240419-232030.yaml deleted file mode 100644 index bd4e621..0000000 --- a/.changes/unreleased/Features-20240419-232030.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add ability to silence warnings via `WarnErrorOptions` -time: 2024-04-19T23:20:30.014054-07:00 -custom: - Author: QMalcolm - Issue: "111" diff --git a/.changes/unreleased/Features-20240506-170058.yaml b/.changes/unreleased/Features-20240506-170058.yaml deleted file mode 100644 index d378e22..0000000 --- a/.changes/unreleased/Features-20240506-170058.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Enable serialization contexts -time: 2024-05-06T17:00:58.272104-04:00 -custom: - Author: gshank - Issue: "126" diff --git a/.changes/unreleased/Features-20240514-162052.yaml b/.changes/unreleased/Features-20240514-162052.yaml deleted file mode 100644 index 1503c47..0000000 --- a/.changes/unreleased/Features-20240514-162052.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support adding callbacks to the event manager -time: 2024-05-14T16:20:52.120336-07:00 -custom: - Author: QMalcolm - Issue: "131" diff --git a/.changes/unreleased/Features-20240515-161106.yaml b/.changes/unreleased/Features-20240515-161106.yaml deleted file mode 100644 index ef4b7af..0000000 --- a/.changes/unreleased/Features-20240515-161106.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add a print event to support firing event to console in --quiet mode -time: 2024-05-15T16:11:06.815526-07:00 -custom: - Author: ChenyuLInx - Issue: "8756" diff --git a/.changes/unreleased/Features-20240716-102457.yaml b/.changes/unreleased/Features-20240716-102457.yaml deleted file mode 100644 index 096b425..0000000 --- a/.changes/unreleased/Features-20240716-102457.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add to and to_columns to ColumnLevelConstraint and ModelLevelConstraint contracts -time: 2024-07-16T10:24:57.11251-04:00 -custom: - Author: michelleark - Issue: "168" diff --git a/.changes/unreleased/Fixes-20240206-160231.yaml b/.changes/unreleased/Fixes-20240206-160231.yaml deleted file mode 100644 index a00205b..0000000 --- a/.changes/unreleased/Fixes-20240206-160231.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Make invocation contexts more reliable in testing scenarios. -time: 2024-02-06T16:02:31.81842-05:00 -custom: - Author: peterallenwebb - Issue: "52" diff --git a/.changes/unreleased/Fixes-20240221-200204.yaml b/.changes/unreleased/Fixes-20240221-200204.yaml deleted file mode 100644 index 8df4eb1..0000000 --- a/.changes/unreleased/Fixes-20240221-200204.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix the unset_contextvars function in events/contextvars.py -time: 2024-02-21T20:02:04.341681-05:00 -custom: - Author: gshank - Issue: "82" diff --git a/.changes/unreleased/Fixes-20240715-205355.yaml b/.changes/unreleased/Fixes-20240715-205355.yaml deleted file mode 100644 index 780a6ad..0000000 --- a/.changes/unreleased/Fixes-20240715-205355.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix case-insensitive env vars for Windows -time: 2024-07-15T20:53:55.946355+01:00 -custom: - Author: peterallenwebb aranke - Issue: "166" diff --git a/.changes/unreleased/Under the Hood-20240122-163546.yaml b/.changes/unreleased/Under the Hood-20240122-163546.yaml deleted file mode 100644 index 0d32e2e..0000000 --- a/.changes/unreleased/Under the Hood-20240122-163546.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Clean up macro contexts. -time: 2024-01-22T16:35:46.907999-05:00 -custom: - Author: peterallenwebb - Issue: "35" diff --git a/.changes/unreleased/Under the Hood-20240123-161107.yaml b/.changes/unreleased/Under the Hood-20240123-161107.yaml deleted file mode 100644 index 68a83ab..0000000 --- a/.changes/unreleased/Under the Hood-20240123-161107.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Inject TagIterator into BlockIterator for greater flexibility. -time: 2024-01-23T16:11:07.24321-05:00 -custom: - Author: peterallenwebb - Issue: "38" diff --git a/.changes/unreleased/Under the Hood-20240123-194242.yaml b/.changes/unreleased/Under the Hood-20240123-194242.yaml deleted file mode 100644 index a0cb743..0000000 --- a/.changes/unreleased/Under the Hood-20240123-194242.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Change metadata_vars \`if not\` to \`if ... is None\` -time: 2024-01-23T19:42:42.95727089Z -custom: - Author: truls-p - Issue: "6073" diff --git a/.changes/unreleased/Under the Hood-20240206-081323.yaml b/.changes/unreleased/Under the Hood-20240206-081323.yaml deleted file mode 100644 index f5565b0..0000000 --- a/.changes/unreleased/Under the Hood-20240206-081323.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove `fire_event_if_test` method -time: 2024-02-06T08:13:23.722615-06:00 -custom: - Author: emmyoop - Issue: "66" diff --git a/.changes/unreleased/Under the Hood-20240208-100709.yaml b/.changes/unreleased/Under the Hood-20240208-100709.yaml deleted file mode 100644 index 2c824b3..0000000 --- a/.changes/unreleased/Under the Hood-20240208-100709.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add Invocation Context Support to MultiThreadedExecutor -time: 2024-02-08T10:07:09.584747-05:00 -custom: - Author: peterallenwebb - Issue: "75" diff --git a/.changes/unreleased/Under the Hood-20240221-104344.yaml b/.changes/unreleased/Under the Hood-20240221-104344.yaml deleted file mode 100644 index bd1423a..0000000 --- a/.changes/unreleased/Under the Hood-20240221-104344.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Restrict protobuf library to major version 4. -time: 2024-02-21T10:43:44.642458-05:00 -custom: - Author: peterallenwebb - Issue: "9566" diff --git a/.changes/unreleased/Under the Hood-20240227-145400.yaml b/.changes/unreleased/Under the Hood-20240227-145400.yaml deleted file mode 100644 index baf3b0f..0000000 --- a/.changes/unreleased/Under the Hood-20240227-145400.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Implement record/replay mechanism -time: 2024-02-27T14:54:00.94815-05:00 -custom: - Author: peterallenwebb - Issue: "9689" diff --git a/.changes/unreleased/Under the Hood-20240314-161737.yaml b/.changes/unreleased/Under the Hood-20240314-161737.yaml deleted file mode 100644 index d5d5805..0000000 --- a/.changes/unreleased/Under the Hood-20240314-161737.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Stream JSON on read/write instead of holding it in memory -time: 2024-03-14T16:17:37.570328-04:00 -custom: - Author: peterallenwebb - Issue: "96" diff --git a/.changes/unreleased/Under the Hood-20240319-122548.yaml b/.changes/unreleased/Under the Hood-20240319-122548.yaml deleted file mode 100644 index 1564036..0000000 --- a/.changes/unreleased/Under the Hood-20240319-122548.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Improve startup performance by lazy-compiling mashumaro serialization functions -time: 2024-03-19T12:25:48.615365-04:00 -custom: - Author: peterallenwebb - Issue: "97" diff --git a/.changes/unreleased/Under the Hood-20240423-080648.yaml b/.changes/unreleased/Under the Hood-20240423-080648.yaml deleted file mode 100644 index 448630c..0000000 --- a/.changes/unreleased/Under the Hood-20240423-080648.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove the final underscore from secret and private environment variable constants. -time: 2024-04-23T08:06:48.857514-05:00 -custom: - Author: emmyoop - Issue: "109" diff --git a/.changes/unreleased/Under the Hood-20240528-110518.yaml b/.changes/unreleased/Under the Hood-20240528-110518.yaml deleted file mode 100644 index 58b243c..0000000 --- a/.changes/unreleased/Under the Hood-20240528-110518.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Allow dynamic selection of record types when recording. -time: 2024-05-28T11:05:18.290107-05:00 -custom: - Author: emmyoop - Issue: "140" diff --git a/.changes/unreleased/Under the Hood-20240529-143154.yaml b/.changes/unreleased/Under the Hood-20240529-143154.yaml deleted file mode 100644 index e966425..0000000 --- a/.changes/unreleased/Under the Hood-20240529-143154.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move StatsItem, StatsDict, TableMetadata to dbt-common -time: 2024-05-29T14:31:54.854468+01:00 -custom: - Author: aranke - Issue: "141" diff --git a/.changes/unreleased/Under the Hood-20240603-123631.yaml b/.changes/unreleased/Under the Hood-20240603-123631.yaml deleted file mode 100644 index 18a649d..0000000 --- a/.changes/unreleased/Under the Hood-20240603-123631.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move CatalogKey, ColumnMetadata, ColumnMap, CatalogTable to dbt-common -time: 2024-06-03T12:36:31.542118+02:00 -custom: - Author: aranke - Issue: "147" diff --git a/.changes/unreleased/Under the Hood-20240617-204541.yaml b/.changes/unreleased/Under the Hood-20240617-204541.yaml deleted file mode 100644 index b4e33c3..0000000 --- a/.changes/unreleased/Under the Hood-20240617-204541.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add support for basic diff of run recordings. -time: 2024-06-17T20:45:41.123374-05:00 -custom: - Author: emmyoop - Issue: "144" diff --git a/.changes/unreleased/Under the Hood-20240618-155025.yaml b/.changes/unreleased/Under the Hood-20240618-155025.yaml deleted file mode 100644 index b540d3d..0000000 --- a/.changes/unreleased/Under the Hood-20240618-155025.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Deserialize Record objects on a just-in-time basis. -time: 2024-06-18T15:50:25.985387-04:00 -custom: - Author: peterallenwebb - Issue: "151" diff --git a/.changes/unreleased/Under the Hood-20240716-125753.yaml b/.changes/unreleased/Under the Hood-20240716-125753.yaml deleted file mode 100644 index 55b36cb..0000000 --- a/.changes/unreleased/Under the Hood-20240716-125753.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add record grouping mechanism to record/replay. -time: 2024-07-16T12:57:53.434099-04:00 -custom: - Author: peterallenwebb - Issue: "169" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ca9d33..5666d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,132 @@ -# Changelog -All notable changes to this project will be documented in this file. +# dbt-common Changelog -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), -and is generated by [Changie](https://github.com/miniscruff/changie). +- This file provides a full account of all changes to `dbt-common` +- Changes are listed under the (pre)release in which they first appear. Subsequent releases include changes from previous releases. +- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. +- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-common/blob/main/CONTRIBUTING.md#adding-changelog-entry) +## dbt-common 1.7.0 - July 30, 2024 -No releases yet, this file will be updated when generating your first release. +### Under the Hood + +- Add record grouping mechanism to record/replay. ([#169](https://github.com/dbt-labs/dbt-common/issues/169)) + +## dbt-common 1.6.0 - July 2, 2024 + +### Features + +- Add to and to_columns to ColumnLevelConstraint and ModelLevelConstraint contracts ([#168](https://github.com/dbt-labs/dbt-common/issues/168)) + +### Fixes + +- Fix case-insensitive env vars for Windows ([#166](https://github.com/dbt-labs/dbt-common/issues/166)) + +## dbt-common 1.4.0 - June 18, 2024 + +### Under the Hood + +- Add support for basic diff of run recordings. ([#144](https://github.com/dbt-labs/dbt-common/issues/144)) +- Deserialize Record objects on a just-in-time basis. ([#151](https://github.com/dbt-labs/dbt-common/issues/151)) + +## dbt-common 1.3.0 - June 5, 2024 + +### Under the Hood + +- Move CatalogKey, ColumnMetadata, ColumnMap, CatalogTable to dbt-common ([#147](https://github.com/dbt-labs/dbt-common/issues/147)) + +## dbt-common 1.2.0 - May 29, 2024 + +### Under the Hood + +- Allow dynamic selection of record types when recording. ([#140](https://github.com/dbt-labs/dbt-common/issues/140)) +- Move StatsItem, StatsDict, TableMetadata to dbt-common ([#141](https://github.com/dbt-labs/dbt-common/issues/141)) + +## dbt-common 1.1.0 - May 21, 2024 + +### Features + +- Support adding callbacks to the event manager ([#131](https://github.com/dbt-labs/dbt-common/issues/131)) +- Add a print event to support firing event to console in --quiet mode ([#8756](https://github.com/dbt-labs/dbt-common/issues/8756)) + +## dbt-common 1.0.4 - May 7, 2024 + +### Features + +- Enable serialization contexts ([#126](https://github.com/dbt-labs/dbt-common/issues/126)) + +## dbt-common 1.0.3 - May 1, 2024 + +### Dependencies + +- Pin agate `>=1.7.0,<1.10` ([#119](https://github.com/dbt-labs/dbt-common/pull/119)) +- update pathspec upper version limitation ([#120](https://github.com/dbt-labs/dbt-common/pull/120)) + +## dbt-common 1.0.2 - April 24, 2024 + +### Features + +- Add ability to silence warnings via `WarnErrorOptions` ([#111](https://github.com/dbt-labs/dbt-common/issues/111)) + +### Under the Hood + +- Remove the final underscore from secret and private environment variable constants. ([#109](https://github.com/dbt-labs/dbt-common/issues/109)) + +## dbt-common 1.0.1 - April 12, 2024 + +### Features + +- Support environment variables which dbt can see but user code cannot. ([#103](https://github.com/dbt-labs/dbt-common/issues/103)) +- Add `error_tag` util to the `ui` module ([#107](https://github.com/dbt-labs/dbt-common/issues/107)) + +## dbt-common 1.0.0 - April 1, 2024 + +### Under the Hood + +- Implement record/replay mechanism ([#9689](https://github.com/dbt-labs/dbt-common/issues/9689)) +- Stream JSON on read/write instead of holding it in memory ([#96](https://github.com/dbt-labs/dbt-common/issues/96)) +- Improve startup performance by lazy-compiling mashumaro serialization functions ([#97](https://github.com/dbt-labs/dbt-common/issues/97)) + +## dbt-common 0.1.6 - February 22, 2024 + +### Fixes + +- Fix the unset_contextvars function in events/contextvars.py ([#82](https://github.com/dbt-labs/dbt-common/issues/82)) + +### Under the Hood + +- Restrict protobuf library to major version 4. ([#9566](https://github.com/dbt-labs/dbt-common/issues/9566)) + +## dbt-common 0.1.65- February 8, 2024 + +### Under the Hood + +- Add Invocation Context Support to MultiThreadedExecutor ([#75](https://github.com/dbt-labs/dbt-common/issues/75)) + +## dbt-common 0.1.4 - February 7, 2024 + +### Fixes + +- Make invocation contexts more reliable in testing scenarios. ([#52](https://github.com/dbt-labs/dbt-common/issues/52)) + +### Under the Hood + +- Remove `fire_event_if_test` method ([#66](https://github.com/dbt-labs/dbt-common/issues/66)) + +## dbt-common 0.1.3 - February 1, 2024 + +### Features + +- Cache static objects between tests to accelerate integration runs. ([#55](https://github.com/dbt-labs/dbt-common/issues/55)) +- Added a new InvocationContext class for application context management. ([#57](https://github.com/dbt-labs/dbt-common/issues/57)) +- Add dataclass utility `Mergeable` ([#58](https://github.com/dbt-labs/dbt-common/issues/58)) + +## dbt-common 0.1.1 - January 26, 2024 + +### Under the Hood + +- Clean up macro contexts. ([#35](https://github.com/dbt-labs/dbt-common/issues/35)) +- Change metadata_vars \`if not\` to \`if ... is None\` ([#6073](https://github.com/dbt-labs/dbt-common/issues/6073)) +- Inject TagIterator into BlockIterator for greater flexibility. ([#38](https://github.com/dbt-labs/dbt-common/issues/38)) + +### Contributors +- [@truls-p](https://github.com/truls-p) ([#6073](https://github.com/dbt-labs/dbt-common/issues/6073))