Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix digital post commands #166

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -118,12 +118,12 @@ jobs:
name: markdownlint
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn packages
uses: actions/cache@v2
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

- [PR-166](https://github.com/OS2Forms/os2forms/pull/166)
- Fix digital post commands
- Updated versions in GitHub Actions `uses` steps

## [4.0.0] 2025-03-06

- This is an alias for for 3.22.2. Major change is the module removal, which can lead to lack of backward support.
See full release note here:
https://github.com/OS2Forms/os2forms_docs/blob/master/docs/releases/2024-Q4-Release-notes.md
- This is an alias for for 3.22.2. Major change is the module removal, which can
lead to lack of backward support. See full release note here:
<https://github.com/OS2Forms/os2forms_docs/blob/master/docs/releases/2024-Q4-Release-notes.md>

## [3.22.2] 2025-02-28

Expand Down Expand Up @@ -90,9 +94,8 @@ https://github.com/OS2Forms/os2forms_docs/blob/master/docs/releases/2024-Q4-Rele
## [3.16.0] 2024-08-27

f/OS-115_dawa_address
- [OS-115] Skipping empty maktrikula objects


- [OS-115] Skipping empty maktrikula objects

[#110](https://github.com/OS2Forms/os2forms/pull/110)

Expand Down
9 changes: 0 additions & 9 deletions modules/os2forms_digital_post/drush.services.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Drupal\os2forms_digital_post\Drush\Commands;

use Drupal\Component\Serialization\Yaml;
use Drupal\Core\DependencyInjection\AutowireTrait;
use Drupal\Core\Utility\Token;
use Drupal\entity_print\Plugin\EntityPrintPluginManagerInterface;
use Drupal\os2forms_digital_post\Helper\DigitalPostHelper;
Expand All @@ -12,20 +13,25 @@
use ItkDev\Serviceplatformen\Service\SF1601\SF1601;
use Symfony\Component\Console\Exception\InvalidArgumentException;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;

/**
* Test commands for digital post.
*/
class DigitalPostTestCommands extends DrushCommands {
use AutowireTrait;

/**
* Constructor.
*/
public function __construct(
#[Autowire(service: DigitalPostHelper::class)]
private readonly DigitalPostHelper $digitalPostHelper,
private readonly Token $token,
#[Autowire(service: 'plugin.manager.entity_print.print_engine')]
private readonly EntityPrintPluginManagerInterface $entityPrintPluginManager,
#[Autowire(service: Settings::class)]
private readonly Settings $digitalPostSettings,
) {
}
Expand Down
Loading