Skip to content

Commit

Permalink
fix: add meta to support new format
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Jan 7, 2025
1 parent 9de3014 commit d650d77
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 11 deletions.
32 changes: 22 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions examples/hostedexample.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,5 +657,10 @@
],
"environment": "production",
"inlineSegmentConstraints": true
},
"meta": {
"revisionId": 21,
"etag": "\"76d8bb0e:21\"",
"queryHash": "76d8bb0e"
}
}
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ tokio-stream = { version = "0.1.17" }
tracing = { version = "0.1.40", features = ["log"] }
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
ulid = "1.1.2"
unleash-types = { version = "0.14", features = ["openapi", "hashes"] }
unleash-types = { version = "0.15.3", features = ["openapi", "hashes"] }
unleash-yggdrasil = { version = "0.14.1" }
utoipa = { version = "5", features = ["actix_extras", "chrono"] }
utoipa-swagger-ui = { version = "8", features = ["actix-web"] }
Expand Down
1 change: 1 addition & 0 deletions server/src/http/unleash_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ mod tests {
],
segments: None,
query: None,
meta: None,
}
}

Expand Down
1 change: 1 addition & 0 deletions server/src/internal_backstage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ mod tests {
query: None,
segments: None,
version: 2,
meta: None,
};
let client_features = FeatureCache::default();
client_features.insert(
Expand Down
1 change: 1 addition & 0 deletions server/src/offline/offline_hotload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ fn make_simple_bootstrap(simple_bootstrap: HashMap<String, SimpleFeature>) -> Cl
features,
segments: None,
query: None,
meta: None,
}
}

Expand Down
1 change: 1 addition & 0 deletions server/src/persistence/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ mod tests {
version: 2,
segments: None,
query: None,
meta: None,
};

let formatted_data = vec![("some-environment".into(), client_features)];
Expand Down
1 change: 1 addition & 0 deletions server/src/ready_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ mod tests {
query: None,
segments: None,
version: 2,
meta: None,
};
let client_features: FeatureCache = FeatureCache::default();
client_features.insert(
Expand Down

0 comments on commit d650d77

Please sign in to comment.