Migrates a lot of the selector functionality from enterprise into sensu-go.
Integrate selectors into sensu-go api router.
Moves enterprise code into OSS, removing the ListFunc and graphql.GlobalFilters enterprise overrides that no longer make sense to develop apart from selectors in OSS.
Deprecates the global selector context key. Replace github.com/sensu/sensu-go/backend/selector Context Key and methods with domain specific keys. e.g. apid request, event store.
Why is this change necessary?
Developing the selectors feature across two codebases results in undue overhead.
The context utility in the selectors package is limited to a single global selector per context. This was passible when selector usage was sparse (in graphql and apid handlers and the event store), but now with interest in expanding selector functionality into more store implementations a single context key doesn't work.
What is this change?
Migrates a lot of the selector functionality from enterprise into sensu-go.
Why is this change necessary?
Developing the selectors feature across two codebases results in undue overhead.
The context utility in the selectors package is limited to a single global selector per context. This was passible when selector usage was sparse (in graphql and apid handlers and the event store), but now with interest in expanding selector functionality into more store implementations a single context key doesn't work.