Git Product home page Git Product logo

halboy's People

Contributors

alexjg avatar bamdadd avatar danielzurawski avatar dominicfreeston avatar jimmythompson avatar tobyclemson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

halboy's Issues

Populate templated links directly using resource.

Since halboy is already capable of expanding templated URIs at navigation time, it would be really nice to be able to do the same at read time. For example:

;; { "_links": { "rel": { "href": "https://example.com{?template}", "templated": true } } }
(hal/get-href resource :rel {:template :params}) 
; => "https://example.com?template=params"

Unable to navigate based on links in embedded resource

I'd like to be able to fetch a resource containing embedded resources and navigate based on the links contained in the embedded resource:

{
  "_embedded": {
    "thing": {
      "_links": {
        ...
        "other": "https://example.com/other/thing"
      }
    }
  }
}
(let [discovery-result (navigator/discover address)
      thing-resource (hal/get-resource (navigator/resource discovery-result))
      other-result (navigator/get (navigator/from thing-resource))]
  (println (navigator/resource other-result)))

Not sure what the API for this should look like but it seems being able to continue navigating from an existing resource would be beneficial in other cases as well.

I hereby take issue with halboy.

Halboy has a compile dependency on expectations resulting in interference with clojure.test tests.

I'm not sure whether a typo or a requirement but the params.clj file requires expectations.

Unfortunately, expectations seems to hook into clojure.test resulting in a message being output after any such test files are evaluated.

Is it possible to remove the compile time dependency on expectations to avoid this?

Example output for eastwood and eftest runs is below:

> lein eastwood
== Eastwood 0.2.5 Clojure 1.9.0 JVM 1.8.0_152
Directories scanned for source files:
  dev src test/shared test/unit test/persistence test/component
...
== Linting ... ==
== Warnings: 1 (not including reflection warnings)  Exceptions thrown: 0

Ran 0 tests containing 0 assertions in 0 msecs
0 failures, 0 errors.
Subprocess failed
> lein with-profile component eftest :all

25/25   100% [==================================================]  ETA: 00:00

Ran 25 tests in 1.861 seconds
174 assertions, 0 failures, 0 errors.

Ran 0 tests containing 0 assertions in 0 msecs
0 failures, 0 errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.