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

Release 1.12.0 #356

Merged
merged 70 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
27c9a81
Add input for QuickEdit and fill it
abrain Jan 16, 2023
a7106a2
Actually update the meta field
abrain Jan 16, 2023
c683348
Merge branch 'develop' into feature/number-in-quickedit
abrain Sep 12, 2023
83a2b78
Merge branch 'develop' into feature/number-in-quickedit
abrain Dec 1, 2023
079aa96
chore(deps): update dependency yoast/phpunit-polyfills to v2
renovate-bot Aug 18, 2024
1082607
Merge branch 'master' into develop
abrain Aug 18, 2024
25eb5c9
Merge branch 'develop' into renovate/yoast-phpunit-polyfills-2.x
abrain Aug 18, 2024
7a1a590
Merge pull request #321 from abrain/renovate/yoast-phpunit-polyfills-2.x
abrain Aug 18, 2024
88e0333
Merge branch 'develop' into feature/number-in-quickedit
abrain Aug 18, 2024
84d1b01
chore(deps): lock file maintenance
renovate-bot Aug 19, 2024
fa1b6ae
Merge pull request #327 from abrain/renovate/lock-file-maintenance
abrain Aug 19, 2024
f0c53e2
chore: Update badges in README
abrain Aug 24, 2024
68eb39e
Make phpcs stricter and fix issues
abrain Aug 24, 2024
d07457d
Add more generic PHP rules to phpcs
abrain Aug 24, 2024
7a302f0
Show phpcs issues in Pull Requests
abrain Aug 24, 2024
c961fa5
Update composer.lock file
abrain Aug 24, 2024
318e56c
Fix CI workflow
abrain Aug 24, 2024
9b97f1c
Merge pull request #329 from abrain/phpcs
abrain Aug 24, 2024
440ca55
chore(deps): update dependency friendsofphp/php-cs-fixer to v3.63.2
renovate-bot Aug 28, 2024
5e600e0
Merge pull request #330 from abrain/renovate/linters
abrain Aug 28, 2024
463fd73
chore(deps): update dependency friendsofphp/php-cs-fixer to v3.64.0
renovate-bot Aug 30, 2024
9ca06ab
Merge remote-tracking branch 'origin/renovate/linters' into develop
abrain Sep 1, 2024
47541df
chore(deps): update mariadb:11.5.2 docker digest to 4066f2d
renovate-bot Sep 17, 2024
51a4166
chore(deps): update dependency phpunit/phpunit to v9.6.21
renovate-bot Sep 19, 2024
efd3741
fix(import): Show details for import error #333
abrain Sep 26, 2024
2c4c88a
Merge remote-tracking branch 'origin/renovate/test-packages' into dev…
abrain Sep 27, 2024
92a27a8
Merge remote-tracking branch 'origin/renovate/mariadb-11.5.2' into de…
abrain Sep 27, 2024
73174f4
chore(deps): update dependency yoast/phpunit-polyfills to v2.0.2
renovate-bot Sep 27, 2024
0140a1e
test: Add missing test for ImportException
abrain Sep 27, 2024
0f79f16
Merge branch 'import-error-details' into develop
abrain Sep 27, 2024
c332b57
refactor(import): Introduce general admin page
abrain Sep 27, 2024
c21cf93
refactor(export): Switch export tool to generic admin page
abrain Sep 27, 2024
aebd70f
chore(deps): update codecov/codecov-action action to v4.6.0
renovate-bot Oct 1, 2024
7cb3b68
Merge branch 'renovate/codecov-codecov-action-4.x' into develop
abrain Oct 23, 2024
99e93d7
Merge branch 'develop' into renovate/yoast-phpunit-polyfills-2.x
abrain Oct 23, 2024
4bb8a2e
Merge branch 'renovate/yoast-phpunit-polyfills-2.x' into develop
abrain Oct 23, 2024
cb53784
chore(deps): update mariadb:11.5.2 docker digest to 4a1de8f
renovate-bot Oct 16, 2024
ade1ac1
Merge pull request #341 from abrain/renovate/mariadb-11.5.2
abrain Oct 23, 2024
e23f25f
Update continuous-integration.yml
abrain Oct 23, 2024
8faf868
Merge pull request #345 from abrain/specify-action-versions
abrain Oct 23, 2024
d04680b
chore(deps): update actions/cache action to v4.1.2
renovate-bot Oct 23, 2024
926abfa
Merge pull request #346 from abrain/renovate/actions-cache-4.x
abrain Oct 24, 2024
a863874
chore(deps): update actions/checkout action to v4.2.2
renovate-bot Oct 23, 2024
28a55d6
Merge pull request #347 from abrain/renovate/actions-checkout-4.x
abrain Oct 24, 2024
c6de0e2
chore(deps): update dependency brain/monkey to v2.6.2
renovate-bot Oct 23, 2024
b4bbe59
Merge pull request #344 from abrain/renovate/brain-monkey-2.x
abrain Oct 24, 2024
2256551
Merge branch 'develop' into feature/number-in-quickedit
abrain Oct 24, 2024
0004600
Move functions out of constructor
abrain Oct 24, 2024
b998ff4
Move the hook registration into the respective classes
abrain Oct 24, 2024
b124f5b
Merge branch 'develop' into admin-page
abrain Oct 24, 2024
6116904
Merge pull request #348 from abrain/admin-page
abrain Oct 24, 2024
cff50da
Merge branch 'develop' into admin-loading
abrain Oct 24, 2024
3c972cc
Add test for admin initializer
abrain Oct 24, 2024
0e0e422
Add more tests
abrain Oct 25, 2024
0ba9560
Move subpage initialization out of the constructor
abrain Oct 25, 2024
eac566b
Merge pull request #349 from abrain/admin-loading
abrain Oct 25, 2024
aee349f
Merge branch 'develop' into feature/number-in-quickedit
abrain Oct 25, 2024
a5c639e
Add more tests
abrain Oct 25, 2024
f5d3eb5
Omit the report number from bulk edit
abrain Oct 25, 2024
81efe92
Merge pull request #258 from abrain/feature/number-in-quickedit
abrain Oct 25, 2024
7a7427d
Show multiple report numbers as range
abrain Oct 25, 2024
3fabf9a
Add separate column for report list
abrain Oct 27, 2024
c4f604f
Merge pull request #350 from abrain/feature/283-list-number-ranges
abrain Oct 27, 2024
5106e41
Make taxonomies available in Elementor
abrain Oct 29, 2024
d7a0acd
Merge pull request #352 from abrain/taxonomies-in-elementor
abrain Oct 29, 2024
0465553
Add comment support
abrain Oct 31, 2024
f07ddeb
Merge pull request #355 from abrain/142-comments
abrain Oct 31, 2024
9e93ec4
Archive changelog for 1.10.x
abrain Oct 31, 2024
a5335e8
Add changelog
abrain Oct 31, 2024
013e937
Bump version
abrain Nov 1, 2024
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
26 changes: 16 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # 2.31.1
with:
php-version: '8.3'
coverage: none
tools: cs2pr

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand All @@ -38,7 +39,12 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Check style and compatibility
run: composer exec phpcs
id: phpcs
run: composer exec phpcs -- --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml

test-latest:
runs-on: ubuntu-latest
Expand All @@ -47,7 +53,7 @@ jobs:

services:
mysql:
image: mariadb:11.5.2@sha256:4b812bbd9a025569fbe5a7a70e4a3cd3af53aa36621fecb1c2e108af2113450a
image: mariadb:11.5.2@sha256:4a1de8fa2a929944373d7421105500ff6f889ce90dcb883fbb2fdb070e4d427e
env:
MARIADB_USER: wptestuser
MARIADB_PASSWORD: wptestpass
Expand All @@ -59,7 +65,7 @@ jobs:
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # 2.31.1
Expand All @@ -70,7 +76,7 @@ jobs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -99,7 +105,7 @@ jobs:
${{github.workspace}}/build/logs/clover-integration.xml:clover

- name: Upload code coverage to Codecov (unit)
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -108,7 +114,7 @@ jobs:
flags: unit

- name: Upload code coverage to Codecov (integration)
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -124,7 +130,7 @@ jobs:

services:
mysql:
image: mariadb:11.5.2@sha256:4b812bbd9a025569fbe5a7a70e4a3cd3af53aa36621fecb1c2e108af2113450a
image: mariadb:11.5.2@sha256:4a1de8fa2a929944373d7421105500ff6f889ce90dcb883fbb2fdb070e4d427e
env:
MARIADB_USER: wptestuser
MARIADB_PASSWORD: wptestpass
Expand All @@ -136,7 +142,7 @@ jobs:
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
id: setup-minimum-php
Expand Down
67 changes: 67 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
<exclude name="Generic.Files.LineLength"/>
</rule>

<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<severity>5</severity>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<severity>5</severity>
</rule>
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>

<!-- For help in understanding these custom sniff properties:
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_wp_version" value="5.6"/>
Expand All @@ -36,6 +44,12 @@
</property>
</properties>
</rule>
<rule ref="WordPress.WP.I18n.MissingTranslatorsComment">
<type>error</type>
</rule>
<rule ref="WordPress.WP.I18n.TranslatorsCommentWrongStyle">
<type>error</type>
</rule>

<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>tests/</exclude-pattern>
Expand All @@ -46,4 +60,57 @@
</property>
</properties>
</rule>

<rule ref="Modernize.FunctionCalls.Dirname.Nested"/>

<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.ForbiddenFunctions"/>
<rule ref="Generic.PHP.Syntax"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="allowMultiline" value="true"/>
</properties>
</rule>
<rule ref="Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<!-- Allow for callback functions which may not need all parameters passed. -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed"/>
<!-- Allow for functions in extended classes/implemented interfaces. -->
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassAfterLastUsed"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterface"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceAfterLastUsed"/>
</rule>

<rule ref="Squiz.Classes.SelfMemberReference.NotUsed"/>
<rule ref="Squiz.Functions.FunctionDuplicateArgument"/>
<rule ref="Squiz.Operators.IncrementDecrementUsage"/>
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
<rule ref="Squiz.PHP.CommentedOutCode">
<properties>
<property name="maxPercentage" value="40"/>
</properties>
</rule>
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
<rule ref="Squiz.PHP.NonExecutableCode"/>

<rule ref="Universal.Arrays.DuplicateArrayKey"/>
<rule ref="Universal.CodeAnalysis.ConstructorDestructorReturn"/>
<rule ref="Universal.CodeAnalysis.ForeachUniqueAssignment"/>
<rule ref="Universal.CodeAnalysis.NoDoubleNegative"/>
<rule ref="Universal.CodeAnalysis.NoEchoSprintf"/>
<rule ref="Universal.CodeAnalysis.StaticInFinalClass"/>
<rule ref="Universal.ControlStructures.DisallowLonelyIf"/>
<rule ref="Universal.Files.SeparateFunctionsFromOO"/>
</ruleset>
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
![Wordpress Plugin: Tested WP Version](https://img.shields.io/wordpress/plugin/tested/einsatzverwaltung.svg)
![Wordpress Plugin Active Installs](https://img.shields.io/wordpress/plugin/installs/einsatzverwaltung.svg)
[![Wordpress Plugin Rating](https://img.shields.io/wordpress/plugin/rating/einsatzverwaltung.svg)](https://wordpress.org/support/plugin/einsatzverwaltung/reviews/)
[![Build Status](https://drone.abrain.dev/api/badges/abrain/einsatzverwaltung/status.svg?ref=refs/heads/develop)](https://drone.abrain.dev/abrain/einsatzverwaltung)
[![Continuous Integration](https://github.com/abrain/einsatzverwaltung/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/abrain/einsatzverwaltung/actions/workflows/continuous-integration.yml)
[![codecov](https://codecov.io/gh/abrain/einsatzverwaltung/graph/badge.svg?token=JNX4H0TMQX)](https://codecov.io/gh/abrain/einsatzverwaltung)

Dieses Plugin f&uuml;gt WordPress eine neue Beitragsart "Einsatzbericht" hinzu. Diese Einsatzberichte werden wie gew&ouml;hnliche WordPress-Beitr&auml;ge erstellt, es k&ouml;nnen aber zus&auml;tzliche Informationen wie Alarmzeit, Art des Einsatzes, eingesetzte Fahrzeuge und vieles mehr angegeben werden. Zudem stellt das Plugin verschiedene M&ouml;glichkeiten zur Darstellung der Einsatzberichte zur Verf&uuml;gung.

Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@
"integration-test": "XDEBUG_MODE=coverage phpunit -c phpunit-integration.xml"
},
"require": {
"php": ">=7.1.0"
"php": ">=7.1.0",
"ext-json": "*"
},
"require-dev": {
"phpmd/phpmd": "2.15.0",
"brain/monkey": "2.6.1",
"friendsofphp/php-cs-fixer": "3.62.0",
"brain/monkey": "2.6.2",
"friendsofphp/php-cs-fixer": "3.64.0",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "1.5.0",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "1.5.0",
"phpcompatibility/php-compatibility": "9.3.5",
"yoast/phpunit-polyfills": "1.1.1",
"yoast/phpunit-polyfills": "2.0.2",
"phpcompatibility/phpcompatibility-wp": "2.1.5",
"wp-coding-standards/wpcs": "3.1.0",
"phpunit/phpunit": "9.6.20"
"phpunit/phpunit": "9.6.21"
}
}
Loading
Loading