Skip to content

Commit

Permalink
Yes, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Feb 13, 2020
1 parent 0221b4a commit e8ce18e
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion equinox-fc/Domain.Tests/Domain.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<WarningLevel>5</WarningLevel>
<RootNamespace>Fc.Domain.Tests</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion equinox-fc/Domain.Tests/Infrastructure.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ let createLogger sink =
// .MinimumLevel.Debug()
.Destructure.FSharpTypes()
.WriteTo.Sink(sink)
.CreateLogger()
.CreateLogger()
2 changes: 1 addition & 1 deletion equinox-fc/Domain.Tests/LocationEpochTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ let [<Property>] properties transactionId carriedForward delta1 closeImmediately
let [<Property>] ``codec can roundtrip`` event =
let ee = Events.codec.Encode(None,event)
let ie = FsCodec.Core.TimelineEvent.Create(0L, ee.EventType, ee.Data)
test <@ Some event = Events.codec.TryDecode ie @>
test <@ Some event = Events.codec.TryDecode ie @>
2 changes: 1 addition & 1 deletion equinox-fc/Domain.Tests/LocationSeriesTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ let [<Property>] properties c1 c2 =
let [<Property>] ``codec can roundtrip`` event =
let ee = Events.codec.Encode(None,event)
let ie = FsCodec.Core.TimelineEvent.Create(0L, ee.EventType, ee.Data)
test <@ Some event = Events.codec.TryDecode ie @>
test <@ Some event = Events.codec.TryDecode ie @>
2 changes: 1 addition & 1 deletion equinox-fc/Domain.Tests/LocationTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ type Cosmos(testOutput) =
let maxEvents = max 1 maxEvents
let shouldClose (state : Epoch.Fold.OpenState) = state.count > maxEvents
let service = Location.Cosmos.createService (zeroBalance, shouldClose) (context, cache, 50)
run service args
run service args
3 changes: 3 additions & 0 deletions equinox-fc/Domain/InventoryEpoch.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// Manages the ingestion (and deduplication based on a TransactionId) of events reflecting transfers or stock adjustments
/// that have been effected across a given set of Inventory
/// See Inventory.Service for surface level API which manages the ingestion, including transitioning to a new Epoch when an epoch reaches 'full' state
module Fc.Inventory.Epoch

// NB - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
Expand Down
4 changes: 4 additions & 0 deletions equinox-fc/Domain/InventorySeries.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/// Manages a) the ingestion epoch id b) the current checkpointed read position for a long-running Inventory Series
/// See InventoryEpoch for the logic managing the actual events logged within a given epoch
/// See Inventory.Service for the surface API which manages the writing
module Fc.Inventory.Series

// NB - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
Expand Down
2 changes: 1 addition & 1 deletion equinox-fc/Domain/Location.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Wip<'R> =
| Pending of decide : (Epoch.Fold.Balance -> 'R * Epoch.Events.Event list)
| Complete of 'R

/// Manages a Series of Epochs, with a running total being carried forward to the next Epoch when it's Closed
/// Manages Reads and Writes for a Series of Epochs, with a running total being carried forward to the next Epoch when it's marked Closed
type Service internal (zeroBalance, shouldClose, series : Series.Service, epochs : Epoch.Service) =

let rec execute locationId originEpochId =
Expand Down
3 changes: 3 additions & 0 deletions equinox-fc/Domain/LocationEpoch.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// Manages Stock adjustments and deltas for a given Location
/// Provides for controlled opening and closing of an epoch, carrying forward incoming balances when a given Epoch reaches a 'full' state
/// See Location.Service for the logic that allows competing readers/writers to co-operate in bringing this about
module Fc.Location.Epoch

// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
Expand Down
1 change: 1 addition & 0 deletions equinox-fc/Domain/LocationSeries.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Manages the active epoch for a given Location
module Fc.Location.Series

// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
Expand Down

0 comments on commit e8ce18e

Please sign in to comment.