Skip to content

Use promise for API calls and remove custom extensions#1335

Merged
dbeuchler merged 16 commits into
devfrom
rework/api-promise
Jul 15, 2026
Merged

Use promise for API calls and remove custom extensions#1335
dbeuchler merged 16 commits into
devfrom
rework/api-promise

Conversation

@dbeuchler

Copy link
Copy Markdown
Member

for #1061
based on #1330

The ng-openapi-gen configuration has been switched to "promises": true across all API services. This aligns the generated code with how it was already consumed. The most calls was wrapping the Observable in lastValueFrom() or .toAsync() anyway.

The custom observable.extensions.ts files (which added .toAsync() to Observable) have been deleted.

Unnecessary async/await wrappers on single-statement .then()/.catch() callbacks have been cleane. Same idea as avoiding redundant state machines in C#.

@dbeuchler dbeuchler added this to the Framework 10.x milestone Jul 12, 2026
@dbeuchler
dbeuchler requested a review from 1nf0rmagician July 12, 2026 18:27
@dbeuchler dbeuchler self-assigned this Jul 12, 2026
@dbeuchler dbeuchler added the enhancement New feature or request label Jul 12, 2026
# Conflicts:
#	src/Moryx.Operators.Web/app/src/app/operator-details/operator-details.ts
#	src/Moryx.Operators.Web/app/src/app/services/app-store.service.ts
#	src/Moryx.Shifts.Web/app/src/app/services/assignment.service.ts
#	src/Moryx.Workplans.Web/app/src/app/components/sessions/editor/editor.ts
#	src/Moryx.Workplans.Web/app/src/app/components/sessions/editor/node-properties/node-properties.ts
@dbeuchler
dbeuchler changed the base branch from dev to feature/resource-list-sort July 14, 2026 18:26
@dbeuchler
dbeuchler changed the base branch from feature/resource-list-sort to dev July 14, 2026 18:26
@dbeuchler
dbeuchler merged commit c89d636 into dev Jul 15, 2026
7 checks passed
@dbeuchler
dbeuchler deleted the rework/api-promise branch July 15, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants