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

[MODAUD-174] - Consume piece change events and implement endpoints #155

Merged
merged 51 commits into from
Nov 16, 2023

Conversation

azizbekxm
Copy link
Contributor

Purpose

https://issues.folio.org/browse/MODAUD-174

Approach

Implemented functionality for extracting the status change history for a Piece

  • Created table to store audit log for pieces
  • Imlemented consumer verticle and event handler
  • Provided services and DAOs
  • Implemented GET endpoint to retrieve by id: /audit-data/acquisition/piece/{id}
  • Implemented GET endpoint to retrieve by id only unique status changes: /audit-data/acquisition/piece/{id}/unique-status

@azizbekxm azizbekxm marked this pull request as draft November 9, 2023 11:33
@azizbekxm azizbekxm marked this pull request as ready for review November 15, 2023 11:47
@azizbekxm azizbekxm requested a review from a team November 15, 2023 11:48
.gitignore Outdated

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?

Copy link
Contributor Author

@azizbekxm azizbekxm Nov 15, 2023

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

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()),
Copy link
Contributor

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?

Copy link
Contributor Author

@azizbekxm azizbekxm Nov 15, 2023

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

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 9 Code Smells

91.8% 91.8% Coverage
0.0% 0.0% Duplication

@azizbekxm azizbekxm merged commit fb5889a into master Nov 16, 2023
3 checks passed
@azizbekxm azizbekxm deleted the MODAUD-174 branch November 16, 2023 09:39
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.

4 participants