-
-
Notifications
You must be signed in to change notification settings - Fork 521
E2e/merge update 1 #3151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
E2e/merge update 1 #3151
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7caf577
Refactor regex to use concise wildcard (#3026)
saichethana28 c78cb76
Run make update
arkid15r 6366072
Bump strawberry-graphql-django from 0.71.0 to 0.72.0 in /backend (#3090)
dependabot[bot] c83db94
Add keyboard navigation support to various components (#3086)
ShashaankS c29a4db
Remove unused function parameter `update_fields` from save method in …
swastikiscoding 204f833
Run make update
arkid15r b417c19
Run make update
arkid15r 66de469
Bump pymdown-extensions from 10.19.1 to 10.20 in /docs (#3129)
dependabot[bot] ec62075
Fix 404 flash on About page (#3124)
HarshitVerma109 65cb065
Remove unnecessary zero-fraction literals (#3113)
Nikhilkumarr-dev 429fa34
fix: Standardize compliance badge shape to match health score circle …
HarshitVerma109 40377cc
fix: incorrect Error constructor syntax in files (#2824)
nileshpahari af05575
Refactored nested ternary expressions (#3096)
anurag2787 61fd9c2
Prefer tag over ARIA role (#2977)
anurag2787 6ccd528
refactor(api): fix sonar S1192 in snapshot endpoint (#3076)
Ontiomacer 495e2fc
fix(board): render error state instead of infinite loader when data …
nios-x 176e31c
docs: Minor onboarding clarifications (#2585)
cognitivegears 7b84444
Merge branch 'main' into e2e/merge-update-1
ahmedxgouda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,6 +23,8 @@ | |
| from apps.owasp.models.project import Project as ProjectModel | ||
| from apps.owasp.models.snapshot import Snapshot as SnapshotModel | ||
|
|
||
| ORDERING_FIELD_DESCRIPTION = "Ordering field" | ||
|
|
||
|
Comment on lines
+26
to
+27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major Good DRY refactoring! Extracting the repeated "Ordering field" description into a constant improves maintainability and ensures consistency across all endpoints. 🤖 Prompt for AI Agents |
||
| router = RouterPaginated(tags=["Community"]) | ||
|
|
||
|
|
||
|
|
@@ -114,7 +116,7 @@ def list_snapshots( | |
| ] | ||
| | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[Snapshot]: | ||
| """Get all snapshots.""" | ||
|
|
@@ -160,7 +162,7 @@ def list_snapshot_chapters( | |
| snapshot_id: str = Path(example="2025-02"), | ||
| ordering: Literal["created_at", "-created_at", "updated_at", "-updated_at"] | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[Chapter]: | ||
| """Get new chapters in snapshot.""" | ||
|
|
@@ -185,7 +187,7 @@ def list_snapshot_issues( | |
| snapshot_id: str = Path(example="2025-02"), | ||
| ordering: Literal["created_at", "-created_at", "updated_at", "-updated_at"] | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[SnapshotIssue]: | ||
| """Get new issues in snapshot.""" | ||
|
|
@@ -212,7 +214,7 @@ def list_snapshot_members( | |
| snapshot_id: str = Path(example="2025-02"), | ||
| ordering: Literal["created_at", "-created_at", "updated_at", "-updated_at"] | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[Member]: | ||
| """Get new members in snapshot.""" | ||
|
|
@@ -237,7 +239,7 @@ def list_snapshot_projects( | |
| snapshot_id: str = Path(example="2025-02"), | ||
| ordering: Literal["created_at", "-created_at", "updated_at", "-updated_at"] | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[Project]: | ||
| """Get new projects in snapshot.""" | ||
|
|
@@ -262,7 +264,7 @@ def list_snapshot_releases( | |
| snapshot_id: str = Path(example="2025-02"), | ||
| ordering: Literal["created_at", "-created_at", "published_at", "-published_at"] | None = Query( | ||
| None, | ||
| description="Ordering field", | ||
| description=ORDERING_FIELD_DESCRIPTION, | ||
| ), | ||
| ) -> list[SnapshotRelease]: | ||
| """Get new releases in snapshot.""" | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: OWASP/Nest
Length of output: 90
🏁 Script executed:
Repository: OWASP/Nest
Length of output: 659
🌐 Web query:
hyphenation rules "sign up" vs "sign-up" adjective English grammar💡 Result:
Short answer
Sources
Fix hyphenation in Algolia setup narrative.
Line 254 contains a grammar issue: "sign up process" should be "sign-up process" when used as an adjective. Standard English conventions (Merriam-Webster, GSA style guide) require hyphenation for the attributive form, matching the style used in technical documentation.
🔎 Proposed grammar fix
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~254-~254: Use a hyphen to join words.
Context: ...u when you sign up. - During the sign up process, you may be asked to import d...
(QB_NEW_EN_HYPHEN)
🤖 Prompt for AI Agents