Skip to content

Conversation

@AlexanderNZ
Copy link
Contributor

@AlexanderNZ AlexanderNZ commented Jan 29, 2026

Here’s a small cleanup I made so the filter query logic lives in one place.

What I changed

  • pulled the filter-to-querystring logic into a shared helper
  • updated the IcePanel client methods to use that helper

Why I did it

  • it was the same logic repeated in several places
  • a single helper makes future tweaks safer and easier to review

Test plan

  • not run (refactor only)

Recommended merge order

The filter-to-URLSearchParams conversion logic was duplicated 4 times
across getCatalogTechnologies, getOrganizationTechnologies,
getModelObjects, and getModelConnections.

This extracts a buildFilterParams helper function that handles:
- Array values
- Null values
- Labels objects
- Simple string/boolean values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant