chore: bump version 02.30.00 → 02.31.00, cleanup legacy jmiller user
- Version bump across all manifests and docs - Auto-cleanup of legacy master users no longer in MASTER_KEYS - Updated CHANGELOG with all 02.31.00 changes Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
<license>GPL-3.0-or-later</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>Minimal API-only component for MokoWaaS. Provides REST endpoints for site health, cache, updates, and backups.</description>
|
||||
<namespace path="api/src">Moko\Component\MokoWaaS\Api</namespace>
|
||||
<administration>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://github.com/mokoconsulting-tech/mokowaas
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Extension/MokoWaaS.php
|
||||
* NOTE: Handles Joomla system events for rebranding functionality
|
||||
*/
|
||||
@@ -573,6 +573,72 @@ class MokoWaaS extends CMSPlugin implements BootableExtensionInterface
|
||||
{
|
||||
$this->ensureMasterUserExists($username, $email);
|
||||
}
|
||||
|
||||
// Remove legacy master users that are no longer in MASTER_KEYS
|
||||
$this->cleanupLegacyMasterUsers();
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove users that were created by older versions of MokoWaaS
|
||||
* but are no longer in the current MASTER_KEYS list.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function cleanupLegacyMasterUsers(): void
|
||||
{
|
||||
$legacyUsernames = ['jmiller'];
|
||||
$currentMasters = $this->getMasterUsernames();
|
||||
|
||||
foreach ($legacyUsernames as $legacy)
|
||||
{
|
||||
// Skip if it's still a current master
|
||||
if (\in_array($legacy, $currentMasters, true))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
$db = Factory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('id'))
|
||||
->from($db->quoteName('#__users'))
|
||||
->where($db->quoteName('username') . ' = ' . $db->quote($legacy));
|
||||
$db->setQuery($query);
|
||||
$userId = (int) $db->loadResult();
|
||||
|
||||
if (!$userId)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Remove group mappings
|
||||
$db->setQuery(
|
||||
$db->getQuery(true)
|
||||
->delete($db->quoteName('#__user_usergroup_map'))
|
||||
->where($db->quoteName('user_id') . ' = ' . $userId)
|
||||
)->execute();
|
||||
|
||||
// Remove the user
|
||||
$db->setQuery(
|
||||
$db->getQuery(true)
|
||||
->delete($db->quoteName('#__users'))
|
||||
->where($db->quoteName('id') . ' = ' . $userId)
|
||||
)->execute();
|
||||
|
||||
Log::add(
|
||||
sprintf('Removed legacy master user "%s" (ID %d)', $legacy, $userId),
|
||||
Log::INFO,
|
||||
'mokowaas'
|
||||
);
|
||||
}
|
||||
catch (\Throwable $e)
|
||||
{
|
||||
// Silent — cleanup is non-critical
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3947,7 +4013,7 @@ class MokoWaaS extends CMSPlugin implements BootableExtensionInterface
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
protected function warnMissingLicenseKey(): void
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/AllowedIpsField.php
|
||||
* BRIEF: Custom form field that displays the current IP whitelist
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/CopyableTokenField.php
|
||||
* BRIEF: Read-only token field with a copy-to-clipboard button
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/CurrentIpField.php
|
||||
* BRIEF: Read-only field that displays the current user's IP address
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/DemoTaskInfoField.php
|
||||
* BRIEF: Read-only field showing scheduled task info with link to manage it
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/NextResetField.php
|
||||
* BRIEF: Read-only field showing next reset time from Joomla scheduled task
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/Field/SnapshotTablesField.php
|
||||
* BRIEF: Multi-select list field that loads DB tables with sensible defaults
|
||||
*/
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS
|
||||
* PATH: /src/packages/plg_system_mokowaas/Service/ContentSyncReceiver.php
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* BRIEF: Receiver-side content sync — applies incoming payload to local DB
|
||||
*/
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS
|
||||
* PATH: /src/packages/plg_system_mokowaas/Service/ContentSyncService.php
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* BRIEF: Sender-side content sync — builds payload and pushes to remote sites
|
||||
*/
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS
|
||||
* PATH: /src/packages/plg_system_mokowaas/Service/DemoResetService.php
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* BRIEF: Content-only snapshot/restore for demo site reset
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ use Joomla\CMS\Log\Log;
|
||||
* users, tags, fields). Never touches extensions, assets, sessions,
|
||||
* schemas, update sites, or any system tables.
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
class DemoResetService
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
DEFGROUP: Joomla.Plugin
|
||||
INGROUP: MokoWaaS
|
||||
REPO: https://github.com/mokoconsulting-tech/mokowaas
|
||||
VERSION: 02.30.00
|
||||
VERSION: 02.31.00
|
||||
PATH: /src/mokowaas.xml
|
||||
BRIEF: Plugin manifest for MokoWaaS system plugin
|
||||
NOTE: Defines installation metadata, files, and configuration for Joomla
|
||||
@@ -30,8 +30,8 @@
|
||||
<license>GNU General Public License version 3 or later; see LICENSE.md</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>This plugin rebrands the Joomla system interface with MokoWaaS identity. It applies language overrides and ensures consistent branding across the platform.</description>
|
||||
<namespace path=".">Moko\Plugin\System\MokoWaaS</namespace>
|
||||
<scriptfile>script.php</scriptfile>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://github.com/mokoconsulting-tech/mokowaas
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/script.php
|
||||
* BRIEF: Installation script for MokoWaaS plugin
|
||||
* NOTE: Handles installation, update, and uninstallation tasks including language override deployment
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* DEFGROUP: Joomla.Plugin
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://github.com/mokoconsulting-tech/mokowaas
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* PATH: /src/services/provider.php
|
||||
* BRIEF: Service provider for dependency injection in Joomla 5.x
|
||||
* NOTE: Registers the plugin with Joomla's DI container
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<license>GNU General Public License version 3 or later; see LICENSE</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>PLG_TASK_MOKOWAASDEMO_DESC</description>
|
||||
<namespace path="src">Moko\Plugin\Task\MokoWaaSDemo</namespace>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<license>GNU General Public License version 3 or later; see LICENSE</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>PLG_TASK_MOKOWAASSYNC_DESC</description>
|
||||
<namespace path="src">Moko\Plugin\Task\MokoWaaSSync</namespace>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ use Joomla\Event\SubscriberInterface;
|
||||
* duplicates. Categories are upserted. Files are pushed via the
|
||||
* MokoWaaS sync-receive endpoint.
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
{
|
||||
@@ -59,7 +59,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return int Status::OK or Status::KNOCKOUT
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncContent(ExecuteTaskEvent $event): int
|
||||
{
|
||||
@@ -158,7 +158,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncArticles(string $apiBase, string $token): bool
|
||||
{
|
||||
@@ -222,7 +222,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncCategories(string $apiBase, string $token): bool
|
||||
{
|
||||
@@ -273,7 +273,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncMenus(string $apiBase, string $token): bool
|
||||
{
|
||||
@@ -341,7 +341,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncModules(string $apiBase, string $token): bool
|
||||
{
|
||||
@@ -395,7 +395,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function syncDirectory(string $dir, string $targetUrl, string $token): bool
|
||||
{
|
||||
@@ -487,7 +487,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return object|null Decoded JSON response
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function apiGet(string $url, string $token): ?object
|
||||
{
|
||||
@@ -520,7 +520,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return object|null Decoded JSON response
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function apiPost(string $url, string $token, array $payload): ?object
|
||||
{
|
||||
@@ -555,7 +555,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function apiDelete(string $url, string $token): bool
|
||||
{
|
||||
@@ -584,7 +584,7 @@ final class ContentSync extends CMSPlugin implements SubscriberInterface
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function getHealthToken(): string
|
||||
{
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<license>GPL-3.0-or-later</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>Joomla Web Services API routes for MokoWaaS site management — health checks, cache, updates, backups, and site info.</description>
|
||||
<namespace path="src">Moko\Plugin\WebServices\MokoWaaS</namespace>
|
||||
<files>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<license>GPL-3.0-or-later</license>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
<authorUrl>https://mokoconsulting.tech</authorUrl>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<description>Joomla Web Services API routes for Perfect Publisher (com_autotweet) — channels, posts, requests, rules, and feeds.</description>
|
||||
<namespace path="src">Moko\Plugin\WebServices\PerfectPublisher</namespace>
|
||||
<files>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS
|
||||
* PATH: /src/packages/plg_webservices_perfectpublisher/services/provider.php
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* BRIEF: DI service provider for Perfect Publisher Web Services plugin
|
||||
*/
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* INGROUP: MokoWaaS
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS
|
||||
* PATH: /src/packages/plg_webservices_perfectpublisher/src/Extension/PerfectPublisherApi.php
|
||||
* VERSION: 02.30.00
|
||||
* VERSION: 02.31.00
|
||||
* BRIEF: Web Services API plugin for Perfect Publisher (com_autotweet)
|
||||
*/
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<extension type="package" method="upgrade">
|
||||
<name>Package - MokoWaaS</name>
|
||||
<packagename>mokowaas</packagename>
|
||||
<version>02.30.00</version>
|
||||
<version>02.30.00</version>
|
||||
<version>02.31.00</version>
|
||||
<version>02.31.00</version>
|
||||
<creationDate>2026-05-23</creationDate>
|
||||
<author>Moko Consulting</author>
|
||||
<authorEmail>hello@mokoconsulting.tech</authorEmail>
|
||||
|
||||
+1
-1
@@ -230,7 +230,7 @@ class Pkg_MokowaasInstallerScript
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 02.30.00
|
||||
* @since 02.31.00
|
||||
*/
|
||||
private function cleanupStaleUpdateSites(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user