Fork me on GitHub
#datomic
<
2021-05-26
>
Jiezhen Yi00:05:14

Hi, I am trying to add schema/deprecated to my schema definition following this instruction here https://blog.datomic.com/2017/01/the-ten-rules-of-schema-growth.html . Something like

{:db/ident :some/identifier,
  :db/valueType :db.type/boolean,
  :db/cardinality :db.cardinality/one,
  :db/doc "Some doc",
  :schema/deprecated true}
But got the following
Exception in thread "main" clojure.lang.ExceptionInfo: Unable to resolve entity: :schema/deprecated {:cognitect.anomalies/category :cognitect.anomalies/incorrect, :cognitect.anomalies/message "Unable to resolve entity: :schema/deprecated", :entity :schema/deprecated, :db/error :db.error/not-an-entity, :dbs [{:database-id "datomic:", :t 7388, :next-t 7390, :history false}]}
Am I doing something wrong? Thanks!

futuro01:05:02

It looks like you need to define the schema/deprecated attribute. Once there’s a schema for it in the db you should be able to use it when defining/adding attributes to existing schema entities.

👍 3
Drew Verlee21:05:24

If anyone has a suggestion on my current datomic cloud issue i would love to hear it. I'm currently just googling around the issue waiting for inspiration to strike. https://forum.datomic.com/t/how-to-troubleshoot-that-my-local-web-handler-correctly-returns-the-payload-status-body-etc-but-deployed-api-gateway-warpped-function-doesnt/1844/2

futuro21:05:39

I dropped some debugging tips in that thread, I hope they help!

Drew Verlee21:05:08

thanks. ill give it a try. I need to even take minute and understand how to setup and read the logs...

futuro21:05:15

Best of luck!

kenny23:05:47

I see there's a new version of client-cloud (0.8.113) on Maven. In general, we should not update to versions not posted on the https://docs.datomic.com/cloud/releases.html#current page, correct?

Alex Miller (Clojure team)23:05:56

Do you feel .... lucky?

kenny00:05:35

Not too shabby of a Wednesday.

kenny00:05:55

In all seriousness though, I think the typical release flow for libraries is to only release releases to the release repository. Anything else goes to the snapshot repo.

Alex Miller (Clojure team)00:05:26

In general, I think it’s best to wait for an announcement that may cover anything to be aware of.