-
Notifications
You must be signed in to change notification settings - Fork 30
[TASK] Make the plugin a CType
#1811
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
base: main
Are you sure you want to change the base?
Conversation
| </trans-unit> | ||
| <trans-unit id="plugin.tea_index.title"> | ||
| <source>Tea Index</source> | ||
| <target>Tea Index</target> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
English: Tea list
German: Teelist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| <target>Tee-Einzelansicht</target> | ||
| </trans-unit> | ||
| <trans-unit id="plugin.tea_frontend_editor" approved="yes"> | ||
| <trans-unit id="plugin.tea_front_end_editor" approved="yes"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean that the label was missing before, but now it seems to be there. I'll change it.
| @@ -0,0 +1,16 @@ | |||
| mod.wizards.newContentElement.wizardItems.ext-tea { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move adding the wizard to a separate, later PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i`ll create a task for that. #1830
| use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
|
|
||
| #[UpgradeWizard('teaListTypeToCTypeUpdate')] | ||
| final class ListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This upgrade wizard needs functional tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we need tests for the copied base class. (When we copy code, it becomes our responsibility, and it then falls under the same code quality standards as the rest of our code.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliverklee I added some functional tests for the Upgrade Wizard.
As for the copied base class: I don't want to put so much work into a class that I only need for one version. Is there a solution that would suit both you and me? Otherwise, I suggest opening a separate PR for this issue.
| message: 'Use PSR-7 API instead' | ||
|
|
||
| excludePaths: | ||
| # We need this Class only for V12. So we exclude it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we should allow PHPStan to scan it. It should be possible to run the upgrade wizard in V13 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliverklee in V13 this Class is in cms-install. So we don't need the Class from Lina. For that reason I decided to exclude it from PHPStan.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't exclude the upgrade wizard from PHPStan. Otherwise, if it is not scanned, we cannot see any warnings in the class.
| message: 'Use PSR-7 API instead' | ||
|
|
||
| excludePaths: | ||
| # We need this Class only for V12. So we exclude it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't exclude the upgrade wizard from PHPStan. Otherwise, if it is not scanned, we cannot see any warnings in the class.
| use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
|
|
||
| #[UpgradeWizard('teaListTypeToCTypeUpdate')] | ||
| final class ListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we need tests for the copied base class. (When we copy code, it becomes our responsibility, and it then falls under the same code quality standards as the rest of our code.)
23af684 to
14eba5a
Compare
a5d21e9 to
4b130dc
Compare
Pull Request Test Coverage Report for Build 19924290557Details
💛 - Coveralls |
Fixes #1332