forked from hail-is/hail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from populationgenomics/upstream
Merge remote-tracking branch 'upstream/main' into upstream
- Loading branch information
Showing
66 changed files
with
1,558 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
from typing import Optional | ||
from typing import Optional, List | ||
|
||
GITHUB_CLONE_URL = 'https://github.com/' | ||
GITHUB_STATUS_CONTEXT = 'ci-test' | ||
TEAMS = ['Services', 'Compiler'] | ||
|
||
|
||
class User: | ||
def __init__(self, gh_username: str, hail_username: Optional[str]): | ||
# pylint: disable=dangerous-default-value | ||
def __init__(self, gh_username: str, hail_username: Optional[str] = None, teams: List[str] = []): | ||
self.gh_username = gh_username | ||
self.hail_username = hail_username | ||
self.teams = teams | ||
|
||
|
||
AUTHORIZED_USERS = [ | ||
User('danking', 'dking'), | ||
User('danking', 'dking', ['Services']), | ||
User('cseed', 'cseed'), | ||
User('konradjk', 'konradk'), | ||
User('jigold', 'jigold'), | ||
User('patrick-schultz', 'pschultz'), | ||
User('lfrancioli', None), | ||
User('tpoterba', 'tpoterba'), | ||
User('chrisvittal', 'cvittal'), | ||
User('catoverdrive', 'wang'), | ||
User('johnc1231', 'johnc'), | ||
User('nawatts', None), | ||
User('mkveerapen', None), | ||
User('Dania-Abuhijleh', None), | ||
User('bw2', None), | ||
User('jigold', 'jigold', ['Services']), | ||
User('patrick-schultz', 'pschultz', ['Compiler']), | ||
User('lfrancioli'), | ||
User('tpoterba', 'tpoterba', ['Compiler']), | ||
User('chrisvittal', 'cvittal', ['Compiler']), | ||
User('catoverdrive', 'wang', ['Services', 'Compiler']), | ||
User('johnc1231', 'johnc', ['Compiler']), | ||
User('nawatts'), | ||
User('mkveerapen'), | ||
User('Dania-Abuhijleh'), | ||
User('bw2'), | ||
User('pwc2', 'pcumming'), | ||
User('lgruen', None), | ||
User('CDiaz96', 'carolin'), | ||
User('daniel-goldstein', 'dgoldste'), | ||
User('lgruen'), | ||
User('CDiaz96', 'carolin', ['Services']), | ||
User('daniel-goldstein', 'dgoldste', ['Services']), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% macro team_table(team_member) %} | ||
<table class="data-table"> | ||
<thead> | ||
<th>component</th> | ||
<th>reviewer</th> | ||
</thead> | ||
<tbody> | ||
{% for team, member in team_member.items() %} | ||
<tr> | ||
<td>{{ team }}</td> | ||
<td>{{ member }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,46 @@ | ||
{% from "pr-table.html" import pr_table with context %} | ||
{% from "dev-deploy-table.html" import dev_deploy_table with context %} | ||
{% from "team-table.html" import team_table with context %} | ||
{% extends "layout.html" %} | ||
|
||
{% block title %}User Homepage{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Welcome, {{ username }}!</h1> | ||
|
||
GitHub username: {{ gh_username }} | ||
<h2>PRs</h2> | ||
{% for wb in watched_branches %} | ||
{% if wb.prs is not none %} | ||
<h2 class="stacked-header">{{ wb.branch }}</h2> | ||
{{ pr_table(wb) }} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<br> | ||
<h1>Welcome, {{ username }}!</h1> | ||
|
||
GitHub username: {{ gh_username }} | ||
|
||
<div style='display: flex; flex-flow: row wrap;'> | ||
<div style='flex: 40%'> | ||
<div style='margin-bottom: 5%'> | ||
<h2>My PRs</h2> | ||
{% for wb in pr_wbs %} | ||
{% if wb.prs is not none %} | ||
<h3 class="stacked-header">{{ wb.branch }}</h3> | ||
{{ pr_table(wb) }} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
<div style='margin-bottom: 5%'> | ||
<h2>Assigned Reviews</h2> | ||
{% for wb in review_wbs %} | ||
{% if wb.prs is not none %} | ||
<h3 class="stacked-header">{{ wb.branch }}</h3> | ||
{{ pr_table(wb) }} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
<div style='margin-bottom: 5%'> | ||
{{ team_table(team_member) }} | ||
</div> | ||
</div> | ||
|
||
<div style='flex: 40%; padding-left: 10px'> | ||
<h2>Dev Deploys</h2> | ||
{{ dev_deploy_table(dev_deploys) }} | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
Oops, something went wrong.