-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
730 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by Django 5.1.2 on 2024-12-05 00:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dojo', '0218_system_settings_enforce_verified_status_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='system_settings', | ||
name='enable_linear', | ||
field=models.BooleanField(default=False, verbose_name='Enable Linear integration'), | ||
), | ||
migrations.CreateModel( | ||
name='Linear_Issue', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('url', models.URLField(max_length=2000, unique=True)), | ||
('findings', models.ManyToManyField(related_name='linear_issues', to='dojo.finding')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Linear_Instance', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('instance_name', models.CharField(default='', help_text='Enter a name to give to this configuration', max_length=2000, unique=True)), | ||
('api_key', models.CharField(max_length=2000)), | ||
('team_id', models.CharField(default='', help_text='Enter the UUID of the Team where you want to file Issues', max_length=64)), | ||
('addl_json_input', models.JSONField(blank=True, default=dict, help_text='Enter any additional JSON input you want to use when creating new Issues', max_length=2000, null=True)), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
dojo/db_migrations/0220_alter_linear_instance_addl_json_input.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,18 @@ | ||
# Generated by Django 5.1.2 on 2024-12-05 20:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dojo', '0219_linear_integration'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='linear_instance', | ||
name='addl_json_input', | ||
field=models.JSONField(blank=True, default=dict, help_text='Enter any additional JSON input you want to use when creating new Issues, e.g. { "labelIds": ["your-label-uuid"] }', max_length=2000, null=True), | ||
), | ||
] |
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
Empty file.
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,10 @@ | ||
from django.urls import re_path | ||
|
||
from . import views | ||
|
||
urlpatterns = [ | ||
re_path(r"^linear/add", views.NewLinearView.as_view(), name="add_linear"), | ||
re_path(r"^linear/(?P<lid>\d+)/edit$", views.EditLinearView.as_view(), name="edit_linear"), | ||
re_path(r"^linear/(?P<lid>\d+)/delete$", views.DeleteLinearView.as_view(), name="delete_linear"), | ||
re_path(r"^linear$", views.ListLinearView.as_view(), name="linear"), | ||
] |
Oops, something went wrong.