Skip to content

Clean up and organize the package system#4947

Merged
TimWolla merged 25 commits intomasterfrom
package-cleanup
Sep 14, 2022
Merged

Clean up and organize the package system#4947
TimWolla merged 25 commits intomasterfrom
package-cleanup

Conversation

@TimWolla
Copy link
Copy Markdown
Member

@TimWolla TimWolla commented Aug 10, 2022

This PR is likely best reviewed using a combination of "look at each commit to understand the evaluation" and "look at the 'Files Changes' tab to get the full picture".

@TimWolla TimWolla force-pushed the package-cleanup branch 3 times, most recently from 49c846f to 8dcc882 Compare August 10, 2022 10:36
@TimWolla TimWolla force-pushed the package-cleanup branch 10 times, most recently from ce84537 to 63cf4da Compare September 5, 2022 08:54
@TimWolla TimWolla force-pushed the package-cleanup branch 2 times, most recently from 9749f7c to 0bc43d0 Compare September 14, 2022 10:44
…allPackageAction

Inheriting from a barely related class is intransparent. This is evident by the
need for `PhpUndefinedMethodInspection` in `stepUninstall()`.
AbstractDialogAction is effectively trivial, but its implicit logic makes the
derived actions much harder to understand.
This is not used during WCFSetup, so the caveat does not apply.
This was introduced with the merge in the previous commit.
…ation

This is expected to be a noop, because an uninstallation won't create any new
fields.
This greatly reduces the size of the `if(!PACKAGE_ID)`.
…tion

These were added to ClearCache command in the previous commit.
…stall event

This is a more logical position, with only clean-up happening after the event.
It's as if `match()` was developed for this exact use case. `match()` will
automatically throw if no arm matches, allowing for the removal of that
questionable `exit` there.
… in IndexPage

This method is only called there, so we can easily inline it to keep
PackageInstallationDispatcher clean.
…allForm

This method is only called there, so we can easily inline it to keep
PackageInstallationDispatcher clean. This is especially useful, because the
method directly calls redirect + exit which has no business of existing outside
of a controller.
@TimWolla TimWolla marked this pull request as ready for review September 14, 2022 12:56
@TimWolla TimWolla requested a review from dtdesign September 14, 2022 12:56
Copy link
Copy Markdown
Member

@dtdesign dtdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not spot any obvious issues.

@TimWolla TimWolla merged commit d27437f into master Sep 14, 2022
@TimWolla TimWolla deleted the package-cleanup branch September 14, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants