Skip to content

services module: move OData filter-schema transformer to a shared utility module #5162

Description

@odinr

Context

In packages/modules/services/src/bookmarks/endpoints/user-bookmarks.get.ts, the OData filter-schema transformer carries a note that it belongs in a shared location:

/**
 * Schema transformer of the filter object to an OData filter string.
 *
 * @todo This function should be moved to a shared utility module.
 */

Task

  • Identify (or create) an appropriate shared utility module for OData filter-schema transformers within @equinor/fusion-framework-module-services (or a more general utils package if it's reusable beyond bookmarks).
  • Move the transformer there and update the import in user-bookmarks.get.ts.
  • Check for other endpoints with similar inline transformers that could reuse the shared utility.

File

packages/modules/services/src/bookmarks/endpoints/user-bookmarks.get.ts (line ~22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions