Repository navigation
fix(engine): offline sync and Bring Back match fields by name, so a field added at home doesn't refuse the return (#2468) #2589
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
Merged
Mavrick-F
merged 3 commits into
opengeos:main
from
Mavrick-F:fix/offline-sync-fields-by-name
Nov 21, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
7c89e64
fix(engine): offline sync and Bring Back match fields by name, so a f…
Mavrick-F c057921
fix(engine): compare a field added on both sides, and refuse a field …
Mavrick-F 1a9d574
fix(engine): a deletion that loses a home-only value is a conflict; B…
Mavrick-F 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
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.
Rasters are still dropped without a notice (Never silent). The new
unownedpath skips rasters, so a raster layer the field added that the area has no copy of is removed fromedited.layerssilently. Thekeepbranch below keeps it, butsync_areanever reads rasters, so the layer goes nowhere and nothing says so.Packaging strips rasters (
field.rs~line 147), so this needs a raster to come back in a return, which is probably rare. Still, the same "not in the area, left in the field project" notice would cover it, and a test could check it.Confidence: low to medium. I did not confirm that the field app can add a raster layer.
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.
This is not a change from this PR. Rasters are kept in
edited.layershere exactly as before, andsync_areahas always passed them over (!l.is_raster()), because a field package carries no raster layer data to bring back (packaging strips rasters; its basemaps travel as tile archives). The newunownedpath deliberately covers only vector layers, whose features could otherwise reach a home layer.