-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
remove not only $key, but also source:$key and check_date:$key #6067
base: master
Are you sure you want to change the base?
Conversation
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.
Can you add test or two?
I would test that:
- lone source:opening_hours is removed
- when source:opening_hours and opening_hours are there both are removed
(I can also add them if you do not want, let me know in such case)
Hmm, what about Things, then? I was thinking that maybe it would be a better solution if this is done for any edit? (I.e. if |
Agreed! Here is (debug apk that does it that way (in
Good idea, will try |
0164794
to
e22e3b6
Compare
Current revision of this PR seems to be successful in additionally removing However, I think it would be good idea to also remove Unfortunately trying to do that breaks various tests (see I've been trying to look into it, but it is at about the boundary of my abilities (or beyond it 😅). I'll give it another try after several days (going AFK now), so:
|
when trimming keys in
KEYS_THAT_SHOULD_BE_REMOVED_WHEN_PLACE_IS_REPLACED
, remove not only every$key
that matches, but also everysource:$key
andcheck_date:$key
that matches too.Rationale being that if we are removing no longer relevant key, we should remove its metadata too (e.g. from where it initially came, and when it was last verified).
source:opening_hours
should be deleted when updating a new place in the Places overlay #6057Tested with debug apk on e.g. https://www.openstreetmap.org/node/832042729 which has
source:opening_hours
and which regular SC does not remove...(it also adds
--info
togradlew test
invocation in GitHub action, to report reason in case of test failure - which I needed and think is useful all around when we run tests)