Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3294

DB resolution fails on an empty dataset with required template mapping.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Frankfurt Release
    • Istanbul Release
    • cds

    Description

      It is a perfectly valid case to have no data as the output of database resource resolution.

      It seems the reasoning for CDS was that if the required flag is set and no value returned by the query, then it's a failure.

      The alternative is to define "required" : false in the template mapping, but that is erroneous as the overall resource-resolution would not fail (if there's a database error for that step). 

      So it feels more correct to allow emptyset with required being true rather than not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pau2882 Prudence Au
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: