[PDB-2242] Replace moustache with compojure or comidi entirely Created: 2015/12/07  Updated: 2016/03/17  Resolved: 2016/01/15

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: None
Fix Version/s: PDB 4.0.0

Type: Improvement Priority: Normal
Reporter: Ken Barber Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
blocks PDB-2334 Convert remaining compojure usage to ... Closed
Story Points: 3
Sprint: PuppetDB 2015-12-30, PuppetDB 2016-01-13, PuppetDB 2016-01-27


We have started to roll out compojure, but the query endpoints are still heavily moustache based, and some parts of the metrics library or moustache based. This ticket's goal is to provide a refactor that replaces the cases of moustache with a common library.

Right now we have:

  • compojure - used in some of our endpoints already, well understood by most of the team.
  • comidi - something used by the metrics services here: https://github.com/puppetlabs/trapperkeeper-metrics ... which will help us towards going more towards shared code for this problem.

We want to determine which one we want going forward, and refactor our code in that direction.

In the future, I just wanted to state that we may desire to have the query service routes composable from relationship data from the query engine, since this is already kept - so we can auto-generate routes and child routes etc. This is a long way off, but something to ponder for a v5.

Generated at Mon Sep 23 08:23:23 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.