From 7f7ad0a404f51d02c9b4cf492c921e3329f1c58a Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Fri, 25 Aug 2023 17:27:35 +1200 Subject: [PATCH] update comments --- test/datasets-live.jl | 3 +++ test/userInfo.gql | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/datasets-live.jl b/test/datasets-live.jl index 28daab880..5fa0a5d02 100644 --- a/test/datasets-live.jl +++ b/test/datasets-live.jl @@ -8,6 +8,9 @@ function _get_user_groups_rest(auth::JuliaHub.Authentication) JuliaHub._throw_invalidresponse(r) end function _get_user_groups_gql(auth::JuliaHub.Authentication) + # Note: this query is newer than the one we use in src/userinfo.jl, and works + # with newer JuliaHub versions, whereas the other one specifically works with + # older versions. userinfo_gql = read(joinpath(@__DIR__, "userInfo.gql"), String) r = JuliaHub._gql_request(auth, userinfo_gql) r.status == 200 || error("Invalid response from GQL ($(r.status))\n$(r.body)") diff --git a/test/userInfo.gql b/test/userInfo.gql index 12df32a76..8b2a45580 100644 --- a/test/userInfo.gql +++ b/test/userInfo.gql @@ -1,5 +1,3 @@ -# roles = ["default", "customer_admin"] - query UserInfo { users(limit: 1) { id @@ -26,4 +24,4 @@ query UserInfo { accepted_tos survey_submitted_time } -} \ No newline at end of file +}