Skip to content

duplicate_url_reporter.rb still uses old pid <-- duplicate_url table mapping #4

@briri

Description

@briri

The duplicate_url_reporter.rb was not updated to reflect changes made to the ORM mappings between pid.rb and duplicate_url.rb. The relationship of the foreign key between the two entities was changed. The old structure had the duplicate_url_id on pid as a foreign key relationship. This was updated so that the duplicate_url now has a pid_id foreign key.

The offending code is:

          pid.mutable = true
          pid.duplicate_url_report = DuplicateUrlReport.new(:other_pids => pids.join(', '), :last_checked => Time.now)
          pid.save
          pid.mutable = false

It should probably be updated to:

          dur = DuplicateUrlReport.new(:pid => pid, :other_pids => pids.join(', '), :last_checked => Time.now)
          dur.save

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions