# Code maintenance OP-20778 - Replace deprecated RxJS usages in core

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-20778

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Designer |  |
| Developers | Alexander Coles |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions | 18.1.0 |
| Sprint |  |
| Backlog bucket |  |
| Module | Frontend components and Primer design system |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

### Goal

Update 59 deprecated RxJS call sites in OpenProject core. Replace `toPromise()` with `firstValueFrom` or `lastValueFrom` as appropriate. Use an observer for `subscribe()`, an error factory for `throwError()`, an array for `forkJoin()`, an inner `map()` for the `switchMap()` result selector, and `map(() => value)` for `mapTo(value)`.

RxJS 7.8.2 marks 53 of these calls for removal in v8 and six `mapTo()` calls for removal in v9. The CKEditor bundle is tracked separately: <mention class="mention" data-id="83417" data-type="work_package" data-text="#OP-20779" data-display-id="OP-20779">\#OP-20779</mention> 

See [RxJS deprecations](https://rxjs.dev/api/deprecations).

### Hints for QA

No end user perceptible changes.
