-
Notifications
You must be signed in to change notification settings - Fork 92
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
Relations isn't working as expected #1103
Comments
Could be something like #1084, but for the relation editing instead of the tag editing 🤔 |
This could also be related to my fix for #972, which just released in 2.1. Taking a look now. |
Successfully reproduced the issue- and found something peculiar. The user-provided video of the issue (which was excellent, thank you for including that @gyCfjSnO) shows very clearly that, at the moment of creating the relation on the building boundary, once the entity editor is clicked off of, the # of changes goes backwards. This would seem to indicate that we are actually backing the edit history up, which means we never actually create the relation. This seems to explain why the relation dropdown won't 'see' the edit in the final step. |
Root cause found! In the select code, when the user deselects a relation, we evaluate whether the relation is 'empty'. This is to prevent people who are clicking around on stuff from creating relations that have no roles / point to nothing. As such, we have a very big check in the select code that goes like this: 'If we stop selecting a relation, and the relation has no tags, and no parent relations, and no members at all or exactly one member with no role, delete the relation.' What went wrong was we were using a stale reference to the relation- the relation as it was during creation had no tags and no role. Even after the user selected the 'role:outline', the Solution was to call |
Should release as part of the 2.1.2 (or greater) code drop. |
Description
Creating a relation isn't working as expected.
Relations.isn.t.working.as.expected.mp4
Version
2.1.1
What browser are you seeing the problem on? What version are you running?
Edge v116.0
The OS you're using
win
Steps to reproduce
No response
The browser URL at the time you encountered the bug
https://rapideditor.org/edit#background=EsriWorldImagery&disable_features=boundaries&map=20.48/-27.32747/152.98192
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.69
The text was updated successfully, but these errors were encountered: