Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 #30262

Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 2, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/elastic/go-elasticsearch/v7 v7.17.10 -> v8.13.1 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

⚠️ MAJOR VERSION UPDATE ⚠️ - please manually update this package


Release Notes

elastic/go-elasticsearch (github.com/elastic/go-elasticsearch/v7)

v8.13.1: 8.13.1

Compare Source

Typed API

Update APIs to latest elasticsearch-specification 8.13

Fixes

This patch release brings a fix to the initialisation of the Request in endpoints which would prevent using the shortcuts for fields.
Canonical.Request() method was unaffected.

  • Autoscaling.PutAutoscalingPolicy
  • Indices.Downsample
  • Indices.PutSettings
  • Indices.SimulateTemplate
  • Inference.PutModel
  • Logstash.PutPipeline
  • Ml.ValidateDetector
  • SearchApplication.Put

v8.13.0: 8.13.0

Compare Source

API

New APIS:

  • ConnectorSecretGet

  • ConnectorSecretPost

  • ConnectorSecretPut

  • ConnectorSecretDelete

  • ConnectorUpdateIndexName

  • ConnectorUpdateNative

  • ConnectorUpdateStatus

  • ConnectorUpdateAPIKeyDocumentID

  • ConnectorUpdateServiceDocumentType

  • EsqlAsyncQuery Documentation

  • EsqlAsyncQueryGet Documentation

  • ProfilingFlamegraph Documentation

  • ProfilingStacktraces Documentation

  • TextStructureTestGrokPattern Documentation

  • Indices.ResolveCluster Documentation

  • Security.QueryUser Documentation

Typed API

Thanks to @​pakio, transport now has an optional pool based compression option. https://github.com/elastic/elastic-transport-go/pull/19
And to @​tblyler for fixing a very subtle memory leak in the BulkIndexer. #​797

v8.12.1: 8.12.1

Compare Source

  • Fix: ticker memory leak in bulk indexer due to internal flush call resetting the ticker. #​797
  • Fix: Scroll now uses the body to pass the scroll_id. #​785
  • Add: generated UnmarshalJSON for Requests to allow injecting payloads using aliases.

Many thanks to @​tblyler, @​frkntplglu and @​HaraldNordgren for their contribution!

v8.12.0: 8.12.0

Compare Source

Client

Golang version

The client now requires Golang version 1.20

OpenTelemetry

The client now provides OpenTelemetry integration. This integration can be enabled in the config using the elasticsearch.NewOpenTelemetryInstrumentation.
Once set up, the provided context will be used to record spans with useful information about the request being made to the server.

More about what you can expect in the Semantic Conventions for Elasticsearch.

BulkIndexer

if_seq_no & if_primary_term are now supported thanks to @​benjyiw #​783

API

  • SimulateIngest
  • ConnectorCheckIn
  • ConnectorDelete
  • ConnectorGet
  • ConnectorLastSync
  • ConnectorList
  • ConnectorPost
  • ConnectorPut
  • ConnectorSyncJobCancel
  • ConnectorSyncJobCheckIn
  • ConnectorSyncJobDelete
  • ConnectorSyncJobError
  • ConnectorSyncJobGet
  • ConnectorSyncJobList
  • ConnectorSyncJobPost
  • ConnectorSyncJobUpdateStats
  • ConnectorUpdateConfiguration
  • ConnectorUpdateError
  • ConnectorUpdateFiltering
  • ConnectorUpdateName
  • ConnectorUpdatePipeline
  • ConnectorUpdateScheduling

Typed API

v8.11.1: 8.11.1

Compare Source

Typed API

v8.11.0: 8.11.0

Compare Source

API

Experimental APIs

Typed API

  • Mandatory URL parameters are not exposed as functions anymore as they already exist in the constructor.

New Compatibility Policy

Starting from version 8.12.0, this library follow the Go language policy. Each major Go release is supported until there are two newer major releases. For example, Go 1.5 was supported until the Go 1.7 release, and Go 1.6 was supported until the Go 1.8 release.

If you have any questions or concerns, please do not hesitate to reach out to us.

v8.10.1: 8.10.1

Compare Source

Typed API

Update APIs to latest elasticsearch-specification 8.10

v8.10.0: 8.10.0

Compare Source

API

Experimental APIs for internal use

  • FleetDeleteSecret
  • FleetGetSecret
  • FleetPostSecret

Exprimental APIs

QueryRulesetList

Stable APIs

Security.GetSettings
Security.UpdateSettings

Typed API

Exprimental APIs

QueryRuleset.List

Technical Preview

Beta

