pariyatti / kosa

Digital library service
GNU Affero General Public License v3.0
8 stars 3 forks source link

Clojure + Crux #11

Open deobald opened 3 years ago

deobald commented 3 years ago

infra

database

  1. [x] Upgrade to 1.12: It's the new hotness.
  2. [x] One-to-Many:
    • [x] 1-N relationships for pali word & translations -- vector internal to the pali word doc
    • [x] stacked inspiration -- (N-1) -- image
  3. [x] Schema: crux-schema or spec for tabular entities for mobile app front-end API data
    • [x] inserting (try it out for the "New Pali Word Card" screen): Manual validation works fine
    • [x] schema / data migration
  4. [x] Model Time: 3rd tier time model for ancient publication dates? (parallel to valid-time)
  5. [x] Chained Relations: What do the queries look like over A->B->C->D ?
  6. [x] Reify Relationship: graph-shaped documents with named (doc) relationships?
    • [x] Answer: mostly no. Just use "vertex duck-typing" by creating meaningful ids on each entity.
  7. [x] File Uploads:
    • [x] what do db fields look like?
    • [x] what happens when we switch disk storage? (local disk / S3 / cloudflare / etc)

code (non-database)

  1. [x] Javascript:
    • [x] install clr-icons from npm during deployment rather than vendoring otherwise we get source map errors
    • [x] ClojureScript or vanilla JS?
  2. [x] File Uploads:

rails parity

  1. [x] how hard is it to migrate Rails ERB templates? -- not too bad. use html2hiccup
  2. [x] dev vs. test environments? -- method mostly borrowed from nilenso approach (/config/config.test.edn etc)
  3. [x] replace all html, css, controller behaviour, model behaviour -- chore for @deobald

fun stuff

From ikitommi in #reitit clojurians slack:

the conflict resolver could be smarter and know that
[["/kikka/kikka"]
 ["/kikka/:id"]]
actually is not conflicting as the fixed term(s) comes first. PR welcome :)