Skip to content

Commit

Permalink
feat: hide archived projects (#216)
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Earley <[email protected]>
  • Loading branch information
TimothyEarley and Timothy Earley authored Mar 12, 2024
1 parent d431fe8 commit 867f71c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ fetchCount: 20
# Show only projects with recent pipelines
pipelinesOnly: false

# Whether to include archived projects
includeArchived: false

# Zooms the dashboard to fill the screen with all displayed projects.
# Not compatible with all browsers! See https://caniuse.com/#feat=css-zoom
autoZoom: false
Expand Down
1 change: 1 addition & 0 deletions charts/gitlab-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config: |
"maxAge": 168,
"fetchCount": 20,
"pipelinesOnly": false,
"includeArchived": false,
"autoZoom": false,
"showPipelineIds": true,
"showJobs": "iconAndName",
Expand Down
1 change: 1 addition & 0 deletions charts/gitlab-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ config: |
"maxAge": 168,
"fetchCount": 20,
"pipelinesOnly": false,
"includeArchived": false,
"autoZoom": false,
"showPipelineIds": true,
"showJobs": "iconAndName",
Expand Down
5 changes: 5 additions & 0 deletions src/components/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@
gitlabApiParams.include_subgroups = includeSubgroups
}
const includeArchived = Config.root.includeArchived
if (includeArchived === false) {
gitlabApiParams.archived = "false"
}
// Only use main level projects API if tighter scope not defined
const scopeType = Config.root.projectScope
// Reformat the variable as a flat list of Ids
Expand Down
1 change: 1 addition & 0 deletions src/config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"maxAge": 168,
"fetchCount": 20,
"pipelinesOnly": false,
"includeArchived": false,
"autoZoom": false,
"showPipelineIds": true,
"showProjectOnlyOn": [],
Expand Down

0 comments on commit 867f71c

Please sign in to comment.