elastic / connectors-ruby

Official Connector Clients for Elastic Elasticsearch, Enterprise Search, App Search and Workplace Search
https://www.elastic.co/guide/en/enterprise-search/master/index.html
Other
9 stars 17 forks source link

Implement nested features #530

Closed artem-shelkovnikov closed 1 year ago

artem-shelkovnikov commented 1 year ago

Closes https://github.com/elastic/enterprise-search-team/issues/3653

This PR implements new connector features structure:

{
"features": {
  "sync_rules": {
    "basic" : { "enabled" : true },
    "advanced": {"enabled":true }
  }
}

While this structure is also implemented and used, old structure is still maintained and used for backwards compatibility.

Checklists

Pre-Review Checklist

For Elastic Internal Use Only

seanstory commented 1 year ago

Also needs to update the CONNECTOR_PROTOCOL.md file with this new structure

artem-shelkovnikov commented 1 year ago

Good point @seanstory, updated!

I'm not sure about naming though - I've called nested keys "feature"."subfeature", but is this naming actually correct? cc @timgrein @sphilipse

seanstory commented 1 year ago

I think that works just fine. We can update it later if there's confusion.

github-actions[bot] commented 1 year ago

💔 Failed to create backport PR(s)

The backport operation could not be completed due to the following error: There are no branches to backport to. Aborting.

The backport PRs will be merged automatically after passing CI.

To backport manually run: backport --pr 530 --autoMerge --autoMergeMethod squash