-
Notifications
You must be signed in to change notification settings - Fork 172
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…s in dataset view page
rhabbachi
force-pushed
the
harvest-fields-dataset
branch
from
March 16, 2017 09:10
40e9332
to
7ceecc0
Compare
Also update the harvest migrate support to accomodate this change.
+ Use the more generic Date type for the harevst date fields.
+ Fix field name typo.
+ Replace with newly added harvest date tracking fields when appropriate.
…om the harvest fields
dafeder
requested changes
Mar 23, 2017
@@ -120,3 +120,14 @@ function dkan_dataset_update_7003() { | |||
$vocabulary = taxonomy_vocabulary_machine_name_load('odfe_theme'); | |||
taxonomy_vocabulary_delete($vocabulary->vid); | |||
} | |||
|
There was a problem hiding this comment.
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
approved these changes
Mar 27, 2017
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: CIVIC-5993
Description
Currently we are using the
$node->created
and$node->modified
node properties to store themodified
andissued
. 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
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
features_master
module list to include thedate_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