Commit graph

111 commits

Author SHA1 Message Date
39529be49a Allow to use expressions with PHP 8.x
Introduce new traverse function taken from TYPO3 TypoScript conditions.

Relates: #86
2022-09-16 14:45:54 +02:00
5b4a379978 Add strict_types and move namespace definition
To follow my new conventions.
2022-09-16 14:11:58 +02:00
bcd94f9826 Release 1.2.0 2022-08-05 21:42:57 +02:00
Kay Strobach
8b4a7206ee [FEATURE] Ignore UptimeRobot and Pingdom requests for statistics 2022-08-05 21:17:56 +02:00
e1f3613bb2 Trigger CI on pull_request
Foreign contributions did not trigger the CI.
This change will trigger CI also on foreign contributions (PRs).
2022-08-05 21:11:42 +02:00
3b0fb209c2 Do not create error in Symfony Expression Language on missing User Agent 2022-04-14 10:32:04 +02:00
7f63ae8262 Satisfy phpstan for now 2022-04-14 10:26:07 +02:00
d1819ee528 Ignore newly reported phpstan issues from new doctrine version 2022-02-02 13:28:02 +01:00
6cef293298 Fix broken performance of list module
TYPO3 queries information of translations.
The fix adds database indices which are also applied for tt_content
by TYPO3 itself.
This fixes slow loading times of the list module.
2022-02-02 13:28:02 +01:00
c1a23aa538 Allow installation of composer-require-checker again
Require compatible version, no need to be to fancy.
The given version is compatible with same set of combinations.
We still ignore 7.3 as there is no compatible setup.
2022-01-06 08:36:28 +01:00
b7adf27475 Fix new PHPStan issues 2022-01-06 08:36:28 +01:00
2efe65c5b2 Support composer 2.2 new allow-plugins configuration
In order to install all necessary composer plugins which we already
trust.
2022-01-06 08:36:28 +01:00
456c86b492 Update PHPStan
PHPStan was released with first stable public version 1.x.
The version is updated together with extensions.

The new version finds new issues which are solved right away to not
break CI.
2022-01-06 08:10:02 +01:00
e55f1da281 Raise from TYPO3 11.4 to 11.5 2021-11-25 09:35:47 +01:00
17a844b857 Fix GitHub Actions CI
Set COMPOSER_TOKEN in each step, as this broke some when.
Also disable "coverage", to improve speed, inspired from EXT:tea.
Use "include" to remove duplicate jobs with different versions, inspired
from EXT:tea.
Remove caches as they were not properly configured. Maybe add them later
inspired from EXT:tea?!
2021-11-25 09:16:56 +01:00
5ca8721abb Ensure downgrade works in CI
Merge multiple composer steps into one to circumvent mixed up state.
Otherwise some versions might be locked, preventing downgrades.
Also should save bandwidth and time by only installing dependencies once.
2021-09-17 09:36:59 +02:00
85eab43131 Fix composer Could not authenticate against github.com on CI
See:
    * https://github.com/shivammathur/setup-php#composer-github-oauth
    * https://docs.github.com/en/actions/reference/authentication-in-a-workflow
2021-09-17 09:36:59 +02:00
337f0b1098 Use custom fork of typo3/testing-framework for now
This includes a bug fix to allow execution of functional tests.
The fix is already open as PR in the upstream repo.
2021-09-17 09:36:59 +02:00
8103025899 Support TYPO3 11.4 2021-09-17 09:36:59 +02:00
73e2ec0214 Add functional tests regarding actual frontend request tracking
Ensures pageview and recordview are tracked as expected.

Relates: #46
2021-08-16 11:18:32 +02:00
721b6e5a31 Support PHP 7.3
- Extend CI to test everything against PHP 7.3
- Update composer to allow installation with PHP 7.3
- Remove dependency checker, install loosely within CI to get compatible
  version with actual PHP version.
- Adjust CI to use PHP compatible MySQL versions.

Relates: #69
2021-08-11 12:15:57 +02:00
0d1366f386 Update sponsoring information 2021-08-03 12:49:52 +02:00
67c2d22f15 Fix performance issue of PageviewsPerDay widget
Issue a single query with native group by instead of x queries.

Resolves: #63
2021-08-03 12:04:55 +02:00
9624847b9a Raise version for extension manager
The next version will be 1.1.2, which already exists in changelog.
This needs to be reflected by ext_emconf.php.
2021-08-03 10:44:17 +02:00
e2a23c6455 Improve performance of widgets with large datasets
Provide database index for widgets which is used by widget queries to
fetch data way faster, e.g. 0.1 instead of > 5 seconds in one concrete
project.

Relates: #63
2021-08-03 10:41:01 +02:00
f3b4ae3c3b Raise from TYPO3 11.2 to 11.3
Only support latest public release of current TYPO3 dev releases.
2021-08-03 10:27:12 +02:00
50741e6531 Release 1.1.1
Add changelog entry.
Raise version number.
2021-06-02 06:53:02 +02:00
92e7795752 Mark extension as stable within extension manager
This extension is already stable.
It is used since a year in multiple production systems.
Don't provide a bad feeling to integrators and users.
2021-06-02 06:47:45 +02:00
ad97b6597f Add missing changelog for 1.1.0 2021-06-02 06:44:16 +02:00
9a4f71bce4 Allow copy of pages
Pages can not be copied by administrators as DataHandler will copy all
pages, including tx_tracking_* tables.
Those are not allowed on tables which will result in error messages.

A test is added to simulate the action and ensure it doesn't fail with
errors.

Results: #52
2021-06-02 06:25:27 +02:00
1c669f52c7 Remove --no-suggest from CI
This is no longer supported by composer V2.
2021-05-24 23:06:34 +02:00
adb73eeffc Switch to ECS for coding style
This allows configuration via PHP.
It also combines code sniffer and php cs fixer.

Used commands:

composer remove --dev squizlabs/php_codesniffer
composer req --dev symplify/easy-coding-standard
./vendor/bin/ecs --fix
2021-05-24 22:11:46 +02:00
165b110e01 Always use TestCase of testing framework
That way the framework can add extra logic like cleanup.
We don't have to worry about such things.
2021-05-19 22:39:22 +02:00
b6d1189f4d Add necessary transOrigPointerField
This is required by list module, As we define a languageField.
Might be a bug, but BackendUtility::translationCount() will fail if 2nd
field is missing.

Fixed in current TYPO3 master and therefore with v11.3,
see: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69180
2021-05-19 22:21:17 +02:00
3c10aa6d10 Support TYPO3 v11.2 and PHP 8.0 beside current v10.4 and 7.4. 2021-05-19 22:21:17 +02:00
a6a170b61e Increase version number for extension manager 2021-01-07 10:11:47 +01:00
3c996aca19 Add changelog and contributions 2021-01-07 10:00:38 +01:00
dfa75fb436 Fix broken CI due to unwanted PHP update
Force specific PHP version for all necessary CI steps.
2021-01-07 09:55:24 +01:00
eb3d14a784 Fix statement regarding production usage 2020-12-01 11:40:23 +01:00
443e042d82 Remove security checker
It will report old TYPO3 versions which we support, but don't require.
Therefore it does not provide a benefit but breaks builds.
The package is intended for projects, not libraries.
2020-12-01 11:23:23 +01:00
13cbd3c2a9 Use composer v1 in CI
Not all dev dependencies are v2 ready.

maglnet/composer-require-checker has a dependency to
ocramius/package-versions version which requires v1 composer API.
Once a newer version is required, we can use v2.
2020-12-01 11:23:23 +01:00
a642a0846d Add default and docs to not track preview
Preview is also active if a preview link is shared via EXT:workspace.
Those views should probably not be tracked, just like active backend
sessions.
2020-10-16 12:26:03 +02:00
ad690f4bc9 There is no need for allowTableOnStandardPages 2020-09-23 09:52:32 +02:00
6dccb84987 Add icons for extension
* Add Icons for extension itself.
* Add Icons for custom records.

Relates: #40
2020-09-23 09:52:22 +02:00
93353630b0 Execute tests with all supported PHP versions 2020-09-23 08:50:27 +02:00
9fe11b300c Extend dependency checker to TYPO3 specific files
Only autoloaded files will be checked by default.
TYPO3 has some additional files which should be scanned as well.
2020-09-16 09:13:29 +02:00
8ecc704cd9 Fetch XSD for xliff from official source 2020-09-16 09:09:58 +02:00
930903e39f Fix SQL query for pageviewsperpage widget
The existing query was not fully working as intended.
Also it did not work with proper MySQL sql_mode settings.

This is fixed by building a proper query which delivers expected and
deterministic results.

We now always have latest records first.

Also there is no need to fetch the sys_language_uid, as we only fetch
localized record if only one language is allowed. That way we can just
check configuration and use the configuration to do language overlay.

Also there was no need for an join, therefore query was reduced to
necessary stuff.

Relates:  #35
2020-08-13 10:11:45 +02:00
27e0623794 Fix SQL query for recordviews widget
The existing query was not fully working as intended.
Also it did not work with proper MySQL sql_mode settings.

This is fixed by building a proper query which delivers expected and
deterministic results.

We now always have latest records first.

Also there is no need to fetch the sys_language_uid, as we only fetch
localized record if only one language is allowed. That way we can just
check configuration and use the configuration to do language overlay.

Relates:  #35
2020-08-13 10:11:45 +02:00
8f755f79f2 Execute tests for MySQL in addition to existing sqlite 2020-08-13 10:11:45 +02:00