feat: Add MediaWiki import functionality with tracking and mapping
- Implemented a new SQL migration for wiki import tracking tables. - Created an import router for handling MediaWiki imports of exercises, skills, and methods. - Developed a Semantic MediaWiki API client for direct API interactions. - Added a mapper to convert SMW properties to local database fields. - Introduced background tasks for asynchronous import processing. - Implemented logging and error handling for import operations. - Added endpoints for previewing imports, checking import status, and managing import references.
This commit is contained in:
1 parent
0e0b709768
commit
6801c60604
19 files changed
+9472
-5
No files matched your search
+16
-4
@@ -1,8 +1,8 @@
|
||||
# Shinkan Jinkendo Version Information
|
||||
|
||||
APP_VERSION = "0.5.0"
|
||||
BUILD_DATE = "2026-04-23"
|
||||
DB_SCHEMA_VERSION = "20260423002"
|
||||
APP_VERSION = "0.6.0"
|
||||
BUILD_DATE = "2026-04-24"
|
||||
DB_SCHEMA_VERSION = "20260424001"
|
||||
|
||||
MODULE_VERSIONS = {
|
||||
"auth": "1.0.0",
|
||||
@@ -15,13 +15,25 @@ MODULE_VERSIONS = {
|
||||
"training_units": "0.1.0",
|
||||
"training_programs": "0.1.0",
|
||||
"planning": "0.1.0",
|
||||
"import_wiki": "0.1.0",
|
||||
"import_wiki": "1.0.0",
|
||||
"admin": "1.0.0",
|
||||
"membership": "1.0.0",
|
||||
"catalogs": "1.5.0", # Updated: Trainer Contexts API (Migration 012)
|
||||
}
|
||||
|
||||
CHANGELOG = [
|
||||
{
|
||||
"version": "0.6.0",
|
||||
"date": "2026-04-24",
|
||||
"changes": [
|
||||
"Feature: MediaWiki Import (SMW Direct API)",
|
||||
"DB: Migration 018 - wiki_import_log + wiki_import_references",
|
||||
"Backend: SmwClient (login, browse, ask, categorymembers)",
|
||||
"Backend: SmwMapper (SMW Properties → exercises/skills/methods)",
|
||||
"Backend: import_wiki Router (preview, execute, status, logs, discover)",
|
||||
"Config: MEDIAWIKI_API_URL=https://karatetrainer.net/api.php",
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "0.5.0",
|
||||
"date": "2026-04-23",
|
||||
|
||||
Reference in new issue
Block a user