-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data for timeline (migration needed)
- Loading branch information
Showing
9 changed files
with
129 additions
and
2,144 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,22 @@ | ||
# Generated by Django 5.1 on 2024-10-04 08:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0029_alter_appliedcontrol_link_alter_evidence_link"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="appliedcontrol", | ||
name="start_date", | ||
field=models.DateField( | ||
blank=True, | ||
help_text="Start date (useful for timeline)", | ||
null=True, | ||
verbose_name="Start date", | ||
), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ pre-commit==3.8.0 | |
django-allauth[saml]==64.2.1 | ||
django-allauth==64.2.1 | ||
python-magic==0.4.27 | ||
pytz==2024.2 |
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
12 changes: 12 additions & 0 deletions
12
frontend/src/routes/(app)/(internal)/experimental/timeline/+page.server.ts
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,12 @@ | ||
import { BASE_API_URL } from '$lib/utils/constants'; | ||
|
||
import type { PageServerLoad } from './$types'; | ||
|
||
export const load = (async ({ fetch }) => { | ||
const endpoint = `${BASE_API_URL}/applied-controls/get_timeline_info/`; | ||
|
||
const res = await fetch(endpoint); | ||
const data = await res.json(); | ||
|
||
return { data }; | ||
}) satisfies PageServerLoad; |
Oops, something went wrong.