-
-
Notifications
You must be signed in to change notification settings - Fork 398
[WIP] v3 release cleanup #1326
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: develop
Are you sure you want to change the base?
[WIP] v3 release cleanup #1326
Conversation
3aa5a49 to
e8da83f
Compare
…-code # Conflicts: # src/N98/Magento/Command/Customer/ListCommand.php
|
From #1424 (comment)
Working on it! Maybe someone gimme some boost 🤣 |
|
@sreichel oh wow, that is be a huge cleanup here. |
|
@cmuench phpstan level 9 is tough. Also try to add some better interaction (and validation) for missinng/wrong arguments. Takes me some days. |
That's hard. Magento 2 is tested with level 3. |
|
@cmuench can you please set it to draft status? I think its better to update the commands in small chunks, to make reviews easier. Leave this as personal checklist. |
|
@sprankhub PR coming next week ... Todo: fix some small issues for PHPStan L7 and remove/update some tests that have changes. |
Final tests:
simplified code for list commands (added a new interface)(Updated list commands #1458 may added later)simplified code for config toggle commandsprepared for symfony 6.1 (php >8.1)initMagentofor DB-list commands?use symfony/filesystemadd shortcuts to options@TODO(sr)... two supressed PHPstan errors ...Available commands:
completionDump the shell completion scripthelpDisplay help for a commandinstallInstall magentolistList commandsopen-browserOpen current project in browser (experimental)scriptRuns multiple n98-magerun commands- Removed with symfony3?shellRuns n98-magerun as shelluninstallUninstall magento (drops database and empties current folder or folder set via installationFolder)admin ✔️
admin:notificationsToggles admin notificationsadmin:user:change-passwordChanges the password of a adminhtml user.admin:user:change-statusSet active status of an adminhtml user. If no option is set the status will be toggled.admin:user:createCreate admin user.admin:user:deleteDelete the account of a adminhtml user.admin:user:listList admin users.cache ✔️
cache:cleanClean magento cachecache:dir:flushFlush (empty) Magento cache directorycache:disableDisables magento cachescache:enableEnables magento cachescache:flushFlush magento cache storagecache:listLists all magento cachescache:reportView inside the cachecache:viewPrints a cache entrycategory
category:create:dummyCreate a dummy categorycms ✔️
cms:block:listList all cms blockscms:block:toggleToggle a cms blockcomposer - removed
composer:diagnoseDiagnoses the system to identify common errors.composer:initCreates a basic composer.json file in current directory.composer:install[i] Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.composer:requireAdds required packages to your composer.json and installs them.composer:searchSearches for packages.composer:update[u|upgrade] Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.composer:validateValidates a composer.json and composer.lock.config ✔️
config:deleteDeletes a store config itemconfig:dumpDump merged xml configconfig:getGet a core config itemconfig:searchSearch system configuration descriptions.config:setSet a core config itemcustomer ✔️
customer:change-passwordChanges the password of a customer.customer:createCreates a new customer/user for shop frontend.customer:create:dummyGenerate dummy customers. You can specify a count and a locale.customer:deleteDelete Customer/scustomer:infoLoads basic customer info by email address.customer:listLists customersdb
db:console[mysql-client] Opens mysql client by database config from local.xmldb:createCreate currently configured databasedb:dropDrop current databasedb:dumpDumps database with mysqldump cli clientdb:importImports database with mysql cli client according to database defined in local.xmldb:infoDumps database informationsdb:maintain:check-tablesCheck database tablesdb:queryExecutes an SQL query on the database defined in local.xmldb:statusShows important server status information or custom selected status valuesdb:variablesShows important variables or custom selecteddesign ✔️
design:demo-noticeToggles demo store notice for a store viewdev
dev:class:lookupResolves a grouped class namedev:code:model:methodCode annotations: Reads the columns from a table and writes the getter and setter methods into the class file for @methods.dev:consoleOpens PHP interactive shell with initialized Mage::app() (Experimental)dev:email-template:usageDisplay database transactional email template usagedev:ide:phpstorm:metaGenerates meta data file for PhpStorm auto completion (default version : 2019.1+)dev:logToggle development log (system.log, exception.log)dev:log:dbTurn on/off database query loggingdev:log:sizeGet size of log filedev:merge-cssToggles CSS Mergingdev:merge-jsToggles JS Mergingdev:module:createCreate and register a new magento module.dev:module:dependencies:fromShow list of modules which depend on %s moduledev:module:dependencies:onShow list of modules which given module depends ondev:module:disableDisable a module or all modules in codePooldev:module:enableEnable a module or all modules in codePooldev:module:listList all installed modulesdev:module:observer:listLists all registered observersdev:module:rewrite:conflictsLists all magento rewrite conflictsdev:module:rewrite:listLists all magento rewritesdev:module:updateUpdate a Magento module.dev:profilerToggles profiler for debuggingdev:report:countGet count of report filesdev:setup:script:attributeCreates attribute script for a given attribute codedev:symlinksToggle allow symlinks settingdev:template-hintsToggles template hintsdev:template-hints-blocksToggles template hints block namesdev:theme:duplicatesFind duplicate files (templates, layout, locale, etc.) between two themes.dev:theme:infoDisplays settings of current design on particular store viewdev:theme:listLists all available themesdev:translate:adminToggle inline translation tool for admindev:translate:exportExport inline translationsdev:translate:setAdds a translation to core_translate table. Globally for localedev:translate:shopToggle inline translation tool for shopeav ✔️
eav:attribute:create-dummy-valuesCreate a dummy values for dropdown attributeseav:attribute:listLists all EAV attributeseav:attribute:removeRemoves attribute for a given attribute codeeav:attribute:viewView informations about an EAV attributeindex ✔️
index:listLists all magento indexesindex:reindexReindex a magento index by codeindex:reindex:allReindex all magento indexeslocal-config ✔️
local-config:generateGenerates local.xml configmedia ✔️
media:cache:image:clearClears image cachemedia:cache:jscss:clearClears JS/CSS cachemedia:dumpCreates an archive with content of media folder.script ✔️
script:repo:listLists all scripts in repositoryscript:repo:runRun script from repositorysys
sys:checkChecks Magento Systemsys:cron:historyLast executed cronjobs with status.sys:cron:listLists all cronjobssys:cron:runRuns a cronjob by job codesys:infoPrints infos about the current magento system.sys:maintenanceToggles maintenance mode.sys:modules:listList all installed modulessys:setup:change-versionChange module setup resource versionsys:setup:compare-versionsCompare module version with core_resource table.sys:setup:incrementalList new setup scripts to run, then runs one scriptsys:setup:removeRemove module setup resource entrysys:setup:runRuns all new setup scripts.sys:store:config:base-url:listLists all base urlssys:store:listLists all installed store-viewssys:url:listGet all urls.sys:website:listLists all websitesRemoved EE commands: ✔️
admin:user:lockEnforce a lock on an admin user account. Specify the username and an optional lifetime parameter in seconds.admin:user:lockdownLock every admin user account for the optionally specified lifetime (in days). If not provided, defaults to one month.admin:user:unlockRelease lock on admin user for one or all userscms:banner:toggleToggle a banner (Enterprise only)cms:page:publishPublish a CMS page revision (Enterprise only)giftcard:pool:generateGenerate giftcard pool)giftcard:createCreate a gift card with a specified amountgiftcard:infoGet gift card account information by codegiftcard:removeRemove a gift card account by codeindex:list:mviewLists all magento mview indexesindex:reindex:mviewReindex a magento index by code using the materialised view functionality