-
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
DKAN-4287 Make harvest_run id not a primary key. #4346
base: 2.x
Are you sure you want to change the base?
Conversation
8ce1554
to
59ea0a1
Compare
9a08467
to
f1d22db
Compare
* | ||
* @return \Drupal\harvest\HarvestRunInterface|\Drupal\Core\Entity\EntityInterface|null | ||
* The loaded entity or NULL if none could be loaded. | ||
* | ||
* @deprecated in dkan:2.19.11 and is removed from dkan:3.0.0 Use HarvestService::load(). |
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.
It is possible that this can't be deprecated. Everywhere it is still called, there is no access to the actual ID. Mainly in tests where it is pulling previous specific run instances.
b44beae
to
d87e4fa
Compare
c5c9048
to
e3e46fa
Compare
Got it down to just one test failure |
@swirtSJW I don't see any test failures at the moment? |
@paul-m Can you take a first pass at code review on this? |
e3e46fa
to
b91e610
Compare
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.
Under the 2.x branch, I used sample_content to generate a harvest to run (drush dkan:sample-content:create
), and then ran it (using cron).
Then I switched to this branch and ran drush updb
.
Everything seemed to work... I did notice that the one harvest run in my harvest_runs
table didn't have a UUID.
So I went ahead and did a new installation with this branch, and then ran the sample content harvest, and it did have a UUID.
So perhaps the update process doesn't generate UUIDs the way just creating an entity does...
Also I'd suggest that the utility functions, such as harvest_get_temp_run_ids()
in harvest.install
should be in HarvestUtility.
That way it's all in one place and labeled as part of the update process.
68ddecb
to
d07fb38
Compare
5cb3055
to
2407716
Compare
So it looks like a simple database write did not kick off the magic that would add a uuid that a normal drupal save would. So I intentionally added it. |
ed4ea52
to
f6a4484
Compare
f6a4484
to
e6d855f
Compare
I am stumped by this test failure.
It seems completely unrelated to the code in this PR. Beyond this test @paul-m I made all the changes you requested. |
Over in #4177 we deprecated some interfaces, which led to the fails. |
Fixes #4287
Describe your changes
QA Steps
This list is INCOMPLETE at this time.
From existing data
[] validate no errors show in terminal from these commands.
From new data
[] validate that the Run table list displays ___
Checklist before requesting review
If any of these are left unchecked, please provide an explanation