Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-829

Suppress "Table audit_... NOT FOUND" in loadDbSchema()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • 32.2.0
    • 32.2.1, 33.0.0
    • None
    • CP: sprint 112
    • 1
    • Core: Platform

    Description

      CQL2PgJSON warns:

      ERROR: loadDbSchema loadDbSchema(): Table audit_loan NOT FOUND 

      when CQL uses an audit table:

      https://github.com/folio-org/raml-module-builder/blob/v32.2.0/cql2pgjson/src/main/java/org/folio/cql2pgjson/CQL2PgJSON.java#L199

      Fix:

      Suppress the warning if schema.json has a table that has an "auditingTableName" entry for that table. Example:

      https://github.com/folio-org/mod-circulation-storage/blob/v12.2.0/src/main/resources/templates/db_scripts/schema.json#L8

      "tableName": "loan",
      "auditingTableName": "audit_loan"

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases