-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/mula/restructure-folders
* main: Increase max number of PostgreSQL connections (#3889) Fix for task id as valid UUID (#3744) Add `auto_calculate_deadline` attribute to Scheduler (#3869) Ignore specific url parameters when following location headers (#3856) Let mailserver inherit l1 (#3704) Change plugins enabling in report flow to checkboxes (#3747) Fix rocky katalogus tests and delete unused fixtures (#3884) Enable/disable scheduled reports (#3871)
- Loading branch information
Showing
36 changed files
with
530 additions
and
252 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
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.
17 changes: 17 additions & 0 deletions
17
octopoes/bits/ask_url_params_to_ignore/ask_url_params_to_ignore.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,17 @@ | ||
import json | ||
from collections.abc import Iterator | ||
from pathlib import Path | ||
from typing import Any | ||
|
||
from octopoes.models import OOI | ||
from octopoes.models.ooi.network import Network | ||
from octopoes.models.ooi.question import Question | ||
|
||
|
||
def run(input_ooi: Network, additional_oois: list, config: dict[str, Any]) -> Iterator[OOI]: | ||
network = input_ooi | ||
|
||
with (Path(__file__).parent / "question_schema.json").open() as f: | ||
schema = json.load(f) | ||
|
||
yield Question(ooi=network.reference, schema_id=schema["$id"], json_schema=json.dumps(schema)) |
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 bits.definitions import BitDefinition | ||
from octopoes.models.ooi.network import Network | ||
|
||
BIT = BitDefinition( | ||
id="ask_url_params_to_ignore", | ||
consumes=Network, | ||
parameters=[], | ||
min_scan_level=0, | ||
module="bits.ask_url_params_to_ignore.ask_url_params_to_ignore", | ||
) |
17 changes: 17 additions & 0 deletions
17
octopoes/bits/ask_url_params_to_ignore/question_schema.json
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,17 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "/bit/oois-in-headers", | ||
"type": "object", | ||
"default": {}, | ||
"required": [ | ||
"ignored_url_parameters" | ||
], | ||
"properties": { | ||
"ignored_url_parameters": { | ||
"description": "Comma separated list of url parameters that are ignored when following location headers.", | ||
"type": "string", | ||
"pattern": "^(\\s*(,*)[^,]+,?\\s*)*$", | ||
"default": "session_id, phpsessid, jsessionid, cifd, cftoken, asp.net_sessionid" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.system-tag, | ||
span.system-tag { | ||
background-color: var(--colors-white); | ||
border: 2px solid; | ||
border-radius: var(--border-radius-xl); | ||
padding: var(--spacing-grid-025) var(--spacing-grid-100); | ||
box-sizing: border-box; | ||
width: auto; | ||
|
||
&::before { | ||
content: none; | ||
} | ||
|
||
&.color-1 { | ||
color: var(--colors-blue-600); | ||
border-color: var(--colors-blue-600); | ||
} | ||
|
||
&.color-2 { | ||
color: var(--colors-green-600); | ||
border-color: var(--colors-green-600); | ||
} | ||
|
||
&.color-3 { | ||
color: var(--colors-ochre-500); | ||
border-color: var(--colors-ochre-500); | ||
} | ||
|
||
&.color-4 { | ||
color: var(--colors-orange-600); | ||
border-color: var(--colors-orange-600); | ||
} | ||
|
||
&.color-5 { | ||
color: var(--colors-red-600); | ||
border-color: var(--colors-red-600); | ||
} | ||
|
||
&.color-6 { | ||
color: var(--colors-purrple-600); | ||
border-color: var(--colors-purrple-600); | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
rocky/reports/templates/report_overview/modal_partials/enable_disable_schedule_modal.html
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,24 @@ | ||
{% load i18n %} | ||
|
||
{% component "modal" size="dialog-small" modal_id=modal_id %} | ||
{% fill "header" %} | ||
{% translate "Disable schedule" %} | ||
{% endfill %} | ||
{% fill "content" %} | ||
<form id="content-form" class="horizontal-view" action="" method="post"> | ||
{% csrf_token %} | ||
<p> | ||
{% blocktranslate with report_name=schedule.recipe.report_name_format %} | ||
Are you sure you want to disable the schedule for {{ report_name }}? | ||
The recipe will still exist and the schedule can be enabled later on. | ||
{% endblocktranslate %} | ||
</p> | ||
</form> | ||
{% endfill %} | ||
{% fill "footer_buttons" %} | ||
<a class="button destructive" | ||
href="{% url "enable_disable_scheduled_reports" organization.code %}?schedule_id={{ schedule.schedule_id }}">{% translate "Disable schedule" %}</a> | ||
<button class="ghost close-modal-button">{% translate "Cancel" %}</button> | ||
{% endfill %} | ||
{% endcomponent %} | ||
{% component_css_dependencies %} |
Oops, something went wrong.