project Websites / Gitlab Issue Listing Script avatar

websites/Gitlab-Issue-Listing-Script#27: Add ability to exclude projects from the project list by group name



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.4
Created: 20-Apr-22 07:30



Description

In jira-projects/LAN#45 I've set up periodic a sync of my Github repos down into Gitlab.

The idea is that issues will get updated when I reference them from a Github commit (as well as allowing GILS to show the diff).

Those synced projects go into a group called github-mirror

However, aside from the commits, there isn't really anything pertinent in those repos, so having them on the main project list just adds clutter.

What I'd like to implement is a groupname filter so that I can prevent anything in github-mirror from appearing on the homepage.



Issue Links

Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 5cfd8a9408dc3606473efa4f5c49615e8acf6841

Commit: 5cfd8a9408dc3606473efa4f5c49615e8acf6841 
Author: B Tasker                            
                            
Date: 2022-04-20T08:39:18.000+01:00 

Message

Introduce ability to filter the project list by groupname for websites/Gitlab-Issue-Listing-Script#27

This introduces a new configuration option $excluded_groups_from_homepage which accepts an array of group names. Any projects falling within that group will not be included in the project listing

+17 -0 (17 lines changed)

This seems to be working, using the new config option:

    public $excluded_groups_from_homepage = array('Github Mirror');

My mirrored projects are no longer included in the list.

They're still accessible by accessing their URLs directly, and they still crosslink into issues where appropriate.

mentioned in issue jira-projects/LAN#45

mentioned in issue #40

marked this issue as related to #40

Re-opening.

[#40](/issue/websites/Gitlab-Issue-Listing-Script/40.html) has implemented some other group related functionality and currently there's a mismatch in the way that things are configured.

This issue uses the human readable group name, but that's not available when doing other kinds of filtering, so [#40](/issue/websites/Gitlab-Issue-Listing-Script/40.html) has to use the URL based name.

As this hasn't been released yet, I'm reopening to rework the filter so that it uses the path rather than title

verified

mentioned in commit e5526b7db230ce5a922abb019b08d08460857d09

Commit: e5526b7db230ce5a922abb019b08d08460857d09 
Author: B Tasker                            
                            
Date: 2022-04-25T12:12:25.000+01:00 

Message

Switch $excluded_groups_from_homepage to using group paths rather than names so that it's consistent with $permitted_groups.

See websites/Gitlab-Issue-Listing-Script#27

+2 -2 (4 lines changed)

This is done, just needed switching to test against path rather than name.