Commit graph

13 commits

Author SHA1 Message Date
a9f3f108e3
BREAKING: Change of vendor/namespace (#43)
The vendor was renamed from `wrm` to `werkraummedia`.
And the namespace vendor was renamed from `Wrm` to `WerkraumMedia`.

That way all references to PHP classes as well as the package name
itself need to be adjusted.
2023-11-09 10:27:43 +01:00
ab9c3e0c4e Fix broken remove past data
Past data is now removed again.
A test ensures the functionality.
Data is no longer marked as deleted but is actually deleted.

Relates: #9543
2021-12-20 09:45:25 +01:00
6aa4681cb9 Delete files which were referenced by events objects
Adjust existing code base to not use hardcoded file path.
Instead use info from database and check all files which have references
to event objects.

Also add test to cover feature.
2021-12-16 14:07:32 +01:00
1f769939b4 Extend cleanup
Properly cleanup system.

Delete further records when deleting everything.
Also respect further records when purging old entries.

Respect:

* sys_category_record_mm
* sys_file_reference
* sys_file_metadata
2021-09-07 12:19:09 +02:00
f618536ff9 Add PHPStan
In order to static analyze code and prevent bugs when changing code.
Fix issues in most of the files.
2021-09-07 11:07:55 +02:00
cbe4eda380 Add CI
* Add first basic CI with defaults.
* Add ecs for coding guideline.
* Fix invalid xliff files.
2021-09-07 09:26:59 +02:00
208c0cfbfa Refactor code
Split large code base into separate classes.
Use Service as a controller, in order to define tasks to execute.
2019-09-19 12:11:21 +02:00
412b59d77f WIP Remove files
Remove files from sys_file db table and filesystem.
Add this to delete all, in order to delete all matching files.
But also add to past cleanup, to only remove files which do no longer
have relations. This last part was not tested, due to missing testing
environment.
2019-09-19 10:47:37 +02:00
8ed5bd9970 Add command to remove all past dates and events
It will search for all dates within the past and remove them. Afterwards
all events with no dates are searched and removed.

As DataHandler is used for deletion of events, there is already logging
within TYPO3, as well as recursive deletion for sys_file_references.

To speedup for large data sets, deletion of dates is done without
DataHandler.
2019-09-19 09:09:42 +02:00
ca4d7d3a01 Add basic cleanup command
Allows to remove all existing records regarding events.
It will search for all pages providing either organizer or events, and
will delete both types of records.

As DataHandler is used for deletion, there is already logging within
TYPO3, as well as recursive deletion for dates and sys_file_references.

To speedup for large data sets, truncate organizer and dates, as they
don't have recursive deletions, e.g. to sys_file_references. Also add
keys to database.
2019-09-18 18:04:29 +02:00
Dirk
662b088daa Refactoring Import Service 2019-08-13 11:17:34 +02:00
Dirk
a16b5d4ef7 Refactored the import command 2019-08-12 15:49:52 +02:00
Dirk
9ebe9a4751 Refactoring Imprt Command 2019-08-12 07:43:37 +02:00