authgear / authgear/authgear-server

Optimize workflow

Open
#3,505 1 comment 0 reactions 1 assignee Claimed by @louischan-oursky View on GitHub
cooldown/enhancement
Dominant language
Go
Stars
2k
Forks
125
Avg merge
2d 17h
Merged PRs (30d)
32

Description

- ~~[x] Rewrite store/service API so that they do not mutate directly.~~
- [x] Rewrite event.Service
- [x] Separate it into event.BlockingEvents and event.NonblockingEvents
- [x] event.BlockingEvents.DeliverBlockingEvents(event) (*event.Mutations, error)
- [x] event.NonblockingEvents.DeliverNonBlockingEvents(event) error
- [x] Rewrite the lifecycle of workflow/authflow
- [x] workflow.Service do not open transaction when taking an input.
- [x] Allow ReactTo() to call workflow.WithTx if the node needs to read from the database, or see the effects of any previous nodes.
- [x] Remove OnCommitEffect
- [x] Introduce BeforeFinishEffect
- [x] Introduce AfterFinishEffect

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.