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

MODSOURAMN-1063 - Update RecordProcessingLogDto to contain incoming record id #838

Merged
merged 33 commits into from
Jan 18, 2024

Conversation

VRohach
Copy link
Contributor

@VRohach VRohach commented Jan 2, 2024

Purpose

Added incomingRecordId in https://github.com/folio-org/data-import-raml-storage/blob/master/schemas/dto/recordProcessingLogDto.json schema. SourceRecordId will still correspond to SRS record id, but may be empty if record is not saved in srs, therefore - remove sourceRecordId from "required" section
Checked specifics of Invoice Lines display. What 'relatedInvoiceLineInfo' refers to and add to ProcessingLogDto if needed
Made changes in MetadataProvider services and dao to populate incomingRecordId in ProcessingLogDto
Made changes in MetadataProvider for /metadata-provider/jobLogEntries/{jobExecutionId} to return collection of ProcessingLogDto. jobLogEntryDtoCollection schema should be changed or new collection schema is added
Remove https://github.com/folio-org/data-import-raml-storage/blob/master/schemas/dto/jobLogEntryDto.json
Updated tests

Approach

get_job_log_entries function improved to be able to fill the "RecordProcessingLogDto"-entity in collection.

Depends on: folio-org/data-import-raml-storage#304

Is this change testable? If not - why?

Checklist

  • I have updated NEWS.md.
  • I have added javadocs to new methods.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation e.g. README.md.
  • I have ran karate tests against this feature.

yaroslav-epam and others added 14 commits November 21, 2023 11:31
save IncomingRecords with JournalRecords after incoming records are parsed
…CE_CREATED event received (#834)

MODSOURMAN-1070: Filled in two journals records for Instance and Marc bib during INSTANCE_CREATED event type
…CE_CREATED event received (#834)

MODSOURMAN-1070: Filled in two journals records for Instance and Marc bib during INSTANCE_CREATED event type
…-record-manager into MODSOURMAN-1063-2

# Conflicts:
#	NEWS.md
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordService.java
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordServiceImpl.java
@VRohach
Copy link
Contributor Author

VRohach commented Jan 2, 2024

Schema changes will be done in the separate PR after this implementation will be tested. For testing purposes changes in schema is provided in this way in .raml-file:
" recordProcessingLogDto: !include tmpSchemas/recordProcessingLogDto.json
recordProcessingLogDtoCollection: !include tmpSchemas/recordProcessingLogDtoCollection.json"

@VRohach
Copy link
Contributor Author

VRohach commented Jan 2, 2024

Also, currently I'm working on fixing/improving unit-tests.

yaroslav-epam and others added 5 commits January 4, 2024 14:35
…CE_CREATED event received (#834)

MODSOURMAN-1070: Filled in two journals records for Instance and Marc bib during INSTANCE_CREATED event type
…-record-manager into MODSOURMAN-1063-2

# Conflicts:
#	NEWS.md
#	mod-source-record-manager-server/src/main/java/org/folio/services/ChangeEngineServiceImpl.java
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordService.java
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordServiceImpl.java
#	mod-source-record-manager-server/src/test/java/org/folio/rest/impl/AbstractRestTest.java
#	mod-source-record-manager-server/src/test/java/org/folio/rest/impl/changeManager/ChangeManagerAPITest.java
#	mod-source-record-manager-server/src/test/java/org/folio/services/ChangeEngineServiceImplTest.java
@VRohach VRohach changed the title MODSOURAMN-1063 MODSOURAMN-1063 - Update RecordProcessingLogDto to contain incoming record id Jan 11, 2024
@VRohach
Copy link
Contributor Author

VRohach commented Jan 11, 2024

Schema changes will be done in the separate PR after this implementation will be tested. For testing purposes changes in schema is provided in this way in .raml-file: " recordProcessingLogDto: !include tmpSchemas/recordProcessingLogDto.json recordProcessingLogDtoCollection: !include tmpSchemas/recordProcessingLogDtoCollection.json"

This should be done when merging to master-branch!!!

…-record-manager into MODSOURMAN-1063-2

# Conflicts:
#	NEWS.md
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordService.java
#	mod-source-record-manager-server/src/main/java/org/folio/services/JournalRecordServiceImpl.java
#	mod-source-record-manager-server/src/main/java/org/folio/services/journal/JournalUtil.java
#	mod-source-record-manager-server/src/main/resources/templates/db_scripts/create_get_job_log_entries_function.sql
#	mod-source-record-manager-server/src/main/resources/templates/db_scripts/schema.json
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

10 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@yaroslav-epam yaroslav-epam merged commit 63b787d into UXPROD-4471 Jan 18, 2024
5 checks passed
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.

5 participants