CyberShadow / bugzilla-meta

1 stars 0 forks source link

Have nice links for the default issue list #8

Open wilzbach opened 6 years ago

wilzbach commented 6 years ago

(this is a minor nit, but something that's really bothering me about issues.dlang.org, so I thought I share it).

I can navigate to Phobos' PR site in ~1.5 seconds because I just need to type "phob" in my URL bar and chrome will auto-complete it automatically:

image

This makes it very convenient for me to go there. On the other hand, this is the URL of Phobos issue list:

https://issues.dlang.org/buglist.cgi?component=phobos&list_id=220627&product=D&resolution=---

I just will never memorize 220627.

Anyhow, I was thinking about:

issues.dlang.org/phobos (gives a dashboard of Phobos with e.g. the 20 last bugs, 20 most hyped bugs, current projects that are worked on and maybe sth. like available keywords (quick navigation for the win) and maybe some quick daily/weekly/monthly stats)

Then something like:

issues.dlang.org/list/phobos

would open up the actual list.

It's probably just a few htaccess/nginx rewrites

CyberShadow commented 6 years ago

Redirects probably won't get stored in the browser history... I think this one would be tricky to achieve.

AFAIK the list_id is ephemeral and just an optimization.

wilzbach commented 6 years ago

Redirects probably won't get stored in the browser history... I think this one would be tricky to achieve.

It's trivial when using nginx, e.g. sth.

server {
    set $upstream 127.0.0.1:8080;
    location / {
        proxy_pass http://$upstream;
    }

    location /list/phobos {
        proxy_pass http://$upstream/buglist.cgi?product=D&component=druntime&resolution=---
    }
}

https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

Though yep it's just a nice to have.

CyberShadow commented 6 years ago

Oh, you mean a server-side redirect. Yeah, we could do that.