Skip to content

Commit e44528e

Browse files
committed
Added GQL support to Report stackmuncher/stm_app#50
* switch juniper to a fork * switched stm_shared GQL mod to stm_lib * ES query for list of devs per stack * moved max_devs, max_results constants * removed old commented out code * a giant global reformat * upgraded uuid crate * removed stm_shared/graphql mod * replicated GitHubUser struct in stm_shared
1 parent 9c9c2aa commit e44528e

File tree

23 files changed

+320
-324
lines changed

23 files changed

+320
-324
lines changed

stm_graphql/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ futures = "0.3"
2727
urlencoding = "2.1"
2828
sysinfo = "0.23"
2929
jsonwebtoken = "8"
30-
juniper = { git = "https://github.com/graphql-rust/juniper.git"}
30+
# juniper = { git = "https://github.com/graphql-rust/juniper.git"}
31+
juniper = { git = "https://github.com/rimutaka/juniper.git", branch = "impl-hashset-as-vec" }
3132
stm_shared = { version = "0.1", path = "../stm_shared" }
33+
stackmuncher_lib = { version = "0.2", path = "../../stm_app/stackmuncher_lib" }

stm_graphql/src/config.rs

-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ pub struct Config {
4949
}
5050

5151
impl Config {
52-
/// The maximum number of dev listings per page of search results
53-
pub const MAX_DEV_LISTINGS_PER_SEARCH_RESULT: usize = 50;
54-
55-
/// The maximum number of pages allowed in search.
56-
/// Check HTML templates if changing the limits on page numbers
57-
/// 20 is hardcoded in some of the logic there
58-
pub const MAX_PAGES_PER_SEARCH_RESULT: usize = 20;
59-
6052
pub fn new() -> Self {
6153
let aws_region = AwsRegion::from_str(
6254
std::env::var("AWS_REGION")

0 commit comments

Comments
 (0)