Skip to content

Commit

Permalink
Feat/membership notrack refactor (#17)
Browse files Browse the repository at this point in the history
* refactor, minor fixes

* do not reset ongoing grace period on extension (cf. spec change)

* minor renaming, comments

* refactor, group functions by funcitonality

* extract membership expiration calculation to internal function

* save active duration per membership (must carry over after extension)

* optional lazy erasure from membership set

* minor fixes in tests

* fix: off-by-one: end index can't be equal to next free index

* minor refactoring, comments

* define period boundaries: start inclusive, end exclusive

* separate eraseMembership functions to user-focused (lazy) and admin-focused (tree cleanup)

* minor fix to maintain line lengths

* unify membership-related events

* add test for  zero grace period

* fix typo in comment

Co-authored-by: richΛrd <[email protected]>

---------

Co-authored-by: richΛrd <[email protected]>
  • Loading branch information
s-tikhomirov and richard-ramos authored Oct 7, 2024
1 parent ce52272 commit 79fd7ec
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 348 deletions.
Loading

0 comments on commit 79fd7ec

Please sign in to comment.