Modelbaker

Latest version: v1.9.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 31

6.6.1

- Validation of input (by disabling the button) in the Dataset Manager.
- Use of QGIS Theme icon (so no path problems in Windows) in the Workflow Wizard source selection page.
- Update all the configurations of the Workflow Wizard on the schema import config page. So on data import the same configuration is considered.
- Remove the empty Toolbar when refreshing (updating) Model Baker
- Correct topic parsing (e.g. when there are structures in the model that are not in a topic)
- Basket handling of tables having no topic, like structs that are used in multiple topics. There it should be possible to choose the dataset of it's parent. So all baskets are enabled for them:
![image](https://user-images.githubusercontent.com/28384354/132651504-62016ad8-ec90-421a-9490-8ed95c6e777f.png)
- Fix error on trying to use an authentication configuration without super user
- Support Dataset Selector on layers using an authentication configuration
- Avoid error of Dataset Selector on layers using the (not supported by the Dataset Selector) PG service file

6.6.0

Workflow Wizard to import Interlis and Transfer Files / Generate Projects and Export Data
The user starts with the files (or the Interlis models chosen from a repository) as sources. According to this sources the workflow leads to the database configuration, the schema creation or the transfer file import. The Dataset Handling is fully integrated in the wizard as well as the export of the data to transfer files.

![wizard import](https://user-images.githubusercontent.com/28384354/131496474-94a8a077-62db-4d47-83b2-569228c07024.gif)
*The icon on the left is to open the wizard - on the right you can see the icon to open the Dataset Manager (read below)*

Dataset Integration
When `--createBasketCol` is active (with this release the default behavior) the layers have a `t_basket` column (ili2db) and the fields are integrated in the form. The layers `t_ili2db_basket` and `t_ili2db_dataset` are loaded in the project. They are needed to have the reference to them (to fill up `t_basket` in the single layers). For the layer `t_ili2db_basket` a display expression is created to provide the user a nice selection in the Relation Reference Widget of `t_basket`. The default value can be set over the **Dataset Selector** in the toolbar. New datasets can be created over the **Dataset Manager**.

Dataset Selector
With the Dataset Selector the user is able to select the dataset to be filled in as default value (actually the basket_id of the selected dataset and the topic of the current layer). The content of the Dataset Selector is loaded according to the layer's **_topic_** and **_datasource_**. The chosen `basket_tid` is stored in the project variables (`<host>_<db>_<schema>_<topic>` or `<filepath>_<topic>`) and accessed in the default expression of the layer's `basket_tid` field.

![image](https://user-images.githubusercontent.com/28384354/131496648-c0c7443b-a731-479d-a635-1b13d1945208.png)
*See the Dataset Selector Combobox in the Model Baker Toolbar*

Dataset Manager
With the Dataset Manager the user is able to create and rename datasets as well as generate the baskets for each existing topic and the selected dataset.

![image](https://user-images.githubusercontent.com/28384354/131496005-0d8e52ee-316d-4843-a1a2-de4ebb503a83.png)

Improved Relation Editor Widget creation
Multiple many-to-many connection over one link table
When having a relation pointing to a link table pointing to multiple parent tables, there is a relation editor widget created for each connection.

Set the direct cardinality and direct link to the linked table
For many to many relations the carnality is set to the the linked parent table. Exceptions are the link tables having additional attributes that are not foreign keys (associations with attributes).

Fixes
- Create tabs when the layer is the referenced layer (parent) and not when it's the child.
- Use save file browser for import data to have the ability to choose a non-existing file, because you can create the schema with ili2db Parameter `--doschemaimport`.
- Allow null in relation references always on domains - when the value is mandatory the constraints will concern that the user has to choose something.

6.5.2

- ili2db Version 4.5.0
- better Logtexts for UsabILIty Hub processes
- improved UX and fixes on changing models while having already metaconfiguration selected
- fix unreliable drop down on model search / metaconfiguration search
- avoid loading of invalid ili files (with wrong extensions)

6.5.1

- fix on accessing dict values on getting topping files
- fix unreliable drop down on metaconfiguration selection widget

6.5.0

UsabILIty Hub integration
The idea of the UsabILIty Hub is to receive meta data like ili2db settings, layer styles and orders etc. automatically over the web. Like we can now receive models by connecting the ilimodels.xml of https://models.interlis.ch and with it's ilisite.xml many other repositories, we will be able to get this meta data with the file ilidata.xml on the UsabILItyHub (currently https://models.opengis.ch - could be in future models.interlis.ch as well or something else).

Information for ili2db and Modelbaker settings are configured in a metaconfiguration file (INI-file), as well as a link (id) to a file containing layer order and grouping information and a mapping to the qml files (containing style and attribute form configurations). These metaconfiguration files can be found by the Modelbaker according the chosen model (scanning ilidata.xml).

![modelbaker_usabilityhub_sh](https://user-images.githubusercontent.com/28384354/117296243-1dd77c00-ae75-11eb-9024-afffd272c013.gif)

Fix Layernames for tables with multiple geometry columns
**GeoPackage:**
Fix layernames on tables that are created twice in geopackage and contain the iliname with brackets (e.g. KbS_LV95_V1_4.Belastete_Standorte.Belasteter_Standort.Geo_Lage_Punkt(KbS_LV95_V1_4.Belastete_Standorte.Belasteter_Standort)) They are now named **Belasteter_Standort (Geo_Lage_Punkt)** This fixes 469

**Postgres:**
On creating layers from a Postgres dataset where a table has multiplegeometry columns, this table is loaded for each geometry column. To have a unique name, we check for duplicate tablenames and if we found one we check out the t_ili2db_attrname for the geometry column and add it's proper name to the table.

No double loading of layers in layertree
On having a project open and importing an additional model into the same schema /db file, the layers are reloaded and double. So the fix is, that it does not reload the already existing layers (considering it's datasource).

6.4.0

- ili2db version 4.4.6
- Drop XTF / ITF improvements (not overriding QGIS behavior)
- Fix model directory support of % values

Page 10 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.