Support TypedDataFilters in Data Fetcher

Created on 19 October 2021, over 3 years ago
Updated 24 June 2024, 7 months ago

Problem/Motivation

It would be great to apply filters using the DataFetcher service. Currently the placeholder resolver service uses DataFetcher to get the data, then applies the filters, then converts the result to a string - all in one method.

In some applications of DataFetcher, you want to apply a filter but not convert to a string at the end, for example, adding two days to a datetime item.

Proposed resolution

  1. Take the parseMainPlaceholderPart method and make it public on the data fetcher service
  2. Add an applyFilters method to the DataFetcher service
  3. Update placeholder resolver service to use the new methods

User interface changes

None

API changes

Two new public methods on the data fetcher service.

Data model changes

None

✨ Feature request
Status

Needs review

Version

2.1

Component

Data fetcher

Created by

πŸ‡¬πŸ‡§United Kingdom rlmumford Manchester

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024