Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.2.1 #660

Merged
merged 24 commits into from
Jun 17, 2024
Merged

Release 0.2.1 #660

merged 24 commits into from
Jun 17, 2024

Conversation

doctrino
Copy link
Collaborator

Description

Please describe the change you have made.

Checklist

doctrino and others added 24 commits June 12, 2024 12:59
* refactor: remove status

* refactor: raising on location

* refactor: raise on location

* tests: updated test to raising

* tests: updated test with warnings

* bye bye failed flag
* refactor: clean up code

* refactor: improved error message

* build: changelog
* refactor: clean up code

* refactor: improved error message

* build: changelog

* fix: bonus bug

* fix: forgotten

* refactor: better error messag when checking function activated

* build: changelog

* fix: avoid infering project
* Feature flag to replace normal init

* Featureflag ready for review

* Interaction

* Ready for discussion

* Union

* Removing redundant f-strings

* Visual fine-tuning

* Interaction ready for testing

* type notation

* Type

* bugfix

* usertest

* iter

* iter

* User tests inconclusive, keeping options for further research

* packages

* Savepoint

* Switched to module

* First version of module creation

* First version of module creation

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Made init into a ToolkitCommand so that it can use warn

* tightened loop if user chooses 'none'

* renamed 'none' to 'empty'

* Polished user flow and content creation

* Polished user flow and content creation

* Moved feature flags to _system.yaml

* Time travel

* Quick fix

* another pop

* Disable interactive init since it fails the dry-run job

* Update cognite_toolkit/_cdf_tk/commands/pull.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update tests/tests_unit/test_cdf_tk/test_loaders.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_system.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Linting and static code checks

* added ability to create config based on selection

* Added test for selective config

* disable Featureflag until next PR

* Removed feature flags from _system.yaml

---------

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: handle missing libyaml

* build; changelog
* refactor: added rerun failures

* tests: mark poor test as flaky
* refactor: auth command

* refactor: remove from clean command

* refactor: remove from deploy command
* refactor: moved command tests into tests_commands

* tests: split test_loaders in multiple files

* refactor: removed test_templates
* build: added mixpanel dependency

* refactor; added mixpanel login of command

* refactor; fix init for deploy command

* refactor; log user commands
* refactor: moved out check_function_service status

* refactor; moved out two more functions

* refactor; moved out more methods

* refactor; final split out in functions
* Feature flag to replace normal init

* Featureflag ready for review

* Interaction

* Ready for discussion

* Union

* Removing redundant f-strings

* Visual fine-tuning

* Interaction ready for testing

* type notation

* Type

* bugfix

* usertest

* iter

* iter

* User tests inconclusive, keeping options for further research

* packages

* Savepoint

* Switched to module

* First version of module creation

* First version of module creation

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Made init into a ToolkitCommand so that it can use warn

* tightened loop if user chooses 'none'

* renamed 'none' to 'empty'

* Polished user flow and content creation

* Polished user flow and content creation

* Moved feature flags to _system.yaml

* Time travel

* Quick fix

* another pop

* Disable interactive init since it fails the dry-run job

* Update cognite_toolkit/_cdf_tk/commands/pull.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update tests/tests_unit/test_cdf_tk/test_loaders.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_system.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Linting and static code checks

* added ability to create config based on selection

* Added test for selective config

* disable Featureflag until next PR

* Removed feature flags from _system.yaml

* feature flag storage

* feature flags enabled as command

* Added invisible fflag

* Added cache invalidation and tests

* Stupid mistake

* Hiding features command from help. The same for the original 'init' if overriden by the feature flag

* Cleanup

* Logic

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/commands/featureflag.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* improvement

* improvement

* improvement

---------

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
#649)

* Feature flag to replace normal init

* Featureflag ready for review

* Interaction

* Ready for discussion

* Union

* Removing redundant f-strings

* Visual fine-tuning

* Interaction ready for testing

* type notation

* Type

* bugfix

* usertest

* iter

* iter

* User tests inconclusive, keeping options for further research

* packages

* Savepoint

* Switched to module

* First version of module creation

* First version of module creation

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/interactive_init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Made init into a ToolkitCommand so that it can use warn

* tightened loop if user chooses 'none'

* renamed 'none' to 'empty'

* Polished user flow and content creation

* Polished user flow and content creation

* Moved feature flags to _system.yaml

* Time travel

* Quick fix

* another pop

* Disable interactive init since it fails the dry-run job

* Update cognite_toolkit/_cdf_tk/commands/pull.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update tests/tests_unit/test_cdf_tk/test_loaders.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_system.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/_packages/quickstart/sap_data_ingestion/default.config.yaml

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/prototypes/init.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Linting and static code checks

* added ability to create config based on selection

* Added test for selective config

* disable Featureflag until next PR

* Removed feature flags from _system.yaml

* feature flag storage

* feature flags enabled as command

* Added invisible fflag

