Skip to content

Commit

Permalink
Merge branch 'main' into 909-identify_csv_template_required_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
oraposa committed Sep 16, 2021
2 parents 392f790 + 1d7fa15 commit b8b8798
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
unreleased=true
future-release=v6.3.0
future-release=v6.4.1
37 changes: 27 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [v6.4.1](https://github.com/curationexperts/zizia/tree/v6.4.1) (2021-09-16)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v6.4.0...v6.4.1)

**Merged pull requests:**

- Use deduplication field to find Collection [\#125](https://github.com/curationexperts/zizia/pull/125) ([maxkadel](https://github.com/maxkadel))

## [v6.4.0](https://github.com/curationexperts/zizia/tree/v6.4.0) (2021-09-16)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v6.3.0...v6.4.0)

**Merged pull requests:**

- Fixes some deprecation warnings, and allows import of CSV's with blank lines [\#124](https://github.com/curationexperts/zizia/pull/124) ([mlooney](https://github.com/mlooney))

## [v6.3.0](https://github.com/curationexperts/zizia/tree/v6.3.0) (2021-09-13)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v6.2.0...v6.3.0)
Expand All @@ -8,6 +24,7 @@

- Add work to a collection if it is already created [\#122](https://github.com/curationexperts/zizia/pull/122) ([maxkadel](https://github.com/maxkadel))
- Add parent column to csv [\#121](https://github.com/curationexperts/zizia/pull/121) ([maxkadel](https://github.com/maxkadel))
- Add parent column to csv [\#120](https://github.com/curationexperts/zizia/pull/120) ([maxkadel](https://github.com/maxkadel))
- Refactor validator to return correct header name [\#119](https://github.com/curationexperts/zizia/pull/119) ([maxkadel](https://github.com/maxkadel))

## [v6.2.0](https://github.com/curationexperts/zizia/tree/v6.2.0) (2021-09-07)
Expand Down Expand Up @@ -247,21 +264,21 @@

## [v4.1.0.alpha.01](https://github.com/curationexperts/zizia/tree/v4.1.0.alpha.01) (2019-09-30)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v4...v4.1.0.alpha.01)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.2.alpha.01...v4.1.0.alpha.01)

**Merged pull requests:**

- Check for existing roles [\#24](https://github.com/curationexperts/zizia/pull/24) ([little9](https://github.com/little9))
- Revert "Update coverage formatter for CI environments" [\#23](https://github.com/curationexperts/zizia/pull/23) ([mark-dce](https://github.com/mark-dce))
- Update coverage formatter for CI environments [\#22](https://github.com/curationexperts/zizia/pull/22) ([mark-dce](https://github.com/mark-dce))

## [v4](https://github.com/curationexperts/zizia/tree/v4) (2019-09-25)
## [v4.0.2.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.2.alpha.01) (2019-09-25)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.2.alpha.01...v4)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v4...v4.0.2.alpha.01)

## [v4.0.2.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.2.alpha.01) (2019-09-25)
## [v4](https://github.com/curationexperts/zizia/tree/v4) (2019-09-25)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.0.alpha.01...v4.0.2.alpha.01)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.0.alpha.01...v4)

## [v4.0.0.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.0.alpha.01) (2019-09-25)

Expand Down Expand Up @@ -343,19 +360,19 @@

## [v2.1.0.alpha.02](https://github.com/curationexperts/zizia/tree/v2.1.0.alpha.02) (2019-07-30)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v2...v2.1.0.alpha.02)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0.alpha.01...v2.1.0.alpha.02)

**Merged pull requests:**

- Rename database migrations [\#6](https://github.com/curationexperts/zizia/pull/6) ([little9](https://github.com/little9))

## [v2](https://github.com/curationexperts/zizia/tree/v2) (2019-07-29)
## [v2.1.0.alpha.01](https://github.com/curationexperts/zizia/tree/v2.1.0.alpha.01) (2019-07-29)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0.alpha.01...v2)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v2...v2.1.0.alpha.01)

## [v2.1.0.alpha.01](https://github.com/curationexperts/zizia/tree/v2.1.0.alpha.01) (2019-07-29)
## [v2](https://github.com/curationexperts/zizia/tree/v2) (2019-07-29)

[Full Changelog](https://github.com/curationexperts/zizia/compare/v2.0.0.alpha.01...v2.1.0.alpha.01)
[Full Changelog](https://github.com/curationexperts/zizia/compare/v2.0.0.alpha.01...v2)

**Merged pull requests:**

Expand Down
2 changes: 1 addition & 1 deletion lib/zizia/hyrax/hyrax_record_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def find_collection_id(csv_import_detail:, record:)
if csv_import_detail&.collection_id&.present?
csv_import_detail.collection_id
elsif record&.parent&.first
Collection.where(deduplication_key: "def/123")&.first&.id
Collection.where("#{deduplication_field}": record.parent.first)&.first&.id
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/zizia/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Zizia
VERSION = '6.3.0'
VERSION = '6.4.1'
end
4 changes: 2 additions & 2 deletions spec/dummy/spec/system/import_from_csv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
end

context 'with an existing collection' do
let(:collection) { FactoryBot.build(:collection, title: ['Testing Collection'], deduplication_key: 'def/123') }
let(:collection) { FactoryBot.build(:collection, title: ['Testing Collection'], identifier: ['def/123']) }
before do
collection.save!
end
Expand All @@ -245,7 +245,7 @@
expect(Work.count).to eq 1
# Ensure that all the fields got assigned as expected
work = Work.where(title: "*haberdashery*").first
expect(collection.deduplication_key).to eq 'def/123'
expect(collection.identifier&.first).to eq 'def/123'
expect(work.member_of_collection_ids).to eq [collection.id]
end
end
Expand Down

0 comments on commit b8b8798

Please sign in to comment.