diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a9c4bc9..a0336602 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Change the type of `id` in `ranked_outlier`/`saved_outlier` queries to `StringNumber`. + ## [0.14.5] - 2023-11-02 ### Changed @@ -320,6 +326,7 @@ across our system. - An initial version. +[Unreleased]: https://github.com/aicers/review-web/compare/0.14.5...main [0.14.5]: https://github.com/aicers/review-web/compare/0.14.4...0.14.5 [0.14.4]: https://github.com/aicers/review-web/compare/0.14.3...0.14.4 [0.14.3]: https://github.com/aicers/review-web/compare/0.14.2...0.14.3 diff --git a/Cargo.toml b/Cargo.toml index 1725ee55..d69bf460 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "review-web" -version = "0.14.5" +version = "0.15.0-alpha.1" edition = "2021" [dependencies] anyhow = "1" -async-graphql = { version = "6", features = ["chrono"] } +async-graphql = { version = "6", features = ["chrono", "string_number"] } async-graphql-axum = "6" async-trait = "0.1" axum = { version = "0.6", features = ["headers", "macros"] } diff --git a/src/graphql/outlier.rs b/src/graphql/outlier.rs index ac087bad..6c429f97 100644 --- a/src/graphql/outlier.rs +++ b/src/graphql/outlier.rs @@ -3,7 +3,7 @@ use crate::graphql::{earliest_key, latest_key}; use anyhow::anyhow; use async_graphql::{ connection::{query, Connection, Edge, EmptyFields}, - types::ID, + types::{StringNumber, ID}, ComplexObject, Context, InputObject, Object, ObjectType, OutputType, Result, SimpleObject, }; use bincode::Options; @@ -188,7 +188,7 @@ async fn load_outliers( #[derive(Debug, SimpleObject)] pub(super) struct RankedOutlier { - id: i64, + id: StringNumber, model_id: i32, timestamp: i64, rank: i64,