Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions backend/plugins/jenkins/api/remote_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,8 @@ func listJenkinsRemoteScopes(
getJobsPageCallBack := func(job *models.Job) errors.Error {
switch job.Class {
case "org.jenkinsci.plugins.workflow.job.WorkflowJob":
// this is a scope
Copy link
Copy Markdown
Contributor

@abeizn abeizn May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete this code? It resulted in many of my scopes not being displayed. @gustavobini cc @klesh

jenkinsJob := job.ToJenkinsJob()
children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.JenkinsJob]{
Type: api.RAS_ENTRY_TYPE_SCOPE,
Id: jenkinsJob.ScopeId(),
Name: jenkinsJob.ScopeName(),
FullName: jenkinsJob.ScopeFullName(),
Data: jenkinsJob,
ParentId: parentId,
})
case "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject":
case "hudson.model.FreeStyleProject":
// this is a scope
jenkinsJob := job.ToJenkinsJob()
children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.JenkinsJob]{
Expand Down