refactor: rename package_type to extension_type across model, API, and manifest sync #646
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
package_typefield name is confusing because "package" is also a Joomla extension type (pkg_). The field actually represents the extension type (component, module, plugin, package, template, library, file) — not just packages.Scope
Rename
package_type→extension_typein:RepoMetadata.PackageType→ExtensionTypeinmodels/repo/repo_manifest.gopackage_type→extension_type(SQL migration)package_type→extension_typeinrouters/api/v1/repo/manifest.goservices/repository/manifest_sync.gojoomla.goreferences toPackageType/ExtTyperouters/web/repo/setting/metadata.goPackageTypemcp-mokogitea-apitool parameter namejoomla_metadata_validate.phpandmanifest_integrity.phpNOT renamed
.mokogitea/manifest.xmltag<package-type>— this is the source file format, changing it would break all existing repos. The sync code maps XML tag → DB column.Migration
API Change
Backward compat: accept both
package_typeandextension_typein the API handler for one release cycle.Branch created:
feature/646-refactor-rename-package-type-to-extensio