-
Notifications
You must be signed in to change notification settings - Fork 33
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
Test datetime attribute insert and match time-zone invariant #424
Conversation
PR Review ChecklistDo not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed. Trivial Change
Code
Architecture
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly styling.
@@ -645,13 +644,13 @@ public boolean check(Concept concept) { | |||
} | |||
} | |||
|
|||
public static class AttributeUniquenessCheck { | |||
public static abstract class AttributeUniquenessCheck { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
|
||
protected final Label type; | ||
protected final String value; | ||
|
||
AttributeUniquenessCheck(String typeAndValue) { | ||
String[] s = typeAndValue.split(":"); | ||
String[] s = typeAndValue.split(":", 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of this but I think we'll take it for now. Thoughts: it's not obvious how this is going to interplace with the next assertion line, and what it means about the format of the 'typeAndValue' identifier we're expecting (less explainable in 1 short sentence IMO)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check how we set the timezone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
…iant (typedb#424) Added step implementation for changing environment timezone for Java, and fixed the parsing of datetime. We hence enabled the BDD tests to check timezone-invariance of inserting and reading datetime attributes. - Added "set time-zone is: {time_zone_label}" which sets environment timezone to time_zone_label. - Fixed datetime attribute parsing by bounding the number of splits of the attribute by ":" to 2.
…iant (typedb#424) Added step implementation for changing environment timezone for Java, and fixed the parsing of datetime. We hence enabled the BDD tests to check timezone-invariance of inserting and reading datetime attributes. - Added "set time-zone is: {time_zone_label}" which sets environment timezone to time_zone_label. - Fixed datetime attribute parsing by bounding the number of splits of the attribute by ":" to 2.
## What is the goal of this PR? We update the Rust driver to support the features introduced in driver Java since v2.19 in effort to preserve the feature set when transitioning from the JVM-native implementation to the Rust JNI implementation. ## What are the changes implemented in this PR? Changes in master since branching (#417): Reimplemented in Rust and made available in Java over JNI: - #409 - #421 - 1f396a6 Improve method unavailable error message - #430 - #431: partial, since `tonic` does not report SSL errors to the same granularity Cherry-picked directly: - #415 - 42800e7 Update VERSION to 2.18.1 - 7cd0a5a Add eclipsesource-minimal-json to maven dependencies (#423) - 63614ec Update CODEOWNERS - #424 Dropped entirely (Java-specific or obsolete): - #422 - 8c0caa1 Update VERSION and release notes --------- Co-authored-by: Benjamin Small <benjaminasmall@gmail.com> Co-authored-by: joshua <joshua@vaticle.com> Co-authored-by: Krishnan Govindraj <krishnangovindraj@users.noreply.github.com>
What is the goal of this PR?
Added step implementation for changing environment timezone for Java, and fixed the parsing of datetime. We hence enabled the BDD tests to check timezone-invariance of inserting and reading datetime attributes.
What are the changes implemented in this PR?