-
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 #536 from UW-GAC/feature/audit-drupal-data
Feature/audit drupal data
- Loading branch information
Showing
16 changed files
with
1,370 additions
and
29 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 |
---|---|---|
|
@@ -403,3 +403,13 @@ | |
# Specify the subject for AnVIL account verification emails. | ||
ANVIL_ACCOUNT_LINK_EMAIL_SUBJECT = "Verify your AnVIL account email" | ||
ANVIL_ACCOUNT_VERIFY_NOTIFICATION_EMAIL = "[email protected]" | ||
|
||
DRUPAL_API_CLIENT_ID = env("DRUPAL_API_CLIENT_ID", default="") | ||
DRUPAL_API_CLIENT_SECRET = env("DRUPAL_API_CLIENT_SECRET", default="") | ||
DRUPAL_API_REL_PATH = env("DRUPAL_API_REL_PATH", default="mockapi") | ||
DRUPAL_DATA_AUDIT_DEACTIVATE_USERS = env( | ||
"DRUPAL_DATA_AUDIT_DEACTIVATE_USERS", default=False | ||
) | ||
DRUPAL_DATA_AUDIT_REMOVE_USER_SITES = env( | ||
"DRUPAL_DATA_AUDIT_REMOVE_USER_SITES", default=False | ||
) |
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
18 changes: 18 additions & 0 deletions
18
primed/primed_anvil/migrations/0006_studysite_drupal_node_id.py
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,18 @@ | ||
# Generated by Django 3.2.19 on 2023-12-06 16:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('primed_anvil', '0005_availabledata'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='studysite', | ||
name='drupal_node_id', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
] |
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,47 @@ | ||
|
||
{% load static i18n %}<!DOCTYPE html> | ||
{% load render_table from django_tables2 %} | ||
|
||
<html> | ||
<head> | ||
<title>Drupal Data Audit Report</title> | ||
</head> | ||
|
||
<div class="container"> | ||
|
||
{% block content %} | ||
|
||
<h1>Drupal Data Audit - [applying_changes={{ apply_changes }}]</h1> | ||
<h2>User Audit</h2> | ||
|
||
<h3>Verified Users - {{ user_audit.verified|length }} record(s)</h3> | ||
|
||
<h3>Needs action - {{user_audit.needs_action|length }} record(s)</h3> | ||
{% if user_audit.needs_action %} | ||
{% render_table user_audit.get_needs_action_table %} | ||
{% endif %} | ||
|
||
<h3>Errors - {{user_audit.errors|length }} record(s)</h3> | ||
{% if user_audit.errors %} | ||
{% render_table user_audit.get_errors_table %} | ||
{% endif %} | ||
|
||
<h2>Site Audit</h2> | ||
|
||
<h3>Verified sites - {{ site_audit.verified|length }} record(s)</h3> | ||
|
||
<h3>Sites that need action - {{site_audit.needs_action|length }} record(s)</h3> | ||
{% if site_audit.needs_action %} | ||
{% render_table site_audit.get_needs_action_table %} | ||
{% endif %} | ||
|
||
<h3>Sites with errors - {{site_audit.errors|length }} record(s)</h3> | ||
{% if site_audit.errors %} | ||
{% render_table site_audit.get_errors_table %} | ||
{% endif %} | ||
|
||
|
||
{% endblock content %} | ||
|
||
</div> | ||
</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
Oops, something went wrong.