forked from strictdoc-project/strictdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generated search URLs for project statistics
Search URLs generated for the project statistic page were caught by Jinja2 autoescaping, which makes them invalid. A good place to mark them as safe is the view object: It's the immediate layer below Jinja templates and specifically made to provide strings included by a Jinja2 template. Relates to strictdoc-project#1920.
- Loading branch information
Showing
8 changed files
with
106 additions
and
10 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
8 changes: 8 additions & 0 deletions
8
tests/end2end/helpers/screens/project_statistics/project_statistics.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
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
35 changes: 35 additions & 0 deletions
35
tests/end2end/screens/project_statistics/view_project_statistics/input.sdoc
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,35 @@ | ||
[DOCUMENT] | ||
TITLE: Test document | ||
|
||
[SECTION] | ||
TITLE: Section title | ||
|
||
[REQUIREMENT] | ||
UID: REQ-1 | ||
STATUS: Active | ||
TITLE: Requirement title | ||
STATEMENT: Requirement statement. | ||
RATIONALE: Rationale. TBD | ||
|
||
[REQUIREMENT] | ||
UID: REQ-2 | ||
STATUS: Draft | ||
TITLE: Requirement title | ||
STATEMENT: Requirement statement. | ||
|
||
[REQUIREMENT] | ||
UID: REQ-3 | ||
STATUS: Other | ||
TITLE: Requirement title | ||
STATEMENT: Requirement statement. | ||
|
||
[REQUIREMENT] | ||
STATUS: Backlog | ||
TITLE: Requirement title | ||
STATEMENT: Requirement statement. TBD | ||
|
||
[REQUIREMENT] | ||
TITLE: Requirement title | ||
STATEMENT: Requirement statement. TBC | ||
|
||
[/SECTION] |
3 changes: 2 additions & 1 deletion
3
tests/end2end/screens/project_statistics/view_project_statistics/strictdoc.toml
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[project] | ||
|
||
features = [ | ||
"PROJECT_STATISTICS_SCREEN" | ||
"PROJECT_STATISTICS_SCREEN", | ||
"SEARCH" | ||
] |
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