mozilla / bugzilla-dashboard

This is a bugzilla dashboard that helps management determine Bugzilla components triaging status
https://bugzilla-management-dashboard.netlify.com/
Mozilla Public License 2.0
11 stars 20 forks source link

Load Taskcluster private artifacts #133

Closed La0 closed 5 years ago

La0 commented 5 years ago

This is a demo to showcase loading private artifacts from Taskcluster.

I created a simple task that produces a dummy artifacts with the content Hello from Taskcluster, in a private path. The task is also indexed as index.project.relman.test-bastien.latest to be easily found.

LDAP users with the scopes granting access to project/relman/ artifacts should see the text appear in the top left corner after logging in.

La0 commented 5 years ago

Removed the demo after testing that it still works on the new production deployment.

I added a comment that shows how to use it:

import loadArtifact from '../../utils/artifacts';
const data = await loadArtifact(
  userSession,
  'project.relman.production.bugzilla-dashboard.latest',
  'project/relman/bugzilla-dashboard/XXXX.json'
);

Will give access to any data from https://tools.taskcluster.net/index/project.relman.production.bugzilla-dashboard/latest