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

check validity of presets on startup #302

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

cymed
Copy link
Contributor

@cymed cymed commented Jul 10, 2024

On startup, we should check if the database is suitable for production

@cymed cymed changed the title check validity of presets on startup [WIP] check validity of presets on startup Jul 10, 2024
@sjib
Copy link
Contributor

sjib commented Jul 10, 2024

@cymed Wow - nice new feature!

@cymed cymed self-assigned this Jul 10, 2024
@cymed cymed marked this pull request as ready for review July 10, 2024 12:32
@sjib sjib added the enhancement New feature or request label Jul 10, 2024
@cymed cymed changed the title [WIP] check validity of presets on startup check validity of presets on startup Jul 10, 2024
@sjib
Copy link
Contributor

sjib commented Jul 10, 2024

For me this looks good. May be the (TEKSI) service providers want to comment also.
@varrieta @ponceta @tproduit @Fabien-Cattin @gsollberger @TriformMoritz

@cymed cymed requested a review from sjib July 10, 2024 13:16
@ponceta ponceta self-requested a review July 15, 2024 14:02
@ponceta ponceta closed this Jul 15, 2024
@ponceta ponceta reopened this Jul 15, 2024
Copy link
Member

@ponceta ponceta left a comment

Choose a reason for hiding this comment

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

Very good input indeed.

@ponceta ponceta merged commit 4cc2406 into teksi:main Jul 15, 2024
7 checks passed
@cymed cymed deleted the check-setup-on-start branch July 16, 2024 12:30

pgservice = pg_layer.dataProvider().uri().service()
msgs = tww_check_oid_prefix(pgservice)
msgs.extend(tww_check_oid_prefix(pgservice))
Copy link
Contributor

@domi4484 domi4484 Jul 17, 2024

Choose a reason for hiding this comment

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

@cymed should that be msgs.extend(tww_check_fk_defaults(pgservice)?

EDIT: And in general tww_validity_check is never called. What is the idea behind? should we do those checks at plugin start / project opening?

@cymed cymed restored the check-setup-on-start branch July 17, 2024 11:20
cymed added a commit to cymed/TEKSI-wastewater that referenced this pull request Jul 17, 2024
@cymed cymed mentioned this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants