Add v7 restCompat for invalidating API key with the id field#78664
Add v7 restCompat for invalidating API key with the id field#78664ywangd merged 5 commits intoelastic:masterfrom
Conversation
This PR restore the id field for InvaliateApiKey API so it can be used if the request explicitly requires v7 compatibility. Relates: elastic#66671
|
Pinging @elastic/es-security (Team:Security) |
|
The 7.x branch currently does not have any YAML tests to excercise the deprecated |
|
@elasticmachine run elasticsearch-ci/rest-compatibility |
|
@elasticmachine update branch |
Temporarily mute till #78664 gets merged.
|
|
||
| private ConstructingObjectParser<InvalidateApiKeyRequest, Void> getObjectParser(RestRequest request) { | ||
| if (request.getRestApiVersion() == RestApiVersion.V_7) { | ||
| final ConstructingObjectParser<InvalidateApiKeyRequest, Void> objectParser = new ConstructingObjectParser<>( |
There was a problem hiding this comment.
Is there a reason this isn't a static final field like the non-compat parser?
I'm not particularly fussed either way, it just surprised me.
There was a problem hiding this comment.
My thinking is to minimize the overhead of restCompat to normal v8 usage (at the same time accept a bit more overhead for restCompat). So this v7 parser does not have to exist if client never uses v7 rest compat. It's probably a marginal saving. But recent focus on performance issue led me to this.
* upstream/master: (250 commits) [Transform] HLRC cleanups (elastic#78909) [ML] Make ML indices hidden when the node becomes master (elastic#77416) Introduce a Few Settings Singleton Instances (elastic#78897) Simplify TestCluster extraJar configuration (elastic#78837) Add @OverRide annotations to methods in EnrichPlugin class (elastic#76873) Add v7 restCompat for invalidating API key with the id field (elastic#78664) EQL: Refine repeatable queries (elastic#78895) Fix DataTierTests package and add a validation test (elastic#78880) Fix split package org.elasticsearch.common.xcontent (elastic#78831) Store DataTier Preference directly on IndexMetadata (elastic#78668) [DOCS] Fixes typo in calendar API example (elastic#78867) Improve Node Shutdown Observability (elastic#78727) Convert encrypted snapshot license object to LicensedFeature (elastic#78731) Revert "Make nodePaths() singular (elastic#72514)" (elastic#78801) Fix incorrect generic type in PolicyStepsRegistry (elastic#78628) [DOCS] Fixes ML get calendars API (elastic#78808) Implement GET API for System Feature Upgrades (elastic#78642) [TEST] More MetadataStateFormat tests (elastic#78577) Add support for rest compatibility headers to the HLRC (elastic#78490) Un-ignoring tests after backporting fix (elastic#78830) ... # Conflicts: # server/src/main/java/org/elasticsearch/ingest/IngestService.java # server/src/test/java/org/elasticsearch/ingest/IngestServiceTests.java
RestCompat for invalidate API key with a single id is merged. The test can now be enabled. Relates: elastic#78664
RestCompat for invalidate API key with a single id is merged. The test can now be enabled. Relates: #78664
) RestCompat for invalidate API key with a single id is merged. The test can now be enabled. Relates: elastic#78664
This PR restore the id field for InvaliateApiKey API so it can be used
if the request explicitly requires v7 compatibility.
Relates: #66671