Skip to content

Commit

Permalink
Add the list of availables products.
Browse files Browse the repository at this point in the history
Fixes #118
  • Loading branch information
Rémy HUBSCHER committed Oct 13, 2017
1 parent 73dcd07 commit f1760d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CHANGELOG
- Ignore ``Copy of`` Telemetry search results (#115)
- Deduplicate Balrog Build IDs (#116)
- Build telemetry query from a list of build IDs (#117)
- Add the product lists in the homepage. (#118)
- Handle Telemetry empty results responses (#121)
- Enable a buildhub check for Nightly (#129)
- Keep only the Uptake ratio (#130)
Expand Down
5 changes: 3 additions & 2 deletions pollbot/views/home.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from aiohttp import web

from .. import __version__ as pollbot_version, HTTP_API_VERSION
from .. import __version__ as pollbot_version, HTTP_API_VERSION, PRODUCTS


async def redirect(request):
Expand All @@ -15,5 +15,6 @@ async def index(request):
"project_version": pollbot_version,
"url": "https://github.com/mozilla/PollBot",
"http_api_version": HTTP_API_VERSION,
"docs": "{}://{}/v1/api/doc/".format(proto, host)
"docs": "{}://{}/v1/api/doc/".format(proto, host),
"products": PRODUCTS
})
5 changes: 3 additions & 2 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from aiohttp import web, ClientError

from pollbot import __version__ as pollbot_version, HTTP_API_VERSION
from pollbot import __version__ as pollbot_version, HTTP_API_VERSION, PRODUCTS
from pollbot.app import get_app
from pollbot.middlewares import NO_CACHE_ENDPOINTS
from pollbot.exceptions import TaskError
Expand Down Expand Up @@ -87,7 +87,8 @@ async def test_home_body(cli):
"project_version": pollbot_version,
"url": "https://github.com/mozilla/PollBot",
"http_api_version": HTTP_API_VERSION,
"docs": "http://127.0.0.1/v1/api/doc/"
"docs": "http://127.0.0.1/v1/api/doc/",
"products": PRODUCTS
}, headers={"Host": "127.0.0.1"})


Expand Down

0 comments on commit f1760d4

Please sign in to comment.