-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add/use RFC3339 fields in requests #233
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.incognia.common; | ||
|
||
import java.time.Instant; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
@Value | ||
Check notice Code scanning / CodeQL Deprecated method or constructor invocation Note
Invoking
AdditionalLocation.getTimestamp Error loading related location Loading |
||
@Builder | ||
public class AdditionalLocation { | ||
Double lat; | ||
Double lng; | ||
Long timestamp; | ||
@Deprecated Long timestamp; | ||
Instant collectedAt; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.incognia.feedback; | ||
|
||
import java.time.Instant; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
@Value | ||
Check notice Code scanning / CodeQL Deprecated method or constructor invocation Note
Invoking
PostFeedbackRequestBody.getTimestamp Error loading related location Loading |
||
@Builder | ||
public class PostFeedbackRequestBody { | ||
FeedbackEvent event; | ||
Long timestamp; | ||
@Deprecated Long timestamp; | ||
Instant occurredAt; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a breaking change once There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll change it in another PR to be released together with the breaking changes. |
||
String accountId; | ||
String externalId; | ||
String installationId; | ||
|
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 decided to mark the old field as deprecated and add the new here as this class is used by the user. Given that we are bumping the major due to the removal of
GetSignup
, should we take the opportunity and remove the old field too?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.
sure
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'll remove it later together with the other breaking changes.