Skip to content

feat(utils): treat env as plain string and default to "dev"#50

Merged
TordAreStromsnes merged 2 commits intomainfrom
feat/rework-env-setup
Dec 10, 2025
Merged

feat(utils): treat env as plain string and default to "dev"#50
TordAreStromsnes merged 2 commits intomainfrom
feat/rework-env-setup

Conversation

@TordAreStromsnes
Copy link
Contributor

We remove the Environment enum from the configuration codebase and updates all related logic, documentation, and tests to treat the env parameter as a plain string with a default value of "dev". The changes simplify environment handling.

Core codebase changes:

  • Removed the Environment enum and all references to it from the codebase, including imports, type annotations, and default values. The env parameter is now a plain string throughout models and logic, defaulting to "dev" when not set.

  • Updated the PipelineParameterManager.prepare_infrastructure method to no longer require env to be set in the environment; it now defaults to "dev" if missing and returns env as a plain string in the InfraContext.

Documentation updates:

  • Revised documentation to reflect that env is now optional, defaults to "dev", and is a plain string (not an enum). Clarified lookup strategy and migration notes for users.

Test and usage updates:

  • Updated all tests and example usages to set or expect env as a plain string instead of using the removed enum.

Validation and printing improvements:

  • Simplified configuration printing to directly show the string value of env.

@TordAreStromsnes TordAreStromsnes self-assigned this Dec 10, 2025
@TordAreStromsnes TordAreStromsnes changed the title feat(config): treat env as plain string and default to "dev" feat(utils): treat env as plain string and default to "dev" Dec 10, 2025
@leefw leefw self-requested a review December 10, 2025 08:15
@TordAreStromsnes TordAreStromsnes merged commit 65473a8 into main Dec 10, 2025
7 of 8 checks passed
@TordAreStromsnes TordAreStromsnes deleted the feat/rework-env-setup branch December 10, 2025 11:50
TordAreStromsnes pushed a commit that referenced this pull request Dec 10, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](dataorc-utils-v0.3.0...dataorc-utils-v0.4.0)
(2025-12-10)


### Features

* **utils:** treat env as plain string and default to "dev"
([#50](#50))
([65473a8](65473a8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
TordAreStromsnes pushed a commit that referenced this pull request Feb 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](dataorc-v0.1.1...dataorc-v0.2.0)
(2026-02-05)


### Features

* add Azure Key Vault support and documentation
([#42](#42))
([abc42a0](abc42a0))
* create config tool for pipeline setup
([#22](#22))
([21a8a84](21a8a84))
* introduce dictionary functionality for environment variables access
([#57](#57))
([b6291fa](b6291fa))
* mount data lake ([#31](#31))
([0bb3e51](0bb3e51))
* **utils:** add argument parsing helper for Databricks wheel tasks
([#43](#43))
([393c6a2](393c6a2))
* **utils:** add retry logic and customizable parameters for
get_keyvault_secret
([#63](#63))
([acbc2b7](acbc2b7))
* **utils:** implement LakeFileSystem for data lake operations and add
documentation ([#64](#64))
([be9e738](be9e738))
* **utils:** support optional revision suffix in version format and
update tests ([#59](#59))
([8ea0b60](8ea0b60))
* **utils:** treat env as plain string and default to "dev"
([#50](#50))
([65473a8](65473a8))


### Documentation

* add changelog tab
([#20](#20))
([2ec4271](2ec4271))
* add CI status badge
([#9](#9))
([8de41fe](8de41fe))
* add contributing guidelines
([#15](#15))
([434cf31](434cf31))
* add developing instructions
([#33](#33))
([835a35e](835a35e))
* add early development phase warning
([#39](#39))
([406746d](406746d))
* bootstrap package ([#6](#6))
([afbb765](afbb765))
* build docs using uv
([#36](#36))
([15a1125](15a1125))
* initialize documentation structure
([#8](#8))
([0adb45d](0adb45d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants