Skip to content

Normalize space values #146

@Jorgesnchz

Description

@Jorgesnchz

Description

The Content Manager and Security Analytics Plugin use different conventions for the space field:

Space Content Manager SAP
Standard standard Sigma
Custom custom Custom
Test test Test
Draft draft Draft

Differences:

  1. Naming mismatch: CM uses standard while SAP uses Sigma. The value Sigma should be changed, and the code adapted to standard is used instead
  2. Capitalization mismatch: SAP stores capitalized values, while CM uses lowercase. Capitalization/display formatting should be a concern of the dashboard, not the indexer.

Both systems should use the same lowercase values defined by the Content Manager: standard, custom, test, draft.

Functional requirements

  • SAP must store and return space values in lowercase: standard, custom, test, draft.
  • The value Sigma must be replaced by standard in all SAP code and stored data.
  • Any space comparisons in SAP code must use the lowercase values.
  • The dashboard is responsible for display formatting (e.g., capitalizing for the UI).

Implementation restrictions

  • Changes must be limited to the space names.

Plan

  • Update all SAP code that writes the space field to use lowercase values, replacing Sigma with standard.
  • Update all SAP code that reads/compares the space field to use the new constants.
  • Update unit and integration tests.
  • Coordinate with the dashboard team to ensure they handle display formatting on their side.
  • Check documentation.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Pending final review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions