all good
This commit is contained in:
parent
47d89f6fad
commit
017902b8e6
82 changed files with 331466 additions and 54841 deletions
|
|
@ -10,7 +10,13 @@ use crate::data::{Histogram, PropertyData};
|
|||
use crate::features::{self, Feature, FEATURE_GROUPS};
|
||||
use crate::state::SharedState;
|
||||
|
||||
const FILTER_GROUP_ORDER: &[&str] = &["Transport", "Property prices", "Properties", "Amenities"];
|
||||
const FILTER_GROUP_ORDER: &[&str] = &[
|
||||
"Transport",
|
||||
"Property prices",
|
||||
"Properties",
|
||||
"Defining characteristics",
|
||||
"Amenities",
|
||||
];
|
||||
const LAST_FILTER_GROUPS: &[&str] = &["Area development"];
|
||||
const POI_DISTANCE_SLIDER_MIN_KM: f32 = 0.0;
|
||||
const POI_DISTANCE_SLIDER_MAX_KM: f32 = 5.0;
|
||||
|
|
@ -268,11 +274,12 @@ mod tests {
|
|||
fn orders_filter_groups_for_backend_response() {
|
||||
let mut groups = vec![
|
||||
group("Properties"),
|
||||
group("Education"),
|
||||
group("Schools"),
|
||||
group("Area development"),
|
||||
group("Property prices"),
|
||||
group("Crime"),
|
||||
group("Neighbours"),
|
||||
group("Defining characteristics"),
|
||||
group("Amenities"),
|
||||
group("Transport"),
|
||||
];
|
||||
|
|
@ -286,8 +293,9 @@ mod tests {
|
|||
"Transport",
|
||||
"Property prices",
|
||||
"Properties",
|
||||
"Defining characteristics",
|
||||
"Amenities",
|
||||
"Education",
|
||||
"Schools",
|
||||
"Crime",
|
||||
"Neighbours",
|
||||
"Area development",
|
||||
|
|
|
|||
|
|
@ -633,7 +633,8 @@ mod tests {
|
|||
|
||||
assert!(fields_specified);
|
||||
assert!(field_set.contains("Property type"));
|
||||
assert!(!field_set.contains("Noise (dB)"));
|
||||
assert!(field_set.contains("Street tree density percentile"));
|
||||
assert!(field_set.contains("Noise (dB)"));
|
||||
assert!(!field_set.contains("Max available download speed (Mbps)"));
|
||||
assert!(!field_set.contains("Distance to nearest amenity (Cafe) (km)"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use axum::Extension;
|
||||
use axum::extract::State;
|
||||
use axum::http::StatusCode;
|
||||
use axum::response::IntoResponse;
|
||||
use axum::response::Json;
|
||||
use axum::Extension;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::auth::OptionalUser;
|
||||
use crate::data::{PlaceData, slugify};
|
||||
use crate::data::{slugify, PlaceData};
|
||||
use crate::licensing::{check_license_point, resolve_share_code};
|
||||
use crate::state::SharedState;
|
||||
use crate::utils::normalize_postcode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue