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

WIP: Upgrading @matrixai/async-init, @matrixai/async-locks, @matrixai/db, @matrixai/errors, @matrixai/workers, Node.js and integrating @matrixai/resources #366

Closed
wants to merge 78 commits into from

Commits on Apr 7, 2022

  1. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    78f819f View commit details
    Browse the repository at this point in the history
  2. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    ff47a34 View commit details
    Browse the repository at this point in the history
  3. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    def75ea View commit details
    Browse the repository at this point in the history
  4. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    b7139af View commit details
    Browse the repository at this point in the history
  5. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    eba4ab5 View commit details
    Browse the repository at this point in the history
  6. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    1513517 View commit details
    Browse the repository at this point in the history
  7. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    56e6ca1 View commit details
    Browse the repository at this point in the history
  8. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    1450920 View commit details
    Browse the repository at this point in the history
  9. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    36d70de View commit details
    Browse the repository at this point in the history
  10. WIP

    CMCDragonkai committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9f3908c View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. build: upgrade to Node v16

    Updated pkgs.nix to a5774e76bb8c3145eac524be62375c937143b80c
    Updated node2nix to 1.11.0 and loading directly from GitHub
    Updated pkg to 5.6.0 and using pkg-fetch 3.3 base binaries
    Updated to TypeScript 4.5+
    Updated @types/node to 16.11.7
    Updated node-gyp-build to 4.4.0
    Updated typedoc to 0.22.15, the .nojekyll generation is automatic
    Changed to target ES2021 as node 16 supports it
    Bin executable duct-tape in default.nix because node2nix no longer generates bin executables
    Updated pkg builds hashes to v16.14.2 and specified target node range
    emmacasolin committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    efa964b View commit details
    Browse the repository at this point in the history
  2. build: updating core libraries

    Updated js-async-init from 1.6.0 to 1.7.1
    Updated js-async-locks from 2.0.0 to 2.2.0
    Updated js-db from 3.2.0 to 3.2.3
    Updating js-workers from 1.2.5 to 1.3.1
    emmacasolin committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    98b9c0f View commit details
    Browse the repository at this point in the history
  3. wip: all errors extend AbstractError<T> and descriptions are static

    The `data` POJO that was originally supplied in the constructor as the second parameter is now part of the `options` parameter and most places in the code have been updated to match this.
    emmacasolin committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    54dc620 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. feat: using cause property to establish error chain

    When any error is thrown as the result of another error occurring, the original error is now contained within the `cause` property of the new error.
    
    #304
    emmacasolin committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    891b526 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a8817fc View commit details
    Browse the repository at this point in the history

Commits on May 2, 2022

  1. Configuration menu
    Copy the full SHA
    4756866 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6886dc9 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2022

  1. feat: error serialisation/deserialisation over gRPC incorporating err…

    …or chaining
    
    Our gRPC `toError` and `fromError` utils are now able to serialise and deserialise Polykey and non-Polykey errors (as well as non-errors), including the entire error chain if this exists. Also includes the ability to filter out sensitive data, for example when the error is being sent to another agent.
    
    Errors sent over the network in this way are now additionally wrapped on the receiving side in an `ErrorPolykeyRemote` to make the source of the error more clear.
    
    #304
    emmacasolin committed May 3, 2022
    Configuration menu
    Copy the full SHA
    c6a1f43 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2022

  1. feat: added logger to service handlers

    All of the agent and client service handlers are now passed a shared logger that is used to log errors to stderr.
    
    #304
    emmacasolin committed May 4, 2022
    Configuration menu
    Copy the full SHA
    e9545c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad979c9 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2022

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

Commits on May 9, 2022

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

Commits on May 10, 2022

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

Commits on May 11, 2022

  1. wip: integrating db changes into Notifications

    Note that the `transaction` and `_transaction` methods still need te removed.
    tegefaulkes committed May 11, 2022
    Configuration menu
    Copy the full SHA
    d9f2d9c View commit details
    Browse the repository at this point in the history
  2. wip: integrating db changes into Discovery

    I opted not to use transactions for the most part. Adding things to the queue has to be handled with locking anyway so I opted to rely on that istead. This still bears testing though.
    tegefaulkes committed May 11, 2022
    Configuration menu
    Copy the full SHA
    bb4c55c View commit details
    Browse the repository at this point in the history

Commits on May 12, 2022

  1. fixin: fix into wip: integrating db changes into Notifications

    Updated the locking and some changes to the transactions
    tegefaulkes committed May 12, 2022
    Configuration menu
    Copy the full SHA
    4f0dc78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7830d7c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f4a54b View commit details
    Browse the repository at this point in the history
  4. fixin: discovery changes

    tegefaulkes committed May 12, 2022
    Configuration menu
    Copy the full SHA
    2b4b97e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    435b37e View commit details
    Browse the repository at this point in the history

Commits on May 13, 2022

  1. Configuration menu
    Copy the full SHA
    5e3e7b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f98cd10 View commit details
    Browse the repository at this point in the history
  3. fix: ACL tests passing

    emmacasolin committed May 13, 2022
    Configuration menu
    Copy the full SHA
    e521dc6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5856c4 View commit details
    Browse the repository at this point in the history
  5. fix: git tests passing

    emmacasolin committed May 13, 2022
    Configuration menu
    Copy the full SHA
    7515290 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    86a2323 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d2f7db4 View commit details
    Browse the repository at this point in the history
  8. fixin: fixing up vaults domain tests

    Fix into the vaults domain DB changes. Some tests are still failing but they relate to the `PolykeyAgent` failing to start.
    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    edc53c9 View commit details
    Browse the repository at this point in the history
  9. fix: fix for GRPCServer http2Servers hack

    This was throwing an error because the expected object structure changed. The typing is brittle here since we're going around typescript's back to get a private property.
    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    152cc45 View commit details
    Browse the repository at this point in the history
  10. fixin: ACL linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    be6103e View commit details
    Browse the repository at this point in the history
  11. fixin: client linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    50e72d4 View commit details
    Browse the repository at this point in the history
  12. fixin: gestalts linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    d2c7f1d View commit details
    Browse the repository at this point in the history
  13. fixin: nodes linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    fba5473 View commit details
    Browse the repository at this point in the history
  14. fixin: identities linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    2111d47 View commit details
    Browse the repository at this point in the history
  15. fixin: sessions linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    4618fd2 View commit details
    Browse the repository at this point in the history
  16. fixin: git linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    63a1d7e View commit details
    Browse the repository at this point in the history
  17. fixin: test linting

    tegefaulkes committed May 13, 2022
    Configuration menu
    Copy the full SHA
    2b6c909 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6ed8c69 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. fix: sigchain test fixes

    emmacasolin committed May 16, 2022
    Configuration menu
    Copy the full SHA
    4efb6c3 View commit details
    Browse the repository at this point in the history
  2. fixin: Small test fixes

    tegefaulkes committed May 16, 2022
    Configuration menu
    Copy the full SHA
    3aa7819 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ee7f9b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b687c43 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    5297219 View commit details
    Browse the repository at this point in the history
  2. fix: added locking back into sigchain

    Sequence numbers and claim ids needed locking due to serialisation concerns
    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    720587b View commit details
    Browse the repository at this point in the history
  3. style: lint

    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    b7dd7f1 View commit details
    Browse the repository at this point in the history
  4. fix: added locking back into notifications

    Notifications have strict ordering in the DB, therefore locking is required.
    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    edc25fd View commit details
    Browse the repository at this point in the history
  5. style: lint

    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    776ef99 View commit details
    Browse the repository at this point in the history
  6. fix: discovery test fixes

    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    faf0306 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    074cf24 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a011f65 View commit details
    Browse the repository at this point in the history
  9. style: lint

    emmacasolin committed May 17, 2022
    Configuration menu
    Copy the full SHA
    8b0d78f View commit details
    Browse the repository at this point in the history
  10. fix: fixing vaultManager tests

    There are still some tests failing due to cloning and pulling. Seems like a problem with the HTTP API for cloning.
    tegefaulkes committed May 17, 2022
    Configuration menu
    Copy the full SHA
    452e92e View commit details
    Browse the repository at this point in the history
  11. test: fixing client tests

    tegefaulkes committed May 17, 2022
    Configuration menu
    Copy the full SHA
    728b999 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f736cfa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    74b16fc View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. Configuration menu
    Copy the full SHA
    378663a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9598123 View commit details
    Browse the repository at this point in the history
  3. linting

    tegefaulkes committed May 18, 2022
    Configuration menu
    Copy the full SHA
    1ac018a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2e7fb8e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6dc7fdb View commit details
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. fix: toError deserialisation

    There was a bug with the `fromJSON` method where it couldn't deserialise an error with an undefined cause (because this is removed by the replacer)
    emmacasolin committed May 19, 2022
    Configuration menu
    Copy the full SHA
    162d84b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a55538d View commit details
    Browse the repository at this point in the history
  3. WIP fixing bin tests

    tegefaulkes committed May 19, 2022
    Configuration menu
    Copy the full SHA
    b465657 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    17d4cc0 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2022

  1. Configuration menu
    Copy the full SHA
    e0328e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8dd56a0 View commit details
    Browse the repository at this point in the history
  3. feat: updated NodeConnectionManager's resourceAcquire to handle err…

    …ors properly
    
    Making use of the updated API to use the error provided to the resourceRelease.
    tegefaulkes committed May 20, 2022
    Configuration menu
    Copy the full SHA
    e5c74b5 View commit details
    Browse the repository at this point in the history