-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
61 changed files
with
16,692 additions
and
7,378 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
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
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
121 changes: 121 additions & 0 deletions
121
scanpipe/migrations/0030_scancode_toolkit_v32_model_updates.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,121 @@ | ||
# Generated by Django 4.2 on 2023-05-05 06:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("scanpipe", "0029_codebaseresource_scanpipe_co_type_ea1dd7_idx_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveIndex( | ||
model_name="discoveredpackage", | ||
name="scanpipe_di_license_e8ce32_idx", | ||
), | ||
migrations.RenameField( | ||
model_name="discoveredpackage", | ||
old_name="license_expression", | ||
new_name="declared_license_expression", | ||
), | ||
migrations.AlterField( | ||
model_name="discoveredpackage", | ||
name="declared_license_expression", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The license expression for this package typically derived from its extracted_license_statement or from some other type-specific routine or convention.", | ||
), | ||
), | ||
migrations.RenameField( | ||
model_name="discoveredpackage", | ||
old_name="declared_license", | ||
new_name="extracted_license_statement", | ||
), | ||
migrations.AlterField( | ||
model_name="discoveredpackage", | ||
name="extracted_license_statement", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The license statement mention, tag or text as found in a package manifest and extracted. This can be a string, a list or dict of strings possibly nested, as found originally in the manifest.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="declared_license_expression_spdx", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The SPDX license expression for this package converted from its declared_license_expression.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="holder", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="Holders for this package. Typically one per line.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="license_detections", | ||
field=models.JSONField( | ||
blank=True, | ||
default=list, | ||
help_text="A list of LicenseDetection mappings typically derived from its extracted_license_statement or from some other type-specific routine or convention.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="other_license_detections", | ||
field=models.JSONField( | ||
blank=True, | ||
default=list, | ||
help_text="A list of LicenseDetection mappings which is different from the declared_license_expression, (i.e. not the primary license) These are detections for the detection for the license expressions in other_license_expression. ", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="other_license_expression", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The license expression for this package which is different from the declared_license_expression, (i.e. not the primary license) routine or convention.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="other_license_expression_spdx", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="The other SPDX license expression for this package converted from its other_license_expression.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression", | ||
field=models.TextField(blank=True, help_text="The license expression summarizing the license info for this resource, combined from all the license detections"), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="detected_license_expression_spdx", | ||
field=models.TextField(blank=True, help_text="The detected license expression for this file, with SPDX license keys"), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="license_detections", | ||
field=models.JSONField( | ||
blank=True, default=list, help_text="List of license detection details." | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="license_clues", | ||
field=models.JSONField( | ||
blank=True, default=list, help_text="List of license matches that are not proper detections and potentially just clues to licenses or likely false positives. Those are not included in computing the detected license expression for the resource." | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="codebaseresource", | ||
name="percentage_of_license_text", | ||
field=models.FloatField(blank=True, help_text="Percentage of file words detected as license text or notice.", null=True), | ||
), | ||
] |
Oops, something went wrong.