v8.9.0: 8.9.0

Compare Source

API

New API

Experimental APIs

Typed API

  • Propagated request fields towards the endpoint for ease of access, taking priority over same-name query string fields.
  • Added a stub for Do methods on endpoints that only support a boolean response such as core.exists.
  • NDJSON endpoints support with custom serialization like core.bulk.
  • Link to endpoints documentation in API index to better display and ease of use.

fixes

  • Fixed a deserialization issue for Property & Analyzer #​696

v8.8.2: 8.8.2

Compare Source

Typed API

  • Fixed deserialization for Suggest in search responses.
  • Fixed double-quoted strings in deserialization for unions normalized as string. #​684
  • Fixed handling of core.Get response when the index did not exist. #​678

v8.8.1

Compare Source

v8.8.0: 8.8.0

Compare Source

API

New APIs

Experimental APIs

v8.7.1: 8.7.1

Compare Source

Typed API
  • This release include fixes for responses deserialization. #​654 #​655

v8.7.0: 8.7.0

Compare Source

API

  • ML.DeleteJob: Added WithDeleteUserAnnotations. Should annotations added by the user be deleted.
  • ML.ResetJob: Added WithDeleteUserAnnotations. Should annotations added by the user be deleted.
  • ML.StartTrainedModelDeployment: Added WithPriority. The deployment priority.
  • TransformGetTransformStats: Added WithTimeout. Controls the time to wait for the stats.
  • TransformStartTransform: Added WithFrom. Restricts the set of transformed entities to those changed after this time.

New APIs

TransformScheduleNowTransform documentation.
HealthReport documentation.

Typed API

  • Inclusion of responses structures.

Changes

  • Do method on endpoints now return a typed response, one per endpoint.
  • Perform method added on endpoints, returns http.Response as did Do.
  • Elasticsearch exceptions are now handled as types.ElasticsearchError with .As and .Is methods.
  • .Raw now takes a reader as input.
  • User defined values such as _source in Hits are now json.RawMessage to highlight they later deserializable nature.

AdditionalProperties, like the ones found in multi-bucket aggregations, are not yet supported.

v8.6.0: 8.6.0

Compare Source

API

  • ML.StartTrainedModelDeployment: Added WithPriority

New APIs

  • ML.UpdateTrainedModelDeployment: Updates certain properties of trained model deployment.

Client

BulkIndexer

Improvements were made to the BulkIndexer memory usage to allow better handling under burst use cases. Thanks to @​christos68k and @​rockdaboot !

v8.5.0: 8.5.0

Compare Source

API

  • ML.StartTrainedModelDeployment: Description of NumberOfAllocations has been changed in "The total number of allocations this model is assigned across machine learning nodes".
  • Security.GetAPIKey: Added WithLimitedBy boolean parameter. Flag to show the limited-by role descriptors of API Keys.
  • Security.GetUser: Added WithProfileUID boolean parameter. Flag to retrieve profile uid (if exists) associated to the user.
  • Security.GetUserProfile: Changed the description of uid parameter, a comma-separated list of unique identifier for user profiles.
  • Security.QueryAPIKeys: Added WithLimitedBy boolean parameter. Flag to show the limited-by role descriptors of API Keys.
  • TextStructureFindStructure: Added EcsCompatibility string parameter. Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'.

Promoted to stable

  • ML.InferTrainedModel
  • ML.PutTrainedModelDefinitionPart
  • ML.PutTrainedModelVocabulary
  • ML.StartTrainedModelDeployment
  • ML.StopTrainedModelDeployment
  • Security.activateUserProfile
  • Security.DisableUserProfile
  • Security.EnableUserProfile
  • Security.GetUserProfile
  • Security.HasPrivilegesUserProfile
  • Security.SuggestUserProfiles
  • Security.UpdateUserProfileData

New APIs

Typed API

Following multiple feedbacks we decided to remove the builder API for the type tree.

In its place, work has started to further simplify the type tree by removing redundant type aliases. The API also now comes with a helper package named some that allows to call for inline pointers on primitive types.

In addition, a bug was fixed preventing the use of wildcards in index names, and enums are now extensible by default.

The Typed API remains in alpha stage while its development continues.

v8.4.0: 8.4.0

Compare Source

API

  • get, mget and search added force_synthetic_source: Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.
  • ML.StartTrainedModelDeployment added cache_size: A byte-size value for configuring the inference cache size. For example, 20mb.
  • Snapshot.Get added sort, size, order, from_sort_value, after, offset and slm_policy_filter. More on these in the documentation.

New API

Typed API

