Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Add refs endpoint #147

Merged
merged 42 commits into from
Apr 16, 2020
Merged

Add refs endpoint #147

merged 42 commits into from
Apr 16, 2020

Commits on Apr 15, 2020

  1. fix: request logger name for good

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    bd362ea View commit details
    Browse the repository at this point in the history
  2. wip: initial broilerplate

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    e7030d8 View commit details
    Browse the repository at this point in the history
  3. wip: initial edges

    at least the test case seems to work, now left is pretty much mapping
    the options and the path handling.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    1524f3a View commit details
    Browse the repository at this point in the history
  4. wip: fmt and fix botched syntax

    accidentially commited a dangling closing brace.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    1e56108 View commit details
    Browse the repository at this point in the history
  5. wip: cleanup and notes

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    a6af055 View commit details
    Browse the repository at this point in the history
  6. feat: ipfspath parsing and walking

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    a04a004 View commit details
    Browse the repository at this point in the history
  7. refactor: rewrite to walk the path before streaming

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    fd8f255 View commit details
    Browse the repository at this point in the history
  8. refactor: rem warn, add comments

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    4c0ed8b View commit details
    Browse the repository at this point in the history
  9. fix: handling 0 for ipld link

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    cb526b0 View commit details
    Browse the repository at this point in the history
  10. wip almost get integrated but...

    still need to figure out the Send + Sync + 'static bound, issue is with
    Sync, which might come from the refs used, get_block(&cid)..
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    fa2b6d9 View commit details
    Browse the repository at this point in the history
  11. wip: get first tests to pass

    this required some unsafety to be able to present the Stream as Send +
    Sync + 'static as required by hyper. not 100% sure if that pin_project
    is ok to do, but the only interfaces exposed are callable as futures so
    it shouldn't be too bad.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    96891aa View commit details
    Browse the repository at this point in the history
  12. feat: format string support

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    1755cd0 View commit details
    Browse the repository at this point in the history
  13. fix: manual RefsOptions deserialization

    this is required to have multiple paths.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    c1aa1ef View commit details
    Browse the repository at this point in the history
  14. refactor: cleanup refs

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    0a4eebf View commit details
    Browse the repository at this point in the history
  15. fix: resolve multiple paths

    I had not originally noticed that we need to do the walk from multiple
    paths.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    8157f8e View commit details
    Browse the repository at this point in the history
  16. add: complete boilerplate for <linkname>

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    cc1ea82 View commit details
    Browse the repository at this point in the history
  17. add: dag-pb specific ipfspath walking

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    0be759a View commit details
    Browse the repository at this point in the history
  18. add: make IpfsPath better debuggable

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    96d6659 View commit details
    Browse the repository at this point in the history
  19. doc: possibly need to change status code for WalkFailed

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    4fb66df View commit details
    Browse the repository at this point in the history
  20. refactor: log block loading failed messages

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    3d0ae11 View commit details
    Browse the repository at this point in the history
  21. wip: adjust logging

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    1a1fafb View commit details
    Browse the repository at this point in the history
  22. add: parsing failed yielding

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    df08ec9 View commit details
    Browse the repository at this point in the history
  23. add: "specialize" ipld_links for dag-pb

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    a7140ec View commit details
    Browse the repository at this point in the history
  24. feat: support visiting unique nodes

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    b448b5b View commit details
    Browse the repository at this point in the history
  25. fix: instead of stopping, filter out too deep elements

    also, this should be done when expanding the nodes, not at this stage.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    b100c3e View commit details
    Browse the repository at this point in the history
  26. refactor: reorg and document

    originally it was easier to write everything to the same file, but it
    gets difficult to read after 1000 lines. while reorganising stuff into
    more tight modules, some direct calls were changed not to be needed,
    like RefsOptions creating the EdgeFormatter; the EdgeFormatter is not
    created in the refs function itself.
    
    chopped off parts:
    
     * RefsOptions stuff to refs/options.rs
     * EdgeFormatter and the string format to refs/format.rs
     * Unshared to refs/unshared.rs
     * HandledErr StreamResponse to refs/support.rs
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    d0e7101 View commit details
    Browse the repository at this point in the history
  27. refactor: minor cleanup and docs

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    f007130 View commit details
    Browse the repository at this point in the history
  28. fix: refs tests, enable unique test

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    e0b34a4 View commit details
    Browse the repository at this point in the history
  29. fix: use specific rust-ipld version with cbor fix

    the situation is not good, as it would make sense to re-export libipld
    from ipfs as parts are already re-exported but with strange names.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    19087b3 View commit details
    Browse the repository at this point in the history
  30. refactor: allow dead_code StringError::new

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    139fbe9 View commit details
    Browse the repository at this point in the history
  31. refactor: use the Edge for refs-local as well

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    e2522eb View commit details
    Browse the repository at this point in the history
  32. fix: refs_local test, move all tests under mod test

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    9bc4c1a View commit details
    Browse the repository at this point in the history
  33. chore: cargo fmt and reorder tests

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    bff3978 View commit details
    Browse the repository at this point in the history
  34. doc: replace fixme with confirmed

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    1700add View commit details
    Browse the repository at this point in the history
  35. add: port tests for ipfspath

    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    359088b View commit details
    Browse the repository at this point in the history
  36. fix: remove unwrap from refs-local

    kept the return value as a stream. it'll at least save us the trouble of
    concatenating all of the values into a big vector.
    Joonas Koivunen committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    e67f819 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. fix: unignore good_but_unsupported test

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    6783bbc View commit details
    Browse the repository at this point in the history
  2. add: test cases for slash dedup per discussion

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    30935ed View commit details
    Browse the repository at this point in the history
  3. add: walk dag-cbor tests for IpfsPath

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    0aff18a View commit details
    Browse the repository at this point in the history
  4. add: dag-pb path walking test

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    d6a122f View commit details
    Browse the repository at this point in the history
  5. add: tests for walking over a cbor link

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    8639a59 View commit details
    Browse the repository at this point in the history
  6. add: test case for dapb link listing

    Joonas Koivunen committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    d1da378 View commit details
    Browse the repository at this point in the history