-
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.
Update view tests for new REPLACED status
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.urls import include, path | ||
|
||
from . import views | ||
|
||
app_name = "collaborative_analysis" | ||
|
||
|
||
collaborative_analysis_workspace_patterns = ( | ||
[ | ||
path( | ||
"<slug:billing_project_slug>/<slug:workspace_slug>/audit/", | ||
views.WorkspaceAudit.as_view(), | ||
name="audit", | ||
), | ||
], | ||
"workspaces", | ||
) | ||
|
||
urlpatterns = [ | ||
path("workspaces/", include(collaborative_analysis_workspace_patterns)), | ||
] |
53 changes: 53 additions & 0 deletions
53
primed/templates/collaborative_analysis/collaborativeanalysisworkspace_audit.html
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,53 @@ | ||
{% extends "anvil_consortium_manager/base.html" %} | ||
|
||
{% block title %}dbGaP workspace audit{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<h1>Collaborative analysis workspace audit</h1> | ||
|
||
<div class="my-3 p-3 bg-light border rounded shadow-sm"> | ||
<ul> | ||
<li>Collaborative analysis workspace: <a href="{{ object.get_absolute_url }}">{{ object }}</a></li> | ||
</ul> | ||
</div> | ||
|
||
<h2>Audit results</h2> | ||
|
||
<div class="my-3 p-3 bg-light border rounded shadow-sm"> | ||
<p> | ||
To have access to a Collaborative Analysis Workspace, an account must meet both of the following criteria: | ||
|
||
<ul> | ||
<li>Be in the analyst group associated with the workspace</li> | ||
<li>Be in the auth domain for all source workspaces</li> | ||
</ul> | ||
</p> | ||
<p>The audit result categories are explained below. | ||
<ul> | ||
|
||
<li><b>Verified</b> includes the following:</li> | ||
<ul> | ||
<li>An account in the analyst group is in the auth domain for this workspace and is in all auth domains for all source workspaces.</li> | ||
<li>An account in the analyst group is <b>not</b> in the auth domain for this workspace and is <b>not</b> in all auth domains for all source workspaces.</li> | ||
</ul> | ||
|
||
<li><b>Needs action</b> includes the following:</li> | ||
<ul> | ||
<li>An account in the analyst group is <b>not</b> in the auth domain for this workspace and is in all auth domains for all source workspaces.</li> | ||
<li>An account in the analyst group is in the auth domain for this workspace and is <b>not</b> in all auth domains for all source workspaces.</li> | ||
</ul> | ||
|
||
<li><b>Errors</b></li> | ||
<ul> | ||
<li>A group is unexpectedly in the auth domain.</li> | ||
</ul> | ||
</ul> | ||
</p> | ||
<p>Any errors should be reported!</p> | ||
</div> | ||
|
||
{% include "__audit_tables.html" with verified_table=verified_table needs_action_table=needs_action_table errors_table=errors_table %} | ||
|
||
Check warning on line 52 in primed/templates/collaborative_analysis/collaborativeanalysisworkspace_audit.html
|
||
{% endblock content %} |