Page MenuHomePhorge

Add storage interface
AbandonedPublicDraft

Authored by tusooa on Mon, Sep 8, 4:20 PM.

Details

Reviewers
None
Group Reviewers
O1: the Kazv Project
Summary

This adds a StorageInterface that deals with the events storage. Two functions are defined: the saving and loading of events. Deleting events from the storage is intentionally not defined, as the individual providers are likely to have different mechanism for deletion and we do not think it will be required by libkazvclient.

CCBUG: https://iron.lily-is.land/T165

Type: add

Test Plan

Verify unit tests pass.

This patch should be reviewed together with a future patch that actually saves and loads data from the storage.

Diff Detail

Repository
rL libkazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 425
Build 833: GitLab CI for libkazv
Build 832: arc lint + arc unit

Event Timeline

After thinking about it I don't think we actually need an EventInterface as a dependency in the Client.

Instead of an EventInterface:

  • The saving event part can instead be emitted as a trigger, or by the user subscribing to the change of the model.
  • The loading event part can be simplified to an Action in the Client that takes the events that need loading.