Skip to content

Do not allow project_routing as a query param#139206

Merged
pawankartik-elastic merged 8 commits intoelastic:mainfrom
pawankartik-elastic:pkar/rm-query-param-project-routing
Dec 11, 2025
Merged

Do not allow project_routing as a query param#139206
pawankartik-elastic merged 8 commits intoelastic:mainfrom
pawankartik-elastic:pkar/rm-query-param-project-routing

Conversation

@pawankartik-elastic
Copy link
Contributor

@pawankartik-elastic pawankartik-elastic commented Dec 8, 2025

ES-13725: We previously had plans to allow project_routing as a query param and also in the request body. However, after the recent discussions with Kibana and the clients team, we will now restrict it to the request body.

Note:

  1. This limitation does not apply to _msearch and _msearch/template endpoints.
  2. _resolve/index does not have a POST route. For that reason, I'm leaving it untouched. We either make a similar exception for it, or, add a new Route.
    • Update: I've added a new Route.

@elasticsearchmachine elasticsearchmachine added v9.3.0 serverless-linked Added by automation, don't add manually labels Dec 8, 2025
@pawankartik-elastic pawankartik-elastic added >refactoring Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS labels Dec 9, 2025
@pawankartik-elastic pawankartik-elastic marked this pull request as ready for review December 9, 2025 16:43
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Contributor

@quux00 quux00 left a comment

Choose a reason for hiding this comment

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

LGTM.

Don't forget that we also need to update the specs in elasticsearch-specification as a follow-on PR.

@pawankartik-elastic pawankartik-elastic merged commit c08cd83 into elastic:main Dec 11, 2025
34 checks passed
@pawankartik-elastic pawankartik-elastic deleted the pkar/rm-query-param-project-routing branch December 11, 2025 14:44
szybia added a commit to szybia/elasticsearch that referenced this pull request Dec 11, 2025
* upstream/main: (79 commits)
  Mute org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT test {p0=search/140_pre_filter_search_shards/prefilter on non-indexed date fields} elastic#139381
  Adjust error bounds for bfloat16 value checks (elastic#139371)
  Unmute some vector CSS tests (elastic#139370)
  Do not allow `project_routing` as a query param (elastic#139206)
  Unmute HalfFloat...Tests#testSynthesizeArrayRandom (elastic#139341)
  Remove leniency in LinkedProjectConfig builder methods (elastic#139012)
  EQL: fix project_routing (elastic#139366)
  Add patch version for 9.2 index version constant (elastic#139362)
  Mute org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT test {p0=search.vectors/200_dense_vector_docvalue_fields/dense_vector docvalues with bfloat16} elastic#139368
  ES|QL: Enable CCS tests for FORK (elastic#139302)
  Restructuring the semantic_text field type page  (elastic#138571)
  AggregateMetricDouble fields should not build BKD indexes (elastic#138724)
  Feature/count by trunc with filter (elastic#138765)
  ESQL: Convert TS 500 error to 400 (elastic#139360)
  [CI] Rerun failing tests for periodic build pipelines (elastic#139200)
  revert muting saml test (elastic#139327)
  Add TDigest histogram as metric (elastic#139247)
  Links solved bugs to class cast exception changelog and unmutes errors (elastic#139340)
  Ensure integer sorts are rewritten to long sorts for BWC indexes (elastic#139293)
  Integrate stored fields format bloom filter with synthetic _id (elastic#138515)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search Foundations/CCS serverless-linked Added by automation, don't add manually Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants