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

ENH: introduce primary fields in plugin schemas #5184

Conversation

chenqi0805
Copy link
Collaborator

Description

This PR introduces custom primary fields into plugin JSON schemas.

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

final PrimaryFieldsOverride primaryFieldsOverride;
try {
final URL primaryFieldsOverrideURL = primaryFieldsOverrideFilePath == null ?
getClass().getClassLoader().getResource("example-primary-fields-override.yaml").toURI().toURL() :
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should make the override provide the path to a JSON file for overriding. Otherwise, somebody who wants to override would need to rebuild the jar file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed override example file.

@chenqi0805 chenqi0805 merged commit 0673308 into opensearch-project:main Nov 12, 2024
39 of 47 checks passed
@chenqi0805 chenqi0805 deleted the enh/introduce-primary-fields-in-plugin-schemas branch November 12, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants