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

Export ValidationConfig File as Topping #998

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

signedav
Copy link
Member

@signedav signedav commented Dec 3, 2024

Since quite some time we are able to store the path to the validation configuration file as project variable, so we have it always in the validator:

image

This variable could be exported so far to the project topping but if the file is not stored on a accessible drive the project using this topping could not access to it.

Topping Export

That's why with this PR you have the option in the Topping Exporter to create a topping file from the variable with the name "validator_config" that is stored at the topping files.

image

Means we have now the validation-config.ini file in the toppings and link over the variable to the ilidata: key.

Topping Import

But what happens on project create with this topping?

Nothing :-) It keeps the ilidata: key in the variable. This means in the Validator we see the ilidata: key as well. And this can be used then on validation (passing this key as --validConfig to ili2db).

image

Why the file is not downloaded

This because we are not able to download and store the file, since we do not know where to store it. Next to the project? Maybe, but on generating a project there will not be a project stored. So it needs to be an interaction with the user.

Future idea

If it is required to get the file again locally, then an implementation might be done in the validator, to download the file and store it next to the project and replace the variable with the relative path

image
(mockup)

Resolves #829
Requires opengisch/toppingmaker#14 and with this a new library

@signedav signedav changed the title Validconfigvariable Export ValidationConfig File as Topping Dec 6, 2024
@signedav signedav marked this pull request as ready for review December 6, 2024 12:12
@signedav signedav requested a review from gacarrillor December 6, 2024 16:36
self.topping_wizard.log_panel.print_info(
self.tr("No additive settings - go on...")
)
self.topping_wizard.next()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

@signedav signedav merged commit b4eda32 into master Dec 10, 2024
7 checks passed
@signedav signedav deleted the validconfigvariable branch December 10, 2024 08:35
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.

Validation Config File from the Repository
2 participants