Skip to content

UHF-12723: Hakuvahti form#1238

Open
hyrsky wants to merge 3 commits intodevfrom
UHF-12723
Open

UHF-12723: Hakuvahti form#1238
hyrsky wants to merge 3 commits intodevfrom
UHF-12723

Conversation

@hyrsky
Copy link
Contributor

@hyrsky hyrsky commented Feb 10, 2026

UHF-12723

How to install

Install Drupal

  • Make sure your instance is up and running latest version of dev-branch
    • git checkout dev && git pull origin dev
    • make fresh
  • Switch to feature branch
    • git fetch && git checkout UHF-12723
  • Update drupal modules
    • composer require drupal/helfi_platform_config:dev-UHF-12723
    • composer require drupal/hdbt:dev-UHF-12723
    • composer require drupal/helfi_hakuvahti:dev-UHF-12723
  • Run code updates
    • make drush-deploy drush-locale-update drush-cr

Import mobilenote data

  • Add mobilenote environment variables to local.settings.php.
    $settings['helfi_kymp_mobilenote'] = [
      'wfs_url' => 'https://kymp.mobilenote.fi/MobilenoteService/wfs',
      'wfs_username' => '<< username >>',
      'wfs_password' => '<< password >>',
      'address_api_key' => '<< api key >>',
      'sync_lookback_offset' => '-30 days',
      'sync_removal_offset' => '+30 days',
    ];
  • Import mobilenote data to elasticsearch: drush sapi-c mobilenote_data; drush sapi-rt mobilenote_data; drush sapi-i mobilenote_data

Start hakuvahti locally:

Configure hakuvahti:

Add to local.settings.php:

$config['helfi_hakuvahti.settings']['base_url'] = 'http://hakuvahti:3000';
$config['helfi_hakuvahti.settings']['api_key'] = '123';

How to test

  •  drush helfi:tools:update-platform --branch=UHF-12723 --no-self-update, git diff public/sites/default/settings.php looks ok.
  • Configure hakuvahti settings. I don't know if there is any point in having a form for these, but I just copied these from rekry.
  • Create basic page with exact url: /pysakointi/ajoneuvojen-siirrot/ajoneuvojen-siirtokehotukset.
    • The search block should be visible on that page.
    • You should be able to filter vehicle removal data by street name.
    • You should be able to subscribe to hakuvahti without errors.
  • Hakuvahti works on kymp (Run these commands inside hakuvahti container, run make shell first)
    • Run: npm run hav:send-emails-in-queue, check email from https://
      mailpit.docker.so/.
  • Hakuvahti works on rekry: Check UHF-12723: Move hakuvahti config to settings.php drupal-helfi-rekry#901.
  • Check that the code follows our standards

Links to related PRs

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant