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

Allow to load official extensions via shell #300

Closed
wants to merge 205 commits into from

Conversation

cymed
Copy link
Contributor

@cymed cymed commented Jul 10, 2024

As suggested in https://github.com/orgs/teksi/discussions/108, we need a way to include officially supported extensions in CI and deployment of TEKSI. As a first step, this PR creates an environment from which we can install extensions. Alterations to the CI itself are not done yet.

The solution works by calling python %tww_dir%\extensions\extension_manager.py --pg_service %myservice% --module_name tww --srid 2056 --drop-schema --extension_name demo from the shell.
In a yaml, The key informations for creation (id, directory name, schema name and variables) for the extension are defined. The code then sorts all the files in the directory defined in the yaml and executes all .sql and .py scripts in that folder

Furthermore, there are now extension flags in create_dumps.py that alter the output file name (not productive yet as we have no CD invoking all processes for extensions as well)

@cymed cymed added datamodel Concerns the datamodel and removed help wanted Extra attention is needed github_actions Pull requests that update GitHub Actions code labels Aug 7, 2024
@cymed cymed marked this pull request as ready for review August 7, 2024 12:13
@cymed cymed removed the request for review from 3nids August 7, 2024 12:37
cymed and others added 18 commits August 8, 2024 12:51
* moving init scripts to extension folder

* map update type to GUI

* make scripts psycopg-suitable

* activate import trigger scripts

* minor fixes

* remove "ON CONFLICT"

* symbology trigger alterations

* alter order_fct_hierarchic name

* add missing semicolons

* remove one comma

* minor fixes

* more fixes

* add fk_wastewater_node to cover

* bauwerkstatus import vl

* jahr_umsetzung_geplant rename
@cymed
Copy link
Contributor Author

cymed commented Aug 29, 2024

closing here, will be re-pushed via TEKSI 2 AG-64/96

@cymed cymed closed this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodel Concerns the datamodel enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants