Currently, selectors are updated and deleted solely based off their resourceGroupId. This functionality is not representative of the actual relationship between selectors and resource groups, which is many to one (there can be multiple selectors with the same resource group id). With this change, the current selector's json must also be specified in addition to the updated selector's json - if the current selector's json does not exist, a new selector is created.
Currently, selectors are updated and deleted solely based off their resourceGroupId. This functionality is not representative of the actual relationship between selectors and resource groups, which is many to one (there can be multiple selectors with the same resource group id). With this change, the current selector's json must also be specified in addition to the updated selector's json - if the current selector's json does not exist, a new selector is created.
Relevant PRs: https://github.com/lyft/presto-gateway/pull/114