Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Update Muxer APIs.#79

Merged
dmaretskyi merged 7 commits intomasterfrom
burdon/api
Aug 10, 2020
Merged

Update Muxer APIs.#79
dmaretskyi merged 7 commits intomasterfrom
burdon/api

Conversation

@richburdon
Copy link
Copy Markdown
Contributor

@richburdon richburdon commented Aug 7, 2020

  • Convert PartyMuxer class to createPartyMuxer function (making pipeline more obvious and controllable).
createPartyMuxer(feedStore, feedKey).pipe(createItemDemuxer(itemManager));
  • Keep feedKey as bytes in protobuf (not string). Only convert to string for set equality, etc.
  • Removed waitForExpect from everywhere, replacing with sink watcher utility (more precise).
  • Gather up (and normalize) common testing utils.
  • Fix FeedStore streaming test (able to write to temp directory and then read from it with different instance).

- Don't convert FeedKey from buffer to string unless comparison is required.
- Test blocks
- Factor out test message creation.
@dmaretskyi dmaretskyi merged commit 20eecfd into master Aug 10, 2020
richburdon added a commit that referenced this pull request Aug 10, 2020
* API testing.

* Comments.

* Temp moved echo-environment-test to gravity.

* Update Muxer APIs. (#79)

* Update Muxer APIs.

* Updated stream handling.

* Updated tests.
- Don't convert FeedKey from buffer to string unless comparison is required.
- Test blocks
- Factor out test message creation.

* Event sink for deterministic tests without waitForExpect.

* Event sink.

* Remove waitForExpect.

* Clean-up.

* Restore experimental from accidental deletion.

* Restore deleted package.

* Tests passing.

* Comments.

* Remove e-e-t > gravity/agent-testing (#85)
dmaretskyi added a commit that referenced this pull request Aug 11, 2020
commit 79dfe15
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 09:10:59 2020 -0400

    Rename shims.

commit 56d3000
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:53:04 2020 -0400

    Refactoring.

commit e6e9290
Merge: 12fa96a ba4d614
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:44:43 2020 -0400

    Merge branch 'burdon/experimental-api' of github.com:dxos/echo into burdon/experimental-api

commit 12fa96a
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:44:28 2020 -0400

    Refactoring files.

commit ba4d614
Author: Dmytro Maretskyi <maretskii@gmail.com>
Date:   Tue Aug 11 11:57:27 2020 +0300

    Remove extra shims

commit fd83e7f
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:41:43 2020 -0400

    Move dirs.

commit fe46952
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:34:13 2020 -0400

    Moved files to ./pipeline

commit 72a93b9
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:28:19 2020 -0400

    Move to subdir.

commit d70d8f3
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:27:05 2020 -0400

    Move to subdir.

commit d220fb4
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:21:25 2020 -0400

    Comments.

commit 7041944
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 22:52:29 2020 -0400

    Working.

commit 9057dea
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 20:39:39 2020 -0400

    Remove event listener inheritance.

commit dba4628
Merge: 1c6e418 4dce729
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 16:08:10 2020 -0400

    Merge branch 'master' into burdon/db

commit 4dce729
Author: Rich Burdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 15:47:33 2020 -0400

    Remove e-e-t > gravity/agent-testing (#85)

commit 1c6e418
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 14:35:53 2020 -0400

    Comments.

commit dd316f8
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 10:01:53 2020 -0400

    Tests passing.

commit a3ac51a
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 08:12:27 2020 -0400

    Restore deleted package.

commit 9da21da
Merge: 932186d 20eecfd
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 07:59:27 2020 -0400

    Merge branch 'master' into burdon/db

commit 932186d
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 07:58:23 2020 -0400

    Restore experimental from accidental deletion.

commit 20eecfd
Author: Rich Burdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 04:34:00 2020 -0400

    Update Muxer APIs. (#79)

    * Update Muxer APIs.

    * Updated stream handling.

    * Updated tests.
    - Don't convert FeedKey from buffer to string unless comparison is required.
    - Test blocks
    - Factor out test message creation.

    * Event sink for deterministic tests without waitForExpect.

    * Event sink.

    * Remove waitForExpect.

    * Clean-up.

commit 68e712e
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 16:48:59 2020 -0400

    Temp moved echo-environment-test to gravity.

commit c9ef231
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 11:58:01 2020 -0400

    Comments.

commit 8162879
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 08:01:29 2020 -0400

    API testing.
richburdon added a commit that referenced this pull request Aug 20, 2020
* Squashed commit of the following:

commit 79dfe15
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 09:10:59 2020 -0400

    Rename shims.

commit 56d3000
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:53:04 2020 -0400

    Refactoring.

commit e6e9290
Merge: 12fa96a ba4d614
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:44:43 2020 -0400

    Merge branch 'burdon/experimental-api' of github.com:dxos/echo into burdon/experimental-api

commit 12fa96a
Author: richburdon <rich.burdon@gmail.com>
Date:   Tue Aug 11 08:44:28 2020 -0400

    Refactoring files.

commit ba4d614
Author: Dmytro Maretskyi <maretskii@gmail.com>
Date:   Tue Aug 11 11:57:27 2020 +0300

    Remove extra shims

commit fd83e7f
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:41:43 2020 -0400

    Move dirs.

commit fe46952
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:34:13 2020 -0400

    Moved files to ./pipeline

commit 72a93b9
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:28:19 2020 -0400

    Move to subdir.

commit d70d8f3
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:27:05 2020 -0400

    Move to subdir.

commit d220fb4
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 23:21:25 2020 -0400

    Comments.

commit 7041944
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 22:52:29 2020 -0400

    Working.

commit 9057dea
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 20:39:39 2020 -0400

    Remove event listener inheritance.

commit dba4628
Merge: 1c6e418 4dce729
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 16:08:10 2020 -0400

    Merge branch 'master' into burdon/db

commit 4dce729
Author: Rich Burdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 15:47:33 2020 -0400

    Remove e-e-t > gravity/agent-testing (#85)

commit 1c6e418
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 14:35:53 2020 -0400

    Comments.

commit dd316f8
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 10:01:53 2020 -0400

    Tests passing.

commit a3ac51a
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 08:12:27 2020 -0400

    Restore deleted package.

commit 9da21da
Merge: 932186d 20eecfd
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 07:59:27 2020 -0400

    Merge branch 'master' into burdon/db

commit 932186d
Author: richburdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 07:58:23 2020 -0400

    Restore experimental from accidental deletion.

commit 20eecfd
Author: Rich Burdon <rich.burdon@gmail.com>
Date:   Mon Aug 10 04:34:00 2020 -0400

    Update Muxer APIs. (#79)

    * Update Muxer APIs.

    * Updated stream handling.

    * Updated tests.
    - Don't convert FeedKey from buffer to string unless comparison is required.
    - Test blocks
    - Factor out test message creation.

    * Event sink for deterministic tests without waitForExpect.

    * Event sink.

    * Remove waitForExpect.

    * Clean-up.

commit 68e712e
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 16:48:59 2020 -0400

    Temp moved echo-environment-test to gravity.

commit c9ef231
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 11:58:01 2020 -0400

    Comments.

commit 8162879
Author: richburdon <rich.burdon@gmail.com>
Date:   Sun Aug 9 08:01:29 2020 -0400

    API testing.

* Fix build errors

* Use non-multiplexed events in Database/Party API

* Update @dxos/async

* Major refactoring.

* Major refactoring...

* Interim

* Working model tests.

* Working tests.

* Working item demuxer.

* Database tests working (round trip messages).

* Working async tests.

* Working async tests.

* With logging.

* Added clock and tests.

* Fixed test.

* Clock test.

* Docs.

* Spacetime module.

* Spacetime.

* Added timeframe to pipeline.

* Update proto.

* Model tests.

* Working ordered feeds.

* Working feed store iterator tests.

* Party processor.

* Comments.

* Comments.

* Working database and pipeline with feed store iterator and party processor feed checks.

* Comments.

* Comments.

* Factor out iterator functors.

* Comment.

* Comments.

* Party creation and construction.

* Comments.

* Cold start for database.

* Start of party properties.

* Party properties.

* Comments.

Co-authored-by: Dmytro Maretskyi <maretskii@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants