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

Add validation to the query engine

    Details

    • Type: New Feature
    • Status: Ready for Engineering
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Story Points:
      3

      Description

      Currently we only validate a few possible problems related to the syntax of a user's query. We check that "=" has three arguments, but we don't do the same for regex. We don't check that the type of the column matches the query value it should match. What is in the query engine now is what was needed to match the existing validations, which were different for each endpoint.

      This ticket covers thorough validation of all query engine queries. It should:

      • Validate our join syntax sugar
      • Check db data types with query arguments
      • Check the number of arguments for all operators
      • Ensure the query fields map to real columns (this exists already)

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ryan.senior Ryan Senior
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: