Skip to content
Snippets Groups Projects

handle empty row condition in data_ingest. remove uuid

Closed Paul Mather requested to merge LIBTD-640 into master

Created by: whunter

If row in data set is empty, return appropriate error message to be logged. Remove uuid from hash pushed so solr.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
84 82
85 83
86 84 def validaterecord(content)
85 if content.length === 0
86 return "Row does not contain record."
87 end
87 88 result = ""
88 fields = ["uuid","dc:identifier", "dc:rights", "dct:provenance", "dct:references",
  • when you remove uuid. the index in this line also changes too.

    if item[1].nil? and ![0, 8, 11, 12, 15, 16, 20, 22].include? i and also following lines.

  • Yinlin Chen
  • Yinlin Chen
  • Yinlin Chen
  • Looks good. Please rebase and submit.

  • Please register or sign in to reply
    Loading