-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEVPROD-12399: Introduce Repo GQL query #8717
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ type Query { | |
before: Time | ||
): ProjectEvents! | ||
projectSettings(projectIdentifier: String! @requireProjectAccess(permission: SETTINGS, access:VIEW)): ProjectSettings! | ||
repo(repoId: String! @requireProjectAccess(permission: TASKS, access: VIEW)): RepoRef! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay now that I'm thinking about it, I feel like we don't have any built-in support for the condition "If user has task permission for a project, they should also have task permission for the repo" and we would have to write code to support it. it is kind of a weird condition but I think we need to have the permission restriction to block access to restricted projects |
||
repoEvents(repoId: String! @requireProjectAccess(permission: SETTINGS, access: VIEW), limit: Int = 0, before: Time): ProjectEvents! | ||
repoSettings(repoId: String! @requireProjectAccess(permission: SETTINGS, access: VIEW)): RepoSettings! | ||
viewableProjectRefs: [GroupedProjects!]! | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"repo_ref": [ | ||
{ | ||
"_id": "sandbox_repo_id", | ||
"display_name": "Sandbox", | ||
"enabled": null, | ||
"owner_name": "evergreen-ci", | ||
"repo_name": "commit-queue-sandbox", | ||
"branch_name": "main", | ||
"remote_path": "evergreen.yml", | ||
"patching_disabled": false, | ||
"pr_testing_enabled": true, | ||
"stepback_disabled": false, | ||
"batch_time": 2, | ||
"deactivate_previous": true, | ||
"triggers": [], | ||
"commit_queue": { | ||
"enabled": true, | ||
"require_signed": false, | ||
"merge_method": "squash", | ||
"message": "hmmm" | ||
}, | ||
"admins": ["annie.black"], | ||
"spawn_host_script_path": "", | ||
"tracks_push_events": true, | ||
"perf_enabled": true, | ||
"build_baron_settings": { | ||
"ticket_create_project": "EVG", | ||
"ticket_search_projects": ["EVG"], | ||
"bf_suggestion_server": "", | ||
"bf_suggestion_username": "", | ||
"bf_suggestion_password": "", | ||
"bf_suggestion_timeout_secs": 0, | ||
"bf_suggestion_features_url": "" | ||
}, | ||
"task_annotation_settings": { | ||
"web_hook": { | ||
"endpoint": "endpoint", | ||
"secret": "shh" | ||
} | ||
}, | ||
"container_size_definitions": [ | ||
{ | ||
"name": "size1", | ||
"cpu": 1, | ||
"memory_mb": 1024 | ||
}, | ||
{ | ||
"name": "size2", | ||
"cpu": 2, | ||
"memory_mb": 2048 | ||
} | ||
], | ||
"git_tag_authorized_users": ["ablack12"], | ||
"workstation_config": { | ||
"setup_commands": null, | ||
"git_clone": false | ||
}, | ||
"hidden": false | ||
} | ||
], | ||
"github_hooks": [ | ||
{ | ||
"owner": "evergreen-ci", | ||
"repo": "commit-queue-sandbox", | ||
"app_id": 1234, | ||
"installation_id": 5678 | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. we could add the
repoID
here for more information