mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-09 04:38:49 +00:00
feat(Scan, Finding): PRWLR-4987 Adjust findings delta based on previous findings (#52)
* feat(Finding): PRWLR-4987 add uid field to Findings * feat(Scan): PRWLR-4987 implement logic to calculate Finding delta value * test(Scan): PRWLR-4987 add unit tests for _create_finding_delta * chore(Spec): PRWLR-4987 update API spec
This commit is contained in:
1 parent
8130880f2d
commit
8791b7e3f1
12 files changed
+144
-61
No files matched your search
@@ -477,6 +477,7 @@ class Finding(PostgresPartitionedModel, RowLevelSecurityProtectedModel):
|
||||
inserted_at = models.DateTimeField(auto_now_add=True, editable=False)
|
||||
updated_at = models.DateTimeField(auto_now=True, editable=False)
|
||||
|
||||
uid = models.CharField(max_length=150)
|
||||
delta = FindingDeltaEnumField(
|
||||
choices=DeltaChoices.choices,
|
||||
blank=True,
|
||||
@@ -539,6 +540,7 @@ class Finding(PostgresPartitionedModel, RowLevelSecurityProtectedModel):
|
||||
]
|
||||
|
||||
indexes = [
|
||||
models.Index(fields=["uid"], name="findings_uid_idx"),
|
||||
models.Index(
|
||||
fields=[
|
||||
"scan_id",
|
||||
|
||||
Reference in new issue
Block a user