-
Notifications
You must be signed in to change notification settings - Fork 2
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
Generate Service Image Action not triggered by migration #4
Comments
Gathering resources.
|
Ack, it also isn't triggering Fedora and triple-store indexing.... |
I may have been barking up the wrong tree. The milliner log (/logs/islandora/milliner.log) starts displaying a lot of errors when the current migration configuration runs. So, events are being triggered, but not properly. E.g. (sans JWT auth entries, which were all successful)
Note that the Gemini calls in these entries don't actually work. Needs more debugging. |
Discovered that drush doesn't automatically pull in the site URI which caused the emitted events to have the wrong URL. Running drush with the option More testing to come. |
Derivatives are being generated by Houdini, but are not getting saved back to Drupal when using Drush. It is probably related to how AuthenticationGuardToken is being set. Migrations run when logged in as admin will show in the houdini log (
But when using drush the PostAuthenticationGuardToken part will change to:
|
Drush used to have a user switch to run commands as another user, but it was removed. A thread recommends using AccountSwitcher, but it isn't clear to me how to use it. I attempted to use the AccountSwitcher in a Migrate PreImport Event subscriber, but that didn't appear to work (the Tokens didn't change). |
Switches the user running the migration to the one indicated, necessary for JWT authentication to work for generating derivatives. Resolves #4
I finally got AccountSwitcher to work using a drush pre-command. The UserSession constructor needs the uid, name, and roles for the JWT auth to work. (UserSession doesn't infer the other properties from the uid.) |
Resolves #4 generate derivatives when using drush
Image generation isn't working on a stock claw_playbook. Reopening the issue although I probably won't do anything with it for the time being since users can successfully trigger derivatives using the UI Content page. |
Actually, it is creating them. Perhaps I didn't give it enough time to process last time. |
Running the migration results in UNLV Images with Media Files tagged as Preservation Masters but this doesn't trigger the generate_a_service_file_from_preservation_master action. This requires us to manually select the migrated content items in the UI and initiate the action after the migration completes. Hardly ideal.
The text was updated successfully, but these errors were encountered: