This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Removing GNATS categories
> Two solutions come to mind:
>
> * Filter out the "hidden" categories in gnatsweb.pl; or,
> * Fix the GNATS server to filter the list of categories, perhaps based
> on the name of the logged in user.
>
> The first is probably a bad idea, since gnatsweb.pl lets you connect to
> severlal bug databases. The second means hacking GNATS itself
> (themselves?).
>
> Which is worse? :)
I think modifying gnatsd is not going to work, unless you want to get
that into gnats 4 earliest. You'd have to extend the structure of
gnatsd.access, and perhaps a number of other files (such as
categories).
While in principle it is a good thing that gnatsweb allows to connect
to different databases, customizing it via gnatsweb-site.pl is ok -
like having a function filter_categories, which gets the categories
list and can make a decision based on the database, the access mode,
and perhaps the user. In the specific case, it would have a narrow
list in sending mode, and a long list in editing mode.
Regards,
Martin