Skip to content

Commit

Permalink
🐛 fix sonarqube api importer key length, issue 9611 (DefectDojo#9683)
Browse files Browse the repository at this point in the history
* 🐛 fix sonarqube api importer key length, issue 9611

* update db migrations

* adapt db migrations

* Update and rename 0206_alter_sonarqube_issue_key.py to 0207_alter_sonarqube_issue_key.py

---------

Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
  • Loading branch information
manuel-sommer and Maffooch committed Mar 27, 2024
1 parent 0b1d068 commit 1646825
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions dojo/db_migrations/0207_alter_sonarqube_issue_key.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.1.13 on 2024-03-05 20:08

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('dojo', '0206_system_settings_api_expose_error_details'),
]

operations = [
migrations.AlterField(
model_name='sonarqube_issue',
name='key',
field=models.CharField(help_text='SonarQube issue key', max_length=60, unique=True),
),
]
2 changes: 1 addition & 1 deletion dojo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ def get_breadcrumbs(self):


class Sonarqube_Issue(models.Model):
key = models.CharField(max_length=30, unique=True, help_text=_("SonarQube issue key"))
key = models.CharField(max_length=60, unique=True, help_text=_("SonarQube issue key"))
status = models.CharField(max_length=20, help_text=_("SonarQube issue status"))
type = models.CharField(max_length=20, help_text=_("SonarQube issue type"))

Expand Down

0 comments on commit 1646825

Please sign in to comment.