* Added cache invalidation and tests

* Stupid mistake

* Hiding features command from help. The same for the original 'init' if overriden by the feature flag

* Cleanup

* Logic

* Not failing pipeline in spite of 500 due to lack of functions support in AWS

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/commands/featureflag.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* improvement

* improvement

* improvement

* Update cognite_toolkit/_cdf_tk/commands/auth.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

* Update cognite_toolkit/_cdf_tk/commands/auth.py

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>

---------

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pål Rønning <ronpal@users.noreply.github.com>
* Prep for modules command

* fix

* Modules init ready

* betterinit landing

---------

Co-authored-by: Anders Albert <60234212+doctrino@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: do not include prototype variables

* fix: Introduced bug
* fix: Error message when wrong kind

* refactor; fix

* Update cognite_toolkit/_cdf_tk/tk_warnings/fileread.py
* fix: avoid duplicated warning for raw databases

* build; changelog
* refactor: added shell for upgrade command

* style: nice docstring

* refactor: Moved out modules validation

* refactor; setup validation for modules upgrade

* refactor; allow to skip validation

* refactor: create script for last version

* tests: setup test for modules upgrade

* doc: localo

* Revert "refactor; allow to skip validation"

This reverts commit 91b541b.

* refactor; get module version

* tests; mocking uncommitted changes

* refactor: implemented all changes

* refactor; implemented application part

* refactor: run on all modules

* refactor: added upgrade module version

* refactor: Finished successful build

* refactor: standardize script to run_module_upgrade

* refactor; cleanup unused

* fix; script

* fix; bug in run module upgrade script

* refactor: more informative message

* fix: Handling failed .are-equal call

* refactor: better

* refactor; moved changes to its own module

* refactor: setup shell for manual change

* refactor: improved print out

* style: fix type hint

* refactor: implemeted manual change

* refactor: implemented Manual change for common function code

* refactor: delete manual changes

* refactor: better message

* refactor; styling the change output

* style: better messages

* build: update ruff config

* refactor; fix docstring

* fix; docstrings

* style: docstrings

* refactor: revert debug change

* build: changelog

* fix: not trigger change on update module version
* feat; implemented iterator for Resource classes

* build: Python SDK 7.51

* refactor: switch to iterators from SDK
* Making sure that the project folder contains a system.yaml

* fix: _systemYAML location

* refactor: don't use string

---------

Co-authored-by: anders-albert <anders0albert@gmail.com>
* build: bump

* refactor: update migration
Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7822 5933 76% 60% 🟢

New Files

File Coverage Status
cognite_toolkit/_cdf_tk/commands/featureflag.py 76% 🟢
cognite_toolkit/_cdf_tk/prototypes/_packages/init.py 100% 🟢
cognite_toolkit/_cdf_tk/prototypes/commands/init.py 100% 🟢
cognite_toolkit/_cdf_tk/prototypes/commands/_changes.py 44% 🟢
cognite_toolkit/_cdf_tk/prototypes/commands/modules.py 23% 🟢
cognite_toolkit/_cdf_tk/prototypes/landing_app.py 70% 🟢
cognite_toolkit/_cdf_tk/prototypes/modules_app.py 57% 🟢
TOTAL 67% 🟢

Modified Files

File Coverage Status
cognite_toolkit/_cdf.py 53% 🟢
cognite_toolkit/_cdf_tk/commands/init.py 100% 🟢
cognite_toolkit/_cdf_tk/commands/_base.py 76% 🟢
cognite_toolkit/_cdf_tk/commands/auth.py 66% 🟢
cognite_toolkit/_cdf_tk/commands/build.py 85% 🟢
cognite_toolkit/_cdf_tk/commands/clean.py 75% 🟢
cognite_toolkit/_cdf_tk/commands/deploy.py 81% 🟢
cognite_toolkit/_cdf_tk/commands/pull.py 81% 🟢
cognite_toolkit/_cdf_tk/constants.py 100% 🟢
cognite_toolkit/_cdf_tk/data_classes/_config_yaml.py 84% 🟢
cognite_toolkit/_cdf_tk/data_classes/_system_yaml.py 90% 🟢
cognite_toolkit/_cdf_tk/exceptions.py 82% 🟢
cognite_toolkit/_cdf_tk/loaders/_base_loaders.py 88% 🟢
cognite_toolkit/_cdf_tk/loaders/_resource_loaders.py 81% 🟢
cognite_toolkit/_cdf_tk/tk_warnings/fileread.py 89% 🟢
cognite_toolkit/_cdf_tk/utils.py 76% 🟢
cognite_toolkit/_version.py 100% 🟢
TOTAL 83% 🟢

updated for commit: d98a8f7 by action🐍

@doctrino doctrino merged commit e2da7f1 into release Jun 17, 2024
8 checks passed
@doctrino doctrino deleted the release-0.2.1 branch January 25, 2025 09:21
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