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

UHF-10408: Fixed migration image destination, documentation #539

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ listings are published for indexing.
- The migration interval for changed job listings poll is written on this cron configuration [here](https://github.com/City-of-Helsinki/drupal-helfi-rekry/blob/dev/docker/openshift/crons/migrate-changed-job-listings.sh).
- The scheduled publishing interval can be checked from this cron configuration [here](https://github.com/City-of-Helsinki/drupal-helfi-rekry/blob/dev/docker/openshift/crons/content-scheduler.sh).

### Testing on local

The `job_listing_images` migration requires Azure Blob storage to be configured. See [Azure FS module](https://github.com/City-of-Helsinki/drupal-module-helfi-azure-fs?tab=readme-ov-file#testing-on-local) for more information.

Modify/create `public/sites/default/local.settings.php` file with:
```php
$config['helfi_rekry_content.settings']['helbit_client_id'] = '[ copy value from HELBIT_CLIENT_ID environment variable ]';
```

### Hakuvahti

_Hakuvahti_ is feature of the [Job search](#job-search-job_search) that allows users to save their job search criteria. Users will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ source:
label: Title
selector: jobAdvertisement/title
constants:
DRUPAL_FILE_DIRECTORY: 'public://job_listing_images/'
DRUPAL_FILE_DIRECTORY: 'azure://job_listing_images/'
HELBIT_BASE_URL: 'https://helbit.fi'
process:
destination_filename:
Expand Down Expand Up @@ -70,7 +70,7 @@ process:
source:
- '@source_uri'
- '@destination_path'
file_exists: rename
file_exists: use_existing
move: false
langcode: langcode
destination:
Expand Down