a4dc6d13b5
* events: rename audit to events * policies/expression: log expression exceptions as event * policies/expression: add ExpressionPolicy Model to event when possible * lib/expressions: ensure syntax errors are logged too * lib: fix lint error * policies: add execution_logging field * core: add property mapping tests * policies/expression: add full test * policies/expression: fix attribute name * policies: add execution_logging * web: fix imports * root: update swagger * policies: use dataclass instead of dict for types * events: add support for dataclass as event param * events: add special keys which are never cleaned * policies: add tests for process, don't clean full cache * admin: create event when new version is seen * events: move utils to separate file * admin: add tests for admin tasks * events: add .set_user method to ensure users have correct attributes set * core: add test for property_mapping errors with user and request
22 lines
590 B
Python
22 lines
590 B
Python
# Generated by Django 3.1.4 on 2020-12-15 09:41
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("authentik_policies", "0003_auto_20200908_1542"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="policy",
|
|
name="execution_logging",
|
|
field=models.BooleanField(
|
|
default=False,
|
|
help_text="When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.",
|
|
),
|
|
),
|
|
]
|