-
Notifications
You must be signed in to change notification settings - Fork 114
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
add MaxweightExtraValue #2322
add MaxweightExtraValue #2322
Conversation
ignore (don't raise an issue) some text values describing the absence of a specific maximum weight limit
forget "and"
fix blank line contains whitespace
I had three concerns about this PR:
|
done
it would indeed be better to include, I'll let you see which key selection method is best, because I suppose it's better to have the same logic for the 2 tests.
all values have at least one occurrence of maxweight and also with suffix for ex 1 617 maxweight:bus=none |
Thanks
Sure, I can do a follow-up PR, but I can also just give you the solution now ;)
Only if it makes sense of course. For maxweight I can understand that e.g. For maxheight on the other hand,
I don't think we should support the spread of random values, especially ones with duplicate meanings. Allowing |
yes but your rules doesn't just add a match for the valid maxweight:hgv key, but also test several wrong keys (maxweight:source maxweight:total maxweight:note), strange (maxweight:relative maxweight:except maxweight:physical) or that don't need to have this check (maxweight:signed)
by logic, i meant either you list a series of documented/common keys (and you have to update the list from time to time), or you accept all the keys with a prefix (and you're going to give incorrect advice for incorrect keys such as *:note *:source or the others listed before). you have the same problem for the 2 keys, which is why i thought it would be good to have the same code between the 2, even if the list of valid suffixes varies between the 2.
I never see this sign for maxheight (I don't code maxheight :p)
for me it's a common misttake (but I don't want to raise an issue for that) : "none @" is a rule for :conditional, for key outside for conditional, the negative value is no (fee=no lit=no, whellchair=no, ...) and not "none" the problem is that it's not documented, so I don't want osmose to consider that it's ‘none’ and another tool may consider that it's ‘no’, and another in favor of "default". that's why i've listed the 3, to concentrate on what's consensual. |
That's not correct: the only keys considered are the ones that consist of
I can't fully follow what you mean, but I assume this is answered by my previous reply:
Ok, then I misunderstood your comment, please ignore what I said, probably we mean the same. I was under the impression you also wanted to change the other code line.
Yes, |
ok.
SC it promotes or promoted
I understand your logic, but I think we also need to limit the number of ‘not very useful’ issue : in my opinion, |
I don't dispute
I don't think this has any notable impact. It involves (if I count quickly
Note I'm not proposing to swap them. I'm proposing to keep flagging them so that a mapper goes out and has a look what's meant. Most likely 'unsigned'. Or maxweight is a typo for maxheight in those cases. So very valid for a field-check because it's a strange value.
Only if they're common keys with meaningful values. Not if they're likely (undocumented) typos. And it's of course fully up to the data users to decide what they support, they can even support the French words for Whether something should be fixed by a mass edit I'll leave out of the discussion, but if you wish to reduce detections, there's plenty of much better candidates for that with much larger impacts, like the old |
remove "below_default", to have the important part of the PR validated
I think it's completely irrelevant to decide here how the community should tag a bridge that we consider incapable of supporting the normal weight.
I didn't write the list of exceptions in the previous rule, I simply kept most of the values for consistency.
I've added this type of value myself and I don't see what else I can do (maxweight on a bridge or on a highway is not a typo) other than flag them as false positives, which I find counterproductive in terms of human time and the quality of the issues compared to having a rule in the code. |
commit suggestion, not because it's a good one, but to avoid the main part being blocked Co-authored-by: Famlam <fam.lam@live.nl>
requested change commited, not because it's good one (deletion after deletion, the PR ends up whitelisting only 5 occurrences for the key maxweight:bus, whereas 95% of the uses of this key are related to the traffic sign ‘x tons exept bus, which makes the remain part of this PR futile)), but to avoid the residual part being blocked. |
Please cite the full line next time, the next few words on the wiki are pretty important:
Didn't find a line about the value
Great, once the wiki is updated after that discussion and stable, more than happy to see new entries being added! |
ignore (don't raise an issue) some text values describing the absence of a specific maximum weight limit