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

Document how to use Java 8 Time (JSR 310) objects #251

Merged
merged 5 commits into from
Nov 15, 2022

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Oct 29, 2022

Signed-off-by: Daniel Widdis widdis@gmail.com

Description

Updates docs to show how to serialize/deserialize classes from JSR-310 (Java 8) Date and Time API

Issues Resolved

Fixes #250

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.

owaiskazi19
owaiskazi19 previously approved these changes Oct 31, 2022
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

@dbwiddis
Copy link
Member Author

dbwiddis commented Nov 1, 2022

Let's document this in USER_GUIDE

I'm not clear what/where should be documented. This is mostly an internal implementation detail that should be transparent to users.

Are you suggesting adding another field to the sample data? I could add a JSR310 class like Duration, but the USER_GUIDE example barely even touches the full range of Java classes, sticking to String examples.

@dbwiddis dbwiddis marked this pull request as draft November 2, 2022 18:00
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@dbwiddis dbwiddis changed the title Add support for JSR-310 Date and Time API classes Document how to use Java 8 Time (JSR 310) objects Nov 4, 2022
@dbwiddis dbwiddis marked this pull request as ready for review November 4, 2022 18:54
dblock
dblock previously approved these changes Nov 9, 2022
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

I like this! Nit below otherwise LGTM.

USER_GUIDE.md Outdated Show resolved Hide resolved
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@reta
Copy link
Collaborator

reta commented Nov 11, 2022

@dblock LGTM?

@dblock dblock merged commit fcdfa93 into opensearch-project:main Nov 15, 2022
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.

[FEATURE] Document how to use Java 8 Time (JSR 310) objects
5 participants