This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
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.
Overview
Renames ExtendedField.verified to ExtendedField.is_verified to be
consistent with Contributor.is_verified.
Considers Contributor.is_verified in addition to
ExtendedField.is_verified, via sorting by count of trust flags. Assigns
one trust flag if the contributor is verified and one trust flag if
the field is verified, resulting in 0, 1, or 2 possible trust flags.
Prioritizes
claimed
fields ahead ofmost frequent value
fields whensorting.
Includes the other_names and other_addresses
information with the extended_fields when serializing, to allow proper
server-side sorting and inclusion of contributor data.
Prioritizes the name from an active/verified facility claim over the
default facility object's name when serializing the Facility.name,
(unless it is in embed mode and prefer_contributor_name is active, in
which case prefers the contributor name).
Adjusts the created_from to hide other contributor information in embed
mode.
Connects #1570
Demo
Notes
We originally planned to overwrite the facility address and location with claim information as well as the facility name. However, while we record name and address for claims, we don’t have a location/geolocation for claims. This means that a) it’s not currently possible to show claim location for a facility, and b) if we use the claim address but the default location, we could easily end up in a situation where the address says we’re at location X,Y but the geolocation / map says we’re at location Z, A. Geolocating claim addresses is out of scope at this time, so we have prioritized the claim name only for the time being.
Testing Instructions
./tools/batch_process 16
./tools/batch_process 17
Checklist
fixup!
commits have been squashed