Comments (4)
Okay, I introduced some bugs, but they should now be fixed. Some errors remain or might be in the current version:
- event for
beforeFolderCopied
had a bug, which did not calculate the quota correctly (this should be a bug in the current version too), but was easily fixed - event for
beforeFileReplaced
shows an exception instead of the error message, but works otherwise - event for
afterFileMoved
did not update the source quota, fixed in my fork, but remains in the current version - event for
afterFolderCopied
does not update the quota and I have no idea why
Some events I am not sure how to test, as they imho should not change the quota (moveFolder, rename).
I hope this is helpful
from typo3-fal-quota.
Not sure why I have not seen this issue before, but I created a fork where I switched to EventDispatcher. I mostly copied and reorganized the code. There are a few things which should probably change (e.g. the ResourceStorageException
namespace) and I am open to suggestions. I only tested some basic functions, but it seems to work.
I did not change the NotifyCommand
as I do not know why you are calling the Dispatcher
there (I have never worked with signals and slots)
The switch from Command.php to Service.yaml should be easy as you are already using symphony commands. You need just add something like the following to the Service.yaml:
services:
Mehrwert\FalQuota\Command\NotifyCommand:
tags:
- name: 'console.command'
command: 'falquota:notifycommand'
description: 'notify users for quota'
hidden: false
schedulable: true
Mehrwert\FalQuota\Command\UpdateCommand:
tags:
- name: 'console.command'
command: 'falquota:updatequota'
description: 'update quota'
hidden: false
schedulable: true
The commands should now be listed as part as "Execute console command" in the scheduler
from typo3-fal-quota.
The bugs mentioned above should be fixed. From my perspective this is done and I am already using it.
Should I create a pull request or what would you prefer?
from typo3-fal-quota.
Hi @someplace53, thanks for your effort! Please feel free to create a PR.
from typo3-fal-quota.
Related Issues (20)
- Use uniform unit conversion and mathematical operations
- Optimize table view
- Recalculate quota limits when storage is copied
- Possible issue with some quota values
- Make BE module available for user,group
- Provide drud/ddev environment
- Email notification is not send if configured warning threshold is exceeded
- Typo3-Exception in case hard limit exceeds available space
- Extension does not define its extension key in composer.json
- Provide Signal/Slot to extend warning email recipient list
- Provide localization for email subject and body
- Move update of current_usage into separate Command
- Notify command does not seem to support multiple recipients despite using addAdditionalRecipients slot
- CSS in module-icon.svg interferes with other extension icons
- Backend View improvements
- Compatibility w/ TYPO3 v12.4-LTS
- Update DDEV config to support v1.22
- Compatibility w/ PHP 8.3 HOT 1
- Deprecated property access HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typo3-fal-quota.