Skip to content

PSP-6586 : List-view Tables: all text box search filters do not TRIM white space#5249

Open
eddherrera wants to merge 2 commits intobcgov:devfrom
eddherrera:psp-6586
Open

PSP-6586 : List-view Tables: all text box search filters do not TRIM white space#5249
eddherrera wants to merge 2 commits intobcgov:devfrom
eddherrera:psp-6586

Conversation

@eddherrera
Copy link
Collaborator

No description provided.

@eddherrera eddherrera requested a review from asanchezr March 10, 2026 22:59
@eddherrera eddherrera self-assigned this Mar 10, 2026
@eddherrera eddherrera added the enhancement New feature or request label Mar 10, 2026
@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5249

Copy link
Collaborator

@asanchezr asanchezr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the comments. Also, I did not see changes to a number of other filter-models. Did you ensure that values are trimmed for?

  • ManagementActivityFilterModel
  • ManagementFilterModel
  • ContactFilterModel
  • PropertyFilterModel
  • ResearchFilterModel
  • LeaseFilterModel

Comment on lines +115 to +117
AcquisitionFileNameOrNumber = model.AcquisitionFileNameOrNumber.Trim(),
ProjectNameOrNumber = model.ProjectNameOrNumber.Trim(),
OwnerName = model.OwnerName.Trim(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we always get empty strings here or should we check for nulls in the payload we get from the frontend?
ie - OwnerName = model.OwnerName?.Trim(),

Comment on lines 111 to 112
Pid = model.Pid,
Pin = model.Pin,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about trimming PID and PIN?

Comment on lines +106 to +107
Address = model.Address?.Trim(),
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference?.Trim(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see you guard for nulls here - should be applied to all other places

Also PID/PID should be trimmed as well everywhere (this is the main source of copy/paste)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants