Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2242

Replace moustache with compojure or comidi entirely

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      3
    • Sprint:
      PuppetDB 2015-12-30, PuppetDB 2016-01-13, PuppetDB 2016-01-27

      Description

      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.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ken Ken Barber
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: