Skip to content

Sonar S1192: Deduplicate "Ordering field" literal in Snapshot API #3039

@Ontiomacer

Description

@Ontiomacer

SonarCloud reports rule python:S1192 for duplicated string literal
"Ordering field" in:

backend/apps/api/rest/v0/snapshot.py

Scope:

  • File: backend/apps/api/rest/v0/snapshot.py
  • Change type: refactor only (no functional changes)

The literal is repeated across multiple Query() definitions.
Proposed fix is to extract it into a shared constant to improve
maintainability without changing behavior.

I have a local fix prepared and can submit a PR immediately once assigned.
Requesting assignment.

Here's the issue Link to the issue ->
https://sonarcloud.io/project/issues?issueStatuses=OPEN%2CCONFIRMED&id=OWASP_Nest&open=AZp_Y416hNsNmhyTltSQ

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions