Skip to content

Allow connectors to sync content into alias #2796

Merged
artem-shelkovnikov merged 13 commits intomainfrom
artem/add-alias-support
Sep 9, 2024
Merged

Allow connectors to sync content into alias #2796
artem-shelkovnikov merged 13 commits intomainfrom
artem/add-alias-support

Conversation

@artem-shelkovnikov
Copy link
Member

@artem-shelkovnikov artem-shelkovnikov commented Sep 3, 2024

Part of https://github.com/elastic/search-team/issues/8228

We need to make connectors work with aliases. This PR takes a step forward this without backwards compatibility problems.

What it does is: if you attach connector to an alias of an index, connector will be able to sync data through the alias.

For now it's not possible to do it in UI at all - it needs to be done via Dev Tools or CLI to make it function, so for end user nothing changes yet.

Checklists

Pre-Review Checklist

  • this PR does NOT contain credentials of any kind, such as API keys or username/passwords (double check config.yml.example)
  • this PR has a meaningful title
  • this PR links to all relevant github issues that it fixes or partially addresses
  • if there is no GH issue, please create it. Each PR should have a link to an issue
  • this PR has a thorough description
  • Covered the changes with automated tests
  • Tested the changes locally
  • Added a label for each target release version (example: v7.13.2, v7.14.0, v8.0.0)

@artem-shelkovnikov artem-shelkovnikov changed the title WIP Allow connectors to sync content into alias Sep 3, 2024
@artem-shelkovnikov artem-shelkovnikov marked this pull request as ready for review September 6, 2024 12:23
@artem-shelkovnikov artem-shelkovnikov requested a review from a team September 6, 2024 12:23
@artem-shelkovnikov artem-shelkovnikov enabled auto-merge (squash) September 6, 2024 12:27
Copy link
Contributor

@jedrazb jedrazb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. My main concern is that the fact we support both aliases and indexes is somewhat hidden in the fine print of our codebase.

Could we add explicit logs to indicate when we’re accessing an index via an alias and when we’re not? I’m just worried about a situation where the index-alias relationship gets messed up, and it’s hard to tell just by looking at the logs.

Should we log something in extract_index_or_alias that we detected alias relationship?

jedrazb
jedrazb previously approved these changes Sep 6, 2024
@artem-shelkovnikov artem-shelkovnikov merged commit 5b1239d into main Sep 9, 2024
@artem-shelkovnikov artem-shelkovnikov deleted the artem/add-alias-support branch September 9, 2024 08:56
@github-actions
Copy link

github-actions bot commented Sep 9, 2024

💔 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 2796 --autoMerge --autoMergeMethod squash

seanstory added a commit that referenced this pull request Sep 13, 2024
use same format as Agent

use dot instead of plus

make release pipeline update and commit and tag version

fix script path

Bumping version from 0.0.1 to 0.0.1+build202409091445

reset version

Add versionfile restoration to pipeline

Bumping version from 0.0.1 to 0.0.1+build202409091807

reset version

Ensure restore version script runs

Bumping version from 0.0.1 to 0.0.1+build202409091817

reset version

use the right restore script

Bumping version from 0.0.1 to 0.0.1+build202409091830

Restoring version from 0.0.1+build202409091830 to 0.0.1

add version math

Docker test should use docker tag version

Autoformat

Bumping version from 0.0.1 to 0.0.0+build202409091853

make sure we're setting the version

Restoring version from 0.0.0+build202409091853 to 0.0.1

checkout the branch before making changes

Bumping version from 0.0.1 to 0.0.0+build202409091914

Restoring version from 0.0.-1+build202409091914 to 0.0.1

Calculate release version from orig version

Bumping version from 0.0.1 to 0.0.0+build202409091932

Restoring version from 0.0.0+build202409091932 to 0.0.1

escape pluses

Bumping version from 0.0.1 to 0.0.0+build202409092020

Restoring version from 0.0.0+build202409092020 to 0.0.1

Restore gates for maintenance branch releasing

Update docs for manual releasing

Allow connectors to sync content into alias  (#2796)

Config option to disable connector secrets for native connectors (#2808)

Co-authored-by: Artem Shelkovnikov <artem.shelkovnikov@elastic.co>

Update docker.elastic.co/wolfi/python:3.11-dev Docker digest to 088b946 (#2805)

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>

Return back connectors/sources/__init__.py (#2810)

Add missing __init__.py files (#2811)

Get 8.x branch set up (#2813)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants