[
https://issues.apache.org/jira/browse/UNOMI-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Serge Huber updated UNOMI-1065:
-------------------------------
Fix Version/s: unomi-4.0.0
(was: unomi-4.1.0)
> 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-2.7.0, unomi-4.0.0, unomi-3.0.1
> Reporter: Serge Huber
> Priority: Major
> Fix For: unomi-4.0.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)