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

META 9.0 cleanup todos; commented code; commented/skipped tests; check php inline docs; #4478

Open
mhsdesign opened this issue Sep 3, 2023 · 5 comments

Comments

@mhsdesign
Copy link
Member

mhsdesign commented Sep 3, 2023

@mhsdesign
Copy link
Member Author

mhsdesign commented Sep 7, 2023

For example the code says here

https://github.com/neos/neos-development-collection/blame/9.0/Neos.ContentRepository.Core/Classes/Feature/NodeCreation/Command/CreateNodeAggregateWithNode.php#L64

"CREATE METHODS FÜR ALLE COMMANDS"

should we do this actually?

-> solved via #4489

@mhsdesign mhsdesign added the EPIC label Sep 23, 2023
@mhsdesign mhsdesign changed the title META 9.0 Check codebase for critical todos & Reenable tests & Check inline docs META 9.0 cleanup todos; commented code; commented/skipped tests; check php inline docs; Nov 13, 2023
@mhsdesign
Copy link
Member Author

Another good one:

* If you need to fetch the root node for this site, use the content
* context, do not use the NodeDataRepository!
ha you wish

@mhsdesign
Copy link
Member Author

mhsdesign commented Feb 2, 2024

@pKallert noted that we match unused methods

Unneeded permissions from deprecated methods: Is there a way to do an automated check? Old permissions @Paula Kallert

-> solved via #5424

@mhsdesign
Copy link
Member Author

mhsdesign commented Jan 7, 2025

Regarding the method privileges and aop topic. An investigation shows that following classes are part of a method() match but not part of $this->reflectionService->getAllClassNames() meaning they cannot be proxied.

The 'Imagine' things will be handled via neos/imagine#24

All others have to be tackled here or in the Neos ui.

Imagine\Image\Palette\CMYK
Imagine\Image\Palette\Grayscale
Imagine\Image\Palette\RGB
Neos\ContentRepository\ViewHelpers\Widget\Controller\PaginateController
Neos\Neos\Service\Controller\NodeController
Neos\Neos\Ui\Controller\LoginController
Neos\Neos\ViewHelpers\Widget\Controller\LinkRepositoryController
Full list

.*
Flowpack\Neos\FrontendLogin\Controller\AuthenticationController
Flowpack\Neos\Matomo\Controller\Module\MatomoController
Imagine\Image\Palette\CMYK
Imagine\Image\Palette\Grayscale
Imagine\Image\Palette\RGB
Neos\ContentRepository\ViewHelpers\Widget\Controller\PaginateController
Neos\Flow\I18n\Translator
Neos\Flow\Persistence\AbstractPersistenceManager
Neos\Flow\Security\Authentication\Controller\AbstractAuthenticationController
Neos\Flow\Security\Authorization\PrivilegeManager
Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege
Neos\FluidAdaptor\ViewHelpers\Widget\Controller\AutocompleteController
Neos\FluidAdaptor\ViewHelpers\Widget\Controller\PaginateController
Neos\Fusion\View\FusionView
Neos\Media\Browser\Controller\(Asset|Image)Controller
Neos\Media\Browser\Controller\AssetCollectionController
Neos\Media\Browser\Controller\AssetProxyController
Neos\Media\Browser\Controller\ImageVariantController
Neos\Media\Browser\Controller\TagController
Neos\Media\Browser\Controller\UsageController
Neos\Media\Browser\ViewHelpers\Controller\(Paginate)Controller
Neos\Media\Controller\ThumbnailController
Neos\Neos\Controller\Backend\BackendController
Neos\Neos\Controller\Backend\ContentController
Neos\Neos\Controller\Backend\ImpersonateController
Neos\Neos\Controller\Backend\ModuleController
Neos\Neos\Controller\Backend\SchemaController
Neos\Neos\Controller\Backend\SettingsController
Neos\Neos\Controller\Frontend\NodeController
Neos\Neos\Controller\LoginController
Neos\Neos\Controller\Module\AbstractModuleController
Neos\Neos\Controller\Module\AdministrationController
Neos\Neos\Controller\Module\Administration\ConfigurationController
Neos\Neos\Controller\Module\Administration\DimensionController
Neos\Neos\Controller\Module\Administration\PackagesController
Neos\Neos\Controller\Module\Administration\SitesController
Neos\Neos\Controller\Module\Administration\UsersController
Neos\Neos\Controller\Module\ManagementController
Neos\Neos\Controller\Module\UserController
Neos\Neos\Controller\Module\User\UserSettingsController
Neos\Neos\Controller\Service\AssetProxiesController
Neos\Neos\Controller\Service\AssetsController
Neos\Neos\Controller\Service\ContentDimensionsController
Neos\Neos\Controller\Service\NodesController
Neos\Neos\Domain\Repository\DomainRepository
Neos\Neos\Domain\Repository\SiteRepository
Neos\Neos\Service\Controller\AbstractServiceController
Neos\Neos\Service\Controller\DataSourceController
Neos\Neos\Service\Controller\NodeController
Neos\Neos\Service\Controller\UserPreferenceController
Neos\Neos\Ui\Controller\BackendController
Neos\Neos\Ui\Controller\BackendServiceController
Neos\Neos\Ui\Controller\LoginController
Neos\Neos\ViewHelpers\Widget\Controller\LinkRepositoryController
Neos\RedirectHandler\Ui\Controller\ModuleController
Neos\Setup\Controller\RuntimeHealthController
Neos\TestNodeTypes\Application\.*\Controller\.*Controller
Neos\Workspace\Ui\Controller\WorkspaceController

all other designators dont seem to use outdated expressions

classAnnotatedWith
class
methodAnnotatedWith
within
filter
setting

and we actually get rid of ALL usages of evaluate() with Neos 9 !!!

mhsdesign added a commit to mhsdesign/neos-development-collection that referenced this issue Jan 7, 2025
…troller`

This legacy service controller was removed see
neos#5423

But as identified here there is still a method privilege to be adjusted:
neos#4478 (comment)
mhsdesign added a commit to mhsdesign/neos-development-collection that referenced this issue Jan 7, 2025
The cr paginate widget was removed see
neos#5425

But as identified here there is still a method privilege to be adjusted:
neos#4478 (comment)

Further long ago this change seems to contain a hiccup introducing a policy for a `LinkRepositoryController` which was NEVER part of the codebase though:

neos@f5053cc#diff-818aacc12f1dbf0bc391a8711ae5a3d56cceb29494b5997dd2a43d793b6dd44eR8

Thus this line was adjusted further.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants