Repository navigation
fix(engine): saved data sources keep what a newer RustGIS or another window stored #3421
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
Open
flight1973
wants to merge
30
commits into
opengeos:main
Choose a base branch
from
flight1973:fix/keep-newer-data-sources
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,533
−120
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
277fcd5
fix(engine): saved data sources keep what a newer RustGIS wrote, and …
flight1973 d228b14
fix(engine): a data sources save keeps what another window stored sin…
flight1973 77e2541
fix(engine): settings a newer RustGIS stored stay refused without ret…
flight1973 60292df
Merge remote-tracking branch 'origin/main' into prep/keep-newer
flight1973 2640ac9
fix(engine): a data sources save keeps this window's login bindings, …
flight1973 a725fa0
fix(engine): a setting that fails to save stays to save, only objects…
flight1973 4996e56
fix(desktop): a setting left to save while another copy saves is retr…
flight1973 2d5f1f2
fix(engine): reading stored data sources drops kept details of a sour…
flight1973 752bce6
fix(engine): a lock file that can't be opened no longer stops saving,…
flight1973 39b6281
fix(desktop): settings retried with their own backoff, and what isn't…
flight1973 3ba8d5d
Merge remote-tracking branch 'origin/main' into finish/keep-newer
flight1973 1032ea2
fix(ui): a setting left to save during a frame's interface is tried a…
flight1973 ce6ce97
fix(mobile): settings left to save are tried once more as the app clo…
flight1973 a86f8c0
refactor(engine): time the retry at exit with web_time (#1962)
flight1973 b5936cf
fix(ui): a data sources save doesn't count as the add that noted a so…
flight1973 2069e27
fix(data): a lock file removed between finding it and opening it is c…
flight1973 948b551
refactor(engine): drop the unused prefs::has_pending (#1962)
flight1973 4138477
fix(engine): reading the stored data sources in doesn't count as noti…
flight1973 730ef9e
fix(ui): what a save's fresh read leaves out is said again, and a bus…
flight1973 7b0ef9e
fix(ui): the first data sources save doesn't repeat what loading said…
flight1973 77cec67
fix(ui): busy and failed data sources saves keep their own counts, an…
flight1973 6ac72c8
Merge remote-tracking branch 'origin/main' into finish/keep-newer
flight1973 4ddf5e6
fix(engine): a setting left to save doesn't write over a value anothe…
flight1973 a6fff98
fix(ui): a data sources save left during a frame's interface asks for…
flight1973 a0a83ff
revert(engine): keep queued settings as before; the same-key race is …
flight1973 acd03b3
fix(engine): settings saved without the shared lock are said once a s…
flight1973 0be7675
fix(engine): a save without the lock is said only once one happened, …
flight1973 c3db030
fix(engine): a file replaced without the lock is said even when its s…
flight1973 4a8d1d9
fix(ui): a save without the lock is said whatever the save came to, a…
flight1973 d3c377c
docs(engine): say where the save-without-a-lock notice and its log li…
flight1973 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phone never sets
update_pref, sosourcespane::savetakes its no-update branch (crates/ui-egui/src/sourcespane.rs, theupdate_pref.is_none()check) and writes the whole data sources list through thissave_pref. That is the overwrite this PR removes on the desktop. If another copy holds the lock,prefs::writequeues that whole list inPENDING, andretry_prefswrites it back without rebasing it over what the other copy stored, so the other copy's data sources are replaced by a stale list.load_prefalso returns the queued value fordata_sourcesuntil it is written. The PR body says the phone is covered by the same protection.Fix: set
update_prefhere the wayapps/rustgis/src/main.rsdoes (prefs::updatemapped toPrefUpdate, withNewerasRefused), so the phone's data sources go throughsourcespane::attemptandSources::rebase.The trigger is narrow (a second copy of RustGIS sharing the phone's config folder), so I rate the impact low. The coverage claim in the PR is still not met. Confidence about 0.7.
Category: bug