Looking for a sourceItemId delivers wrong result
On stage there is strange behaviour when calling /api/sources/4/items/SSK_sc_DTABf
. It should return no item as we don't have an active, approved item from source 4 (= SSK scenarios) with the sourceItemId "SSK_sc_DTABf". Instead the call /api/sources/4/items/SSK_sc_DTABf
returns as item XQspOg
which has as sourceItemId SSK_sc_statisticalAnalysisOccupations
(look at the call /api/workflows/XQspOg
). Looking into the database the workflow with the persistent_id XQspOg
had once the sourceItemId SSK_sc_DTABf
(which is now status DEPRECATED) but then switched to SSK_sc_statisticalAnalysisOccupations
. So it looks like that the call /api/sources/4/items/SSK_sc_DTABf
does not find at first an active item and instead takes a deprecated one - could that be?
Including @sotiris.karampatakis and @lbarbot into the issue