Modify scheduling structure of Connector index (#158640)

# Part of https://github.com/elastic/enterprise-search-team/issues/4628

## Summary

This PR modifies the structure of `scheduling` in index
`.elastic-connectors`.


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
Chenhui Wang 2023-06-01 18:37:39 +08:00 committed by GitHub
parent e4be759437
commit 35dae4c970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 4 deletions

View file

@ -165,8 +165,24 @@ describe('Setup Indices', () => {
},
scheduling: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
access_control: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
incremental: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
full: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
},
},
service_type: { type: 'keyword' },

View file

@ -154,8 +154,24 @@ const connectorMappingsProperties: Record<string, MappingProperty> = {
},
scheduling: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
access_control: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
incremental: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
full: {
properties: {
enabled: { type: 'boolean' },
interval: { type: 'text' },
},
},
},
},
service_type: { type: 'keyword' },