You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scanpipe/migrations/0074_discovered_license_models.py
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,20 @@ class Migration(migrations.Migration):
102
102
help_text='True if this is not a proper license detection which should be considered in the license_expression for the parent resource/package. A license match is considered as a clue if it could be a possiblefalse positives or the matched rule is tagged as a clue explicitly.',
103
103
),
104
104
),
105
+
(
106
+
"from_package",
107
+
models.BooleanField(
108
+
default=False,
109
+
help_text='True if this was discovered in a extracted license statement and False if this was discovered in a file.',
110
+
),
111
+
),
112
+
(
113
+
"needs_review",
114
+
models.BooleanField(
115
+
default=False,
116
+
help_text='True if this was license detection needs to be reviewed as there might be a license detection issue.',
117
+
),
118
+
),
105
119
(
106
120
"project",
107
121
models.ForeignKey(
@@ -111,6 +125,15 @@ class Migration(migrations.Migration):
111
125
to="scanpipe.project",
112
126
),
113
127
),
128
+
(
129
+
"review_comments",
130
+
models.JSONField(
131
+
blank=True,
132
+
default=list,
133
+
help_text='A list of review comments for license detection issues which needs review. These descriptive comments are based on ambigous detection types and could also offers helpful suggestions on how to review/report these detection issues.',
134
+
verbose_name='Review Comments',
135
+
),
136
+
),
114
137
],
115
138
options={
116
139
"ordering": ["detection_count", "identifier"],
@@ -130,6 +153,18 @@ class Migration(migrations.Migration):
0 commit comments