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

[CIVIC-5993] Better support for Issued and Updated dataset properties from harvested sources #1802

Merged
merged 31 commits into from
Mar 28, 2017

Conversation

rhabbachi
Copy link
Contributor

@rhabbachi rhabbachi commented Mar 15, 2017

Issue: CIVIC-5993

Description

Currently we are using the $node->created and $node->modified node properties to store the modified and issued. The node properties being subject of change in various stages of the harvest process or other un-related activities this data is being consistently lost.

Acceptance Criteria

  1. Add new fields to the dataset node to store this data ({{field_harvest_source_issued}}, {{field_harvest_source_modified}}, the fields are of type date.
  2. Those fields should not be available on the node edit page.
  3. Those fields should not show up on the node view page. Instead, the value from those fields should supplement the {{Release Date}} and the {{Modified Date}} fields when available.
  4. During the harvest a POD source. Those fields should be filled using the {{modified}} for the {{field_harvest_source_modified}} and {{issued}} for the {{field_harvest_source_issued}} field.
  5. Drop the {{field_modified_source_date}} field as its purpose is being supplemented by the {{field_modified_source_date}} field.
  6. Update the {{open_data_schema_map_dkan}} endpoints to leverage the new date tracking fields from the harvest.

Test Updates

Update the behat tests if needed. Update the phpunit tests to account for this change.

Documentation Updates

Check the documentation and updated when needed.

DKAN Starter Updates

  • Update the features_master module list to include the date_views module.

Merge process

- [ ] Note if there is a special sequence for merging (such as PRs on other repos that need to be merged first) or other abnormalities to look out for.

Reminders

  • There is test for the issue.
  • CHANGELOG updated.
  • Coding standards checked.

@rhabbachi rhabbachi force-pushed the harvest-fields-dataset branch from 40e9332 to 7ceecc0 Compare March 16, 2017 09:10
Riadh Habbachi and others added 19 commits March 16, 2017 10:32
Also update the harvest migrate support to accomodate this change.
+ Use the more generic Date type for the harevst date fields.
+ Replace with newly added harvest date tracking fields when appropriate.
@@ -120,3 +120,14 @@ function dkan_dataset_update_7003() {
$vocabulary = taxonomy_vocabulary_machine_name_load('odfe_theme');
taxonomy_vocabulary_delete($vocabulary->vid);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to dkan.install - we're trying not to do update hooks in the modules anymore

@dafeder dafeder merged commit 9752902 into 7.x-1.x Mar 28, 2017
@dafeder dafeder deleted the harvest-fields-dataset branch March 28, 2017 18:33
dafeder pushed a commit that referenced this pull request Apr 24, 2020
… from harvested sources (#1802)

* Add harvest creatde and modified dates to dataset

* Support harvest created and modified in endpoints

*  Use dedicated fields to store created and modified dates

* Add tests for harvest date tracking fields in the dataset

* Fix source modified field name

* Update behat tests to include checking for harvest source dates fields in dataset view page

* Fix drush harvest command missing argument warning

* Convert the created and modified harvest fields to Date type

Also update the harvest migrate support to accomodate this change.

* Update harvest dates field names to match Ac

+ Use the more generic Date type for the harevst date fields.

* Update harvest views to use the new date trakcing fields

* Update the alter hook to target new harvest date tracking fields

* Update unit tests to match the new fields names

* Use 'Y-m-d' format for harvest dataset fields

* Update test to expect a timestamp instead of date

+ Fix field name typo.

* Fix harvest dataset modified field name typo

* Drop field_modified_source_date from code

+ Replace with newly added harvest date tracking fields when appropriate.

* Add hook_update to drop field_modified_source_date from the DB

* Override the release and modified in dataset view page with values from the harvest fields

* Update the tests to use the new harvest modified field

* Update the tests to use the new harvest date fields

* Update the api endpoint harvest field names

* Update default content file with correct harvest date fields values

* Update the exported endpoint to use appropriate time format

* Update 1.13.3.rst

* Move update_hook to dkan.install

* Add CHANGELOG

* Update 1.13.3.rst
dafeder pushed a commit that referenced this pull request Apr 24, 2020
… from harvested sources (#1802)

* Add harvest creatde and modified dates to dataset

* Support harvest created and modified in endpoints

*  Use dedicated fields to store created and modified dates

* Add tests for harvest date tracking fields in the dataset

* Fix source modified field name

* Update behat tests to include checking for harvest source dates fields in dataset view page

* Fix drush harvest command missing argument warning

* Convert the created and modified harvest fields to Date type

Also update the harvest migrate support to accomodate this change.

* Update harvest dates field names to match Ac

+ Use the more generic Date type for the harevst date fields.

* Update harvest views to use the new date trakcing fields

* Update the alter hook to target new harvest date tracking fields

* Update unit tests to match the new fields names

* Use 'Y-m-d' format for harvest dataset fields

* Update test to expect a timestamp instead of date

+ Fix field name typo.

* Fix harvest dataset modified field name typo

* Drop field_modified_source_date from code

+ Replace with newly added harvest date tracking fields when appropriate.

* Add hook_update to drop field_modified_source_date from the DB

* Override the release and modified in dataset view page with values from the harvest fields

* Update the tests to use the new harvest modified field

* Update the tests to use the new harvest date fields

* Update the api endpoint harvest field names

* Update default content file with correct harvest date fields values

* Update the exported endpoint to use appropriate time format

* Update 1.13.3.rst

* Move update_hook to dkan.install

* Add CHANGELOG

* Update 1.13.3.rst
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.

2 participants