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

fix(featurepool): cache management - fixes #58113 #59330

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Djedouas
Copy link
Member

@Djedouas Djedouas commented Nov 4, 2024

This is a PR following the review of #58132 , to facilitate discussion as this is another approach suggested by @nyalldawson .

Geometry checker cache does not work properly with memory layers. refreshCache now handles a list of updated features to be thread-safe.

Also, fixes a locker mode, and correctly remove features from spatial index.

Fixes #58113

@Djedouas Djedouas requested a review from nyalldawson November 4, 2024 16:22
@github-actions github-actions bot added this to the 3.42.0 milestone Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 937d061)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 937d061)

@Djedouas Djedouas force-pushed the featurepool-cache-management branch from 855370a to 178ef4f Compare November 5, 2024 16:18
@Djedouas
Copy link
Member Author

Djedouas commented Nov 5, 2024

unrelated test error

Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 20, 2024
@Djedouas Djedouas removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 20, 2024
@Djedouas
Copy link
Member Author

I removed the stale label.

@nyalldawson could you take a look here, please? As this is the new version of #58132 where we discussed together.

Thanks :)

Geometry checker cache does not work properly with memory layers.
refreshCache now handles a list of updated features to be thread-safe.

Also, fixes a locker mode, and correctly remove features from spatial
index.
@Djedouas Djedouas force-pushed the featurepool-cache-management branch from 178ef4f to 937d061 Compare November 28, 2024 11:53
@Djedouas
Copy link
Member Author

@lbartoletti added the suggested modifications

Copy link
Member

@lbartoletti lbartoletti left a comment

Choose a reason for hiding this comment

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

LGTM! This addresses the discussion with nyall - we tested it together, and jacky added the tests and performed the necessary checks. CI is green. I'm going ahead with the merge. We can revisit if any issues arise.

@lbartoletti lbartoletti merged commit bd49d6c into qgis:master Nov 28, 2024
29 checks passed
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.

QgsFeatureSource not synchronised with QgsVectorLayer for memory provider
2 participants