This is a fix for situations where large number of existing goals caused the suggestions query run over the limit of parameters in the CH query. As, worst case, this will cause suggesting goal which is already added (which is later validated anyway), it's safe to trim the list of exclusions.
The fix is not ideal but will address the immediate problem of goal settings failing to load for sites with large number of goals defined.
Changes
This is a fix for situations where large number of existing goals caused the suggestions query run over the limit of parameters in the CH query. As, worst case, this will cause suggesting goal which is already added (which is later validated anyway), it's safe to trim the list of exclusions.
The fix is not ideal but will address the immediate problem of goal settings failing to load for sites with large number of goals defined.