Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Aug 25, 2023
1 parent 05f4b0d commit 7f7ad0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/datasets-live.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
4 changes: 1 addition & 3 deletions test/userInfo.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# roles = ["default", "customer_admin"]

query UserInfo {
users(limit: 1) {
id
Expand All @@ -26,4 +24,4 @@ query UserInfo {
accepted_tos
survey_submitted_time
}
}
}

0 comments on commit 7f7ad0a

Please sign in to comment.