Fork me on GitHub
#datomic
<
2019-04-15
>
dmarjenburgh13:04:49

I'm trying to push an unreproducible deployment using clj on-windows. I'm getting the following error:

{:command-failed "{:op :push :uname daniel-test}",
 :causes
 ({:message "Data did not conform",
   :class ExceptionInfo,
   :data
   #:clojure.spec.alpha{:problems
                        ({:path [:local :home],
                          :pred clojure.core/string?,
                          :val nil,
                          :via
                          [:cognitect.s3-libs.specs/local
                           :cognitect.s3-libs.specs/home],
                          :in [:local :home]}),
                        :spec
                        #object[clojure.spec.alpha$map_spec_impl$reify__1997 0x52f8a6f4 "[email protected]"],
                        :value
                        {:description
                         "Unreproducible deployment (no git commit)",
                         :query-group nil,
                         :app-name "my-app",
                         :op :push,
                         :uname daniel-test,
                         :allow
                         [my-app.main/hello-world-handler],
                         :lambdas
                         {:hello
                          {:fn
                           my-app.main/hello-world-handler,
                           :description "Simple hello world endpoint",
                           :integration :api-gateway/proxy}},
                         :datomic.ion.dev.config/resource
                         "datomic/ion-config.edn",
                         :local {:home nil},
                         :bucket
                         "datomic-code-154b2dce-48b5-44da-989b-c6ecdebd8183"}}})}
It fails on :local {:home nil} which is not set by me.

Joe Lane15:04:52

Try it without a hyphen

Joe Lane15:04:12

make it danieltest and see if that fixes the issue.

shaun-mahood16:04:26

Is there a way to get :db/tx (or :db/txInstant) from the pull API?

ghadi17:04:32

transactions are entities, you can pull them @shaun-mahood

ghadi17:04:49

I'm guessing you mean pull through a non transaction entity to a transaction entity?

shaun-mahood17:04:27

@ghadi - Yeah, that's what I was trying - I have a nested list near the bottom of my pull, and I want to get the transaction for those entities.

ghadi17:04:10

i don't think that is possible

shaun-mahood17:04:21

Ok, that's kind of what I figured. Thanks!

favila19:04:37

Part of the problem here is entities don't have transactions, only assertions/retractions do (entity + attribute + value combo)

favila19:04:47

pull api doesn't operate at that granularity

shaun-mahood21:04:53

Oh, interesting - I didn’t realize there was a distinction there.