[
https://issues.apache.org/jira/browse/UNOMI-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevan Jahanshahi resolved UNOMI-502.
------------------------------------
Resolution: Fixed
> Do not validate segment that are disabled
> -----------------------------------------
>
> Key: UNOMI-502
> URL: https://issues.apache.org/jira/browse/UNOMI-502
> Project: Apache Unomi
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0, 1.6.0
> Reporter: Kevan Jahanshahi
> Assignee: Kevan Jahanshahi
> Priority: Major
> Fix For: 2.0.0, 1.6.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently we have an issue with dependant segments due to the validation
> recently implemented for: https://issues.apache.org/jira/browse/UNOMI-419
> When a segment A is depending on a segment B.
> and you want to delete segment B.
> There is an internal logic that trigger the automatic update of the segment
> A, to remove the references of the deleted segment B.
> But in case segment A doesnt have any condition anymore at the end, due to
> segment B removed.
> Then the segment A become invalid and cannot be saved again, even if this one
> have been disabled.
> So I propose this PR: [https://github.com/apache/unomi/pull/330]
> to not validate Segments that are disabled. (new integration have been added
> to cover this case in the PR)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)