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

Java client issues batch 2 #2440

Merged
merged 10 commits into from
Mar 6, 2024
Merged

Java client issues batch 2 #2440

merged 10 commits into from
Mar 6, 2024

Conversation

l-trotta
Copy link
Contributor

@l-trotta l-trotta commented Mar 6, 2024

Fixes provided in this PR:

@l-trotta l-trotta added lang:java Affects/found in the Java client backport 7.17 backport 8.13 labels Mar 6, 2024
@l-trotta l-trotta force-pushed the java-client-issues-batch-2 branch from 3d47da4 to 3cc0fe4 Compare March 6, 2024 14:46
Copy link
Contributor

@Anaethelion Anaethelion left a comment

Choose a reason for hiding this comment

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

Unsure about GeoPointProperty, it seems to fit the server description, maybe these should be a level higher.

specification/_types/mapping/core.ts Show resolved Hide resolved
@@ -18,5 +18,5 @@
*/

export class TransientMetadataConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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


export class Role {
cluster: string[]
indices: IndicesPrivileges[]
metadata: Metadata
run_as: string[]
transient_metadata: TransientMetadataConfig
transient_metadata?: Dictionary<string, UserDefinedValue>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Anaethelion I also applied the same change to the security spec since the class should be the same, is it correct?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. Also remove TransientMetadataConfig that is now useless.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed.

Copy link
Contributor

github-actions bot commented Mar 6, 2024

Following you can find the validation results for the APIs you have changed.

API Status Request Response
enrich.execute_policy 🟢 7/7 7/7
indices.data_streams_stats 🟢 4/4 4/4
search 🔴 1787/1849 1755/1831
security.activate_user_profile 🟢 8/8 8/8
security.authenticate 🔴 29/29 23/29
security.bulk_update_api_keys 🟠 Missing type Missing type
security.change_password 🟢 9/9 9/9
security.clear_api_key_cache 🟢 13/13 13/13
security.clear_cached_privileges 🟢 3/3 3/3
security.clear_cached_realms 🟢 1/1 1/1
security.clear_cached_roles 🟢 2/2 2/2
security.clear_cached_service_tokens 🟢 4/4 4/4
security.create_api_key 🟢 55/55 46/46
security.create_cross_cluster_api_key 🟠 Missing type Missing type
security.create_service_token 🟢 3/3 3/3
security.delete_privileges 🟢 6/6 6/6
security.delete_role_mapping 🟢 9/9 9/9
security.delete_role 🟢 8/8 8/8
security.delete_service_token Missing test Missing test
security.delete_user 🔴 9/9 8/9
security.disable_user_profile 🟢 1/1 1/1
security.disable_user 🟢 3/3 3/3
security.enable_user_profile 🟢 1/1 1/1
security.enable_user 🟢 4/4 4/4
security.enroll_kibana Missing test Missing test
security.enroll_node Missing test Missing test
security.get_api_key 🔴 37/37 12/37
security.get_builtin_privileges 🟢 2/2 2/2
security.get_privileges 🔴 12/12 11/12
security.get_role_mapping 🔴 18/18 10/18
security.get_role 🟢 20/20 20/20
security.get_service_accounts Missing test Missing test
security.get_service_credentials 🟢 1/1 1/1
security.get_settings 🟠 Missing type Missing type
security.get_token 🟢 25/25 24/24
security.get_user_privileges 🟢 7/7 7/7
security.get_user_profile 🟢 8/8 8/8
security.get_user 🟢 25/25 25/25
security.grant_api_key 🔴 7/7 5/7
security.has_privileges_user_profile 🟢 3/3 3/3
security.has_privileges 🔴 24/24 22/24
security.invalidate_api_key 🔴 12/12 10/12
security.invalidate_token 🟢 11/11 11/11
security.oidc_authenticate 🟠 Missing type Missing type
security.oidc_logout 🟠 Missing type Missing type
security.oidc_prepare_authentication 🟠 Missing type Missing type
security.put_privileges 🔴 10/10 9/10
security.put_role_mapping 🔴 2/11 11/11
security.put_role 🟢 39/39 38/38
security.put_user 🔴 48/48 46/47
security.query_api_keys 🔴 13/13 0/13
security.saml_authenticate Missing test Missing test
security.saml_complete_logout Missing test Missing test
security.saml_invalidate Missing test Missing test
security.saml_logout Missing test Missing test
security.saml_prepare_authentication Missing test Missing test
security.saml_service_provider_metadata Missing test Missing test
security.suggest_user_profiles 🟢 1/1 1/1
security.update_api_key 🟢 5/5 5/5
security.update_cross_cluster_api_key 🟠 Missing type Missing type
security.update_settings 🟠 Missing type Missing type
security.update_user_profile_data 🟢 1/1 1/1

You can validate these APIs yourself by using the make validate target.

@l-trotta l-trotta merged commit 0a63a19 into main Mar 6, 2024
6 checks passed
@l-trotta l-trotta deleted the java-client-issues-batch-2 branch March 6, 2024 16:56
github-actions bot pushed a commit that referenced this pull request Mar 6, 2024
* making status in enrich policy response optional (issue 744, 376)

* making transient_metadata and enabled field in role response optional (issue 317)

* byte fields from integer to long (issue 379)

* adding missing properties to GeoPoint (issue 394)

* making source in InlineGet optional (issue 403)

* stored_field should be stored_fields in InnerHits (issue 409)

* added positive_score_impact to RankFeaturesProperty (issue 450)

* making dims optional for DenseVectorProperty (issue 754)

* TransientMetadataConfig as map

* removed duplicate schema json

(cherry picked from commit 0a63a19)
l-trotta added a commit that referenced this pull request Mar 6, 2024
* making status in enrich policy response optional (issue 744, 376)

* making transient_metadata and enabled field in role response optional (issue 317)

* byte fields from integer to long (issue 379)

* adding missing properties to GeoPoint (issue 394)

* making source in InlineGet optional (issue 403)

* stored_field should be stored_fields in InnerHits (issue 409)

* added positive_score_impact to RankFeaturesProperty (issue 450)

* making dims optional for DenseVectorProperty (issue 754)

* TransientMetadataConfig as map

* removed duplicate schema json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 8.13 lang:java Affects/found in the Java client specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants