Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Better Projections #111

Open
wants to merge 100 commits into
base: main
Choose a base branch
from
Open

Commits on Nov 24, 2022

  1. Configuration menu
    Copy the full SHA
    6821bfd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6fd6fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74c1cc7 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    bd91eae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6292a7a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7bb785e View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2022

  1. Configuration menu
    Copy the full SHA
    bd5fac6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e45753 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2022

  1. refactor: use ValueObjects instead of Raw Values

    to keep usage consistent
    the-avid-engineer committed Nov 27, 2022
    Configuration menu
    Copy the full SHA
    f33deb3 View commit details
    Browse the repository at this point in the history
  2. refactor: don't require a named DbSet property

    prevents using one DbContext for multiple snapshots (and therefore prevents related snapshots)
    the-avid-engineer committed Nov 27, 2022
    Configuration menu
    Copy the full SHA
    f4512fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d54256f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    030514e View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Configuration menu
    Copy the full SHA
    0d61f8e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b56aaf4 View commit details
    Browse the repository at this point in the history
  3. chore: exclude functioning CommitTransaction from tests

    Tests should be running in TestMode, and should not actually commit data.
    the-avid-engineer committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    2ed1224 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3f6891 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0292dab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e69b30b View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2022

  1. refactor: remove various ITransactionStep concept.. if you want to ad…

    …d/delete tags/leases, must use the I(Add/Delete)(Leases/Tags)Command interface
    the-avid-engineer committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    2e44548 View commit details
    Browse the repository at this point in the history
  2. feat: rework projections

    - use ITransaction and ITransactionCommand as inputs to GetProjectionIdOrDefault and Reduce (gives access to command and agent signature)
    the-avid-engineer committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    c8be665 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6b865e View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. Configuration menu
    Copy the full SHA
    7161fc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b38f91 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2022

  1. Configuration menu
    Copy the full SHA
    ff38481 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a00f92a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a02723 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6f4f80 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. Update global.json

    the-avid-engineer committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    00201bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    105eb0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3340585 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2023

  1. Configuration menu
    Copy the full SHA
    a95d346 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    74735a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cfcb721 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5b6a94a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb6f3f7 View commit details
    Browse the repository at this point in the history
  6. refactor: better snapshot cleanup

    1. delete snapshot when all references deleted
    2. delete snapshot when all references are changed to point to a different snapshot
    3. provide an option to opt-out of cleanup behavior
    the-avid-engineer committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    8ae3913 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9ac9d2d View commit details
    Browse the repository at this point in the history
  8. refactor: force a constructor instead of using IDbContextFactory

    this allows for a single DbContext to have multiple connection configurations (e.g., read-only connection string)
    the-avid-engineer committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    8a275c7 View commit details
    Browse the repository at this point in the history
  9. refactor: force a constructor instead of using IDbContextFactory

    this allows for a single DbContext to have multiple connection configurations (e.g., read-only connection string)
    the-avid-engineer committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    218c0e5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4a2251e View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2023

  1. refactor: rename bits and bobs

    IEntityDbContext, EntityDbContextBase
    
    does not explicitly depend on involving snapshots
    the-avid-engineer committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    272d6fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4ca3276 View commit details
    Browse the repository at this point in the history
  3. refactor: IEntityDbContextFactory

    allow the end user to create DbContexts using just session option names
    the-avid-engineer committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    91dda92 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2de6819 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Configuration menu
    Copy the full SHA
    6c38180 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    060b975 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f39506 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    793b3db View commit details
    Browse the repository at this point in the history
  5. chore: cleanup

    the-avid-engineer committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    9ff226c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5391af8 View commit details
    Browse the repository at this point in the history
  7. fix: broken tests

    the-avid-engineer committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    23a18b2 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2023

  1. Configuration menu
    Copy the full SHA
    114d481 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed838e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    71a027e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e5f7a1e View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2023

  1. chore: update SDK

    the-avid-engineer committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    31ffa1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19d757e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d374c6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4c19ff View commit details
    Browse the repository at this point in the history
  5. chore: remove InMemory from test matrix

    mutations and InMemory don't mix
    the-avid-engineer committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    bdf62bf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e634769 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    386c557 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6606a5e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4060015 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2023

  1. Configuration menu
    Copy the full SHA
    152d4e9 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2023

  1. Configuration menu
    Copy the full SHA
    74394d7 View commit details
    Browse the repository at this point in the history
  2. refactor: better refactor of Add/Delete Tags/Leases

    pass in the whole entity, move responsibility of checking for implementation to the transaction builder, instead of repeating it in every single TransactionRepository implementation
    the-avid-engineer committed Dec 25, 2023
    Configuration menu
    Copy the full SHA
    d9de3fc View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. big refactor

    the-avid-engineer committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    4ce10ef View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Configuration menu
    Copy the full SHA
    7eef2e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dae6382 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4234985 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b3717e View commit details
    Browse the repository at this point in the history
  5. format

    the-avid-engineer committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    b1fd33e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    464d836 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0d7f829 View commit details
    Browse the repository at this point in the history
  8. feat: Event Streams

    the-avid-engineer committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    bc7973b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b176576 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d7d65e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5f8d36d View commit details
    Browse the repository at this point in the history
  12. refactor: better object names + entity and stream repos will short-ci…

    …rcuit returns true if there are no messages to commit
    the-avid-engineer committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    4831091 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Configuration menu
    Copy the full SHA
    b42f041 View commit details
    Browse the repository at this point in the history
  2. fix: await in test

    the-avid-engineer committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    0ca111d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a3939ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e8ddc1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e4a706 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. feat: more stream capabilities

    1. Load - requires existing stream
    2. Create - assumes a new stream
    3. First message for Create is always Version.One so that optimistic concurrency exceptions get logged
    4. Rename Stage to Append to be consistent
    5. Allow Append without Message Key
    6. Allow Deltas to manage leases/tags
    the-avid-engineer committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    5f27bf5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a6b7c91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4ecfcc View commit details
    Browse the repository at this point in the history
  4. expect version zero

    the-avid-engineer committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    1d3e97a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    65ea3c5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f1cab06 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. refactor

    1. attributes belong to sources, not states
    2. move TimeStamp from ValueObjects to Sources
    3. move Pointer and Version to states, prefix with State
    4. move Id to top level abstraction
    5. don't pass message key directly to Append, check if delta implements IAddMessageKeyDelta
    6. refactor Message.NewMessage to handle all lease collection (entities in the future might have key support?)
    7. move Key to common, replace with IStateKey and IMessageKey in abstractions
    8. move pointer satisfied check to the exception it always ends up throwing if fall
    the-avid-engineer committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    c77e5fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b46517 View commit details
    Browse the repository at this point in the history
  3. feat: Append that's not async

    not all appends are async.. wasted on non-async appends
    the-avid-engineer committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    bd1371d View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. fix

    the-avid-engineer committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    72b3b03 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. fix:allow for a conditional message key

    stripe test mode webhook doesn't send an idempotency key :/
    the-avid-engineer committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    37d325d View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. fix: allow null

    the-avid-engineer committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    6338b6c View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

  1. Configuration menu
    Copy the full SHA
    e24368f View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    ba4a93f View commit details
    Browse the repository at this point in the history
  2. refactor: update _namespaces_, and cache so that we don't have to rep…

    …eat the lookup logic over and over
    the-avid-engineer committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    7eef2e2 View commit details
    Browse the repository at this point in the history