Queries should be immutable value objects

Created on 4 June 2024, 23 days ago

Problem/Motivation

Project Browser source plugins have a getProjects() method which accepts one optional argument - an array of query parameters. The query parameters are documented on the interface, but there's no enforcement of them and they're not reliable.

Proposed resolution

Instead of an array, let's make the queries into an immutable value object which can be created from the request. This will give us a strong interface for the queries themselves, as well as type safety and the ability to do strong validation logic.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024