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

Regenerate primary key when making layer permanent if layer property set #58954

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

nyalldawson
Copy link
Collaborator

Respect the OnConvertFormatRegeneratePrimaryKey layer property when
making a temporary layer permanent.

This ensures that processing outputs which require primary key
regeneration will correctly get new primary keys when they are
initially run with a memory layer output, and then later that
memory layer is made permanent

Fixes #58942

Respect the OnConvertFormatRegeneratePrimaryKey layer property when
making a temporary layer permanent.

This ensures that processing outputs which require primary key
regeneration will correctly get new primary keys when they are
initially run with a memory layer output, and then later that
memory layer is made permanent

Fixes qgis#58942
@github-actions github-actions bot added this to the 3.40.0 milestone Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 985f408)

Copy link
Contributor

@troopa81 troopa81 left a comment

Choose a reason for hiding this comment

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

Looks good, do you mind adding tests?

@nyalldawson
Copy link
Collaborator Author

@troopa81

do you mind adding tests?

I tried but failed -- the whole logic is too heavily tied into the gui (eg the functions I need to test open dialogs requiring user intervention), and would require substantial refactoring in QgisApp to permit automated testing.

@troopa81 troopa81 merged commit 3bc8791 into qgis:master Oct 7, 2024
32 checks passed
@nyalldawson nyalldawson deleted the fix_58942 branch October 27, 2024 23:44
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.

Error saving file only after converting multipolygon to single polygons
2 participants