opengisch / QgisModelBaker

Create QGIS projects from database schemas or Interlis models
https://opengisch.github.io/QgisModelBaker/
GNU Lesser General Public License v3.0
55 stars 17 forks source link

Topping on create Project #858

Closed signedav closed 11 months ago

signedav commented 11 months ago

Topping on Generate

Get Topping of Metaconfig stored in the DB

Since ili2db 4.11 the id of the metaconfiguration file used to create the physical database is stored in the meta-tables. This means, on Project Creation we consider this id and provide the linked project topping.

Screenshot from 2023-12-04 14-41-47

Get Topping by selection

Still it's possible to disable it and choose another project topping file.

image

You can choose a project topping file (identified by model, db-type) from the UsabILITy Hub repositories or as well a YAML file from the local system.

Why, project topping file

... and not "metaconfiguration* file?

Because on this step only project topping files are relevant. Metaconfiguration files are only relevant, when the schema is created. We thought about to provide them, to choose the same like on schema import, but this part is already provided by getting the topping from the DB.

To do

Resolves #479 and resolves #768

Busy Bar

Not directly related to this topic but it popped up again. Sometimes the wizard has to load - mostly checking the repos to suggest data / reload the comboboxes. And there users are confused, what's happening. For this reason it does now:

Screencast from 04.12.2023 16:24:24.webm

Screenshot from 2023-12-08 13-50-00

signedav commented 11 months ago

Any inputs on that @geckoGIS ?

signedav commented 11 months ago

Just one question which code makes the progressbar moving? I can't see it :)

That's pure magic 🧙 It's the QProgressBar.setRange(0,0) - Haven't knew it untill today neither...