UHF-9937: Make sure removed job listings are not published #617
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.
UHF-9937
What was done
helfi_rekry_jobs:changed
migration does not work that well for removed job listings. For context, thehelfi_rekry_jobs:changed
migraton uses timestamp query parameter in a Helbit API URL to list all job listings that have changed since the timestamp. The timestamp comes from-1 day
in the migration source plugin. However, this query shows a job listingHELBIT-01-17-24
, which is not visible without thetimestamp
query parameters, since it was deleted between12:00 - 13:00
.So, if a job listing is deleted,
helfi_rekry_jobs:changed
will return invalid data for at least a day. I thought that it would be best just to not use the changed migration at all.Also, job listings are marked unpublished when they disappear from the
helfi_rekry_jobs:all
migration. This is detected with aMigrateMissingSourceRowsEvent
event handler. The event handler does not take into account job listings that are currently unpublished, but are scheduled to be published later.How to install
git checkout UHF-9937-removed-job-listings
make fresh
make drush-cr
How to test
Continuous documentation
Translations
Other PRs