As highlighted in the release not for the 8.4.0-alpha.1, this release marks the beginning of the newly arrived TypedClient.

This new API is still in alpha stage and will be release alongside the existing esapi.

A few examples of standard use-cases can be found in the TypedAPI section of the documentation.

v8.3.0: 8.3.0

Compare Source

API

  • ML.InferTrainedModelDeployment renamed to InferTrainedModel
  • ML.PreviewDatafeed has two new parameters, start and end. Documentation
  • ML.StartTrainedModelDeployment has three new parameters, number_of_allocations, threads_per_allocation and queue_capacity. Documentation
  • Cluster.DeleteVotingConfigExclusions has a new master_timeout parameter.
  • Cluster.PostVotingConfigExclusions has a new master_timeout parameter.
  • Snapshot.Get has a new index_names parameters (boolean). Whether to include the name of each index in the snapshot. Defaults to true.

New APIs

  • Security.HasPrivilegesUserProfile (Experimental API) Documentation

v8.2.0: 8.2.0

Compare Source

Client

  • Fixed a serialisation error for retry_on_conflict in the BulkIndexer. Thanks to @​lpflpf for the help!
  • Fixed a concurrent map error in the BulkIndexer when custom headers are applied. Thanks to @​chzhuo for the contribution!

API

New APIs

v8.1.0: 8.1.0

Compare Source

API

  • API is generated from the Elasticsearch 8.1.0 specification.

New parameters

  • WithWaitForCompletion for Indices.Forcemerge
  • WithFeatures for Indices.Get
  • WithForce for ML.DeleteTrainedModel

New APIs

  • OidcAuthenticate, OidcLogout and OidcPrepareAuthentication see documentation
  • TransformResetTransform

v8.0.0: 8.0.0

Compare Source

Client

  • The client now uses elastic-transport-go dependency which lives in its own repository.
  • With the knewly extracted transport, the retryOnTimeout has been replaced with a retryOnError callback. This allows to select more finely which error should be retried by the client.
  • BulkIndexerItem Body field is now an io.ReadSeeker allowing reread without increasing memory consumption.
  • BulkIndexerItem know correctly uses the routing property instead of the deprecated _routing.

API

  • API is generated from the Elasticsearch 8.0.0 specification.

Configuration

📅 Schedule: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team January 2, 2024 20:01
@renovate renovate bot added dependencies Pull requests that update a dependency file renovatebot labels Jan 2, 2024
@renovate renovate bot requested a review from dashpole January 2, 2024 20:01
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

Looks like make gotidy reverts the change

@mx-psi mx-psi added dependency issue dependency-major-update Indicates a dependency major version bump labels Jan 16, 2024
Copy link
Contributor

github-actions bot commented Feb 7, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 7, 2024
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from ab09f82 to 2cb3893 Compare February 15, 2024 17:50
@github-actions github-actions bot removed the Stale label Feb 16, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Feb 19, 2024
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from 2cb3893 to 7747d10 Compare February 22, 2024 15:56
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Feb 23, 2024
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from 7747d10 to f08901d Compare February 25, 2024 11:33
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Feb 28, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Feb 29, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 1, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 1, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 4, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 11, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 25, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 26, 2024
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from f08901d to d537519 Compare March 27, 2024 15:36
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 28, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Mar 28, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 4, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from d537519 to 87e24e6 Compare April 11, 2024 15:31
@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from 87e24e6 to bef6cd4 Compare April 14, 2024 09:40
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 15, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 17, 2024
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Pinging code owners @JaredTan95 @ycombinator

@JaredTan95
Copy link
Member

I think there may be issues with directly upgrading dependencies. Currently #32454 is tracking this upgrade issue, so it can be closed

@renovate renovate bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch from bef6cd4 to db36291 Compare April 21, 2024 11:33
@renovate renovate bot changed the title fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 22, 2024
@renovate renovate bot changed the title Update module github.com/elastic/go-elasticsearch/v7 to v8 fix(deps): update module github.com/elastic/go-elasticsearch/v7 to v8 Apr 23, 2024
@codeboten
Copy link
Contributor

I think there may be issues with directly upgrading dependencies. Currently #32454 is tracking this upgrade issue, so it can be closed

Closing as per @JaredTan95's comment, thanks!

@codeboten codeboten closed this Apr 25, 2024
Copy link
Contributor Author

renovate bot commented Apr 25, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 8.x releases. But if you manually upgrade to 8.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/github.com-elastic-go-elasticsearch-v7-8.x branch April 25, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file dependency issue dependency-major-update Indicates a dependency major version bump exporter/elasticsearch waiting-for-code-owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants