Serge Huber created UNOMI-1065:
----------------------------------

             Summary: Handle scoring definitions with no elements when loading 
dependent metadata
                 Key: UNOMI-1065
                 URL: https://issues.apache.org/jira/browse/UNOMI-1065
             Project: Apache Unomi
          Issue Type: Improvement
    Affects Versions: unomi-4.0.0, unomi-3.0.1, unomi-2.7.0
            Reporter: Serge Huber
             Fix For: unomi-4.1.0


h3. Summary

Some scoring definitions can exist with an empty element list, for example when 
they are created through the form-style create API. When Unomi loads dependent 
metadata for a scoring, it currently expects every scoring in the tenant to 
have at least one element. The goal of this ticket is to treat a scoring with 
no elements as having no conditions to check, so the dependent-metadata call 
completes normally for every scoring definition.

h3. How to test

Create a scoring with the form-style create API, then request dependent 
metadata for any scoring id in the same tenant. The call should return HTTP 200 
with empty dependency lists when nothing depends on that scoring. Run all the 
tests.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to