-
Notifications
You must be signed in to change notification settings - Fork 8
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
[MODAUD-174] - Consume piece change events and implement endpoints #155
Conversation
mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java
Outdated
Show resolved
Hide resolved
...it-server/src/main/java/org/folio/services/acquisition/impl/PieceAuditEventsServiceImpl.java
Outdated
Show resolved
Hide resolved
mod-audit-server/src/main/resources/templates/db_scripts/schema.json
Outdated
Show resolved
Hide resolved
.gitignore
Outdated
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.
Doubt
Do we need to push this?
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.
it avoid situation where intellij idea asks whether add postgres-conf.json to git or not. For me it is useful
mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java
Show resolved
Hide resolved
...it-server/src/main/java/org/folio/services/acquisition/impl/OrderAuditEventsServiceImpl.java
Outdated
Show resolved
Hide resolved
LocalDateTime.ofInstant(orderAuditEvent.getEventDate().toInstant(), ZoneOffset.UTC), | ||
LocalDateTime.ofInstant(orderAuditEvent.getActionDate().toInstant(), ZoneOffset.UTC), | ||
LocalDateTime.ofInstant(orderAuditEvent.getEventDate().toInstant(), ZoneId.systemDefault()), | ||
LocalDateTime.ofInstant(orderAuditEvent.getActionDate().toInstant(), ZoneId.systemDefault()), |
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.
Just for may knowledge why we need to change ZoneOffset here?
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.
1- orderAuditEvent.getActionDate().toInstant() this part converting date to second
2- LocalDateTime.ofInstant(orderAuditEvent.getActionDate().toInstant(), ZoneId.systemDefault()) localdatetime creating date time from second based on system zoneId
mod-audit-server/src/main/java/org/folio/dao/acquisition/impl/PieceEventsDaoImpl.java
Outdated
Show resolved
Hide resolved
mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Purpose
https://issues.folio.org/browse/MODAUD-174
Approach
Implemented functionality for extracting the status change history for a Piece