Skip to content

Commit

Permalink
Merge pull request #671 from gemini-hlsw/steward/update-odb-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
toddburnside authored Feb 13, 2025
2 parents 8ab8bf7 + b62ae49 commit 4337819
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ val Versions = new { // sbt doesn't like object definitions in build.sbt
val munitCatsEffect = "2.0.0"
}

ThisBuild / tlBaseVersion := "0.116"
ThisBuild / tlBaseVersion := "0.117"
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / crossScalaVersions := Seq("3.6.3")
ThisBuild / tlVersionIntroduced := Map("3" -> "0.29.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,13 @@ input ProgramUserPropertiesInput {

"""The user's reported gender."""
gender: Gender

"""
Whether the user has data access. This property may be changed only by the
PI (or staff). If a COI attempts to change the data access flag, the entire
update is ignored.
"""
hasDataAccess: Boolean
}

"""The role a user a plays when assigned to a program."""
Expand All @@ -2832,6 +2839,9 @@ enum ProgramUserRole {
"""Co-Investigator (read-only access)"""
COI_RO

"""External"""
EXTERNAL

"""Staff/Partner Primary Support"""
SUPPORT_PRIMARY

Expand Down Expand Up @@ -2875,6 +2885,9 @@ type ProgramUser {

"""User invitations, if any, associated with this program user."""
invitations: [UserInvitation!]!

"""Has access to data."""
hasDataAccess: Boolean!
}

"""Proper motion component, choose one of the available units"""
Expand Down Expand Up @@ -7486,6 +7499,15 @@ type Query {
"""Metadata for `enum FilterType`"""
filterTypeMeta: [FilterTypeMeta!]!

"""
Obtains a list of program references for which the user with ORCiD `orcidId`
has GOA data-download access privileges. These will be those for which the
user is a ProgramUser of any role with the `hasDataAccess` flag set.
This query is for use by staff and the GOA and will fail for other users.
"""
goaDataDownloadAccess(orcidId: String!): [ProgramReferenceLabel!]!

"""Returns the group indicated by the given groupId, if found."""
group(groupId: GroupId!): Group

Expand Down Expand Up @@ -11050,6 +11072,9 @@ input WhereProgramUser {

"""Matches the gender status."""
gender: WhereOptionEqGender

"""Matches the data access flag."""
hasDataAccess: WhereBoolean
}

"""Proposal filter options. All specified items must match."""
Expand Down

0 comments on commit 4337819

Please sign in to comment.