Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix not in app table in audit report emails #368

Merged
merged 3 commits into from
Jun 12, 2023
Merged

Fix not in app table in audit report emails #368

merged 3 commits into from
Jun 12, 2023

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Jun 12, 2023

The NotInApp table in the audit report emails just showed dashes for all records that aren't in the app. This happened because the export results for "not_in_app" are a list of strings, not a dictionary as expected by django-tables2. Modify this by adding a render_instance method to the table, which just returns the string.

Closes #367

The NotInApp table in the audit report emails just showed dashes
for all records that aren't in the app. This happened because the
export results for "not_in_app" are a list of strings, not a dictionary
as expected by django-tables2. Modify this by adding a render_instance
method to the table, which just returns the string.

Closes #367
@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #368 (b444098) into main (71ba7f1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #368   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files         117      117           
  Lines       20630    20662   +32     
=======================================
+ Hits        20591    20623   +32     
  Misses         39       39           
Impacted Files Coverage Δ
anvil_consortium_manager/__init__.py 100.00% <100.00%> (ø)
...ium_manager/management/commands/run_anvil_audit.py 100.00% <100.00%> (ø)
anvil_consortium_manager/tests/test_commands.py 98.24% <100.00%> (+0.37%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amstilp amstilp merged commit 523d292 into main Jun 12, 2023
@amstilp amstilp deleted the bugfix/issue-367 branch June 12, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "not in app" audit table in management command email
1 participant