Huma/ja
Appearance
リリースの状態: 安定 |
|
|---|---|
| 実装 | データベース |
| 説明 | A tool to give more visibility and structured insight into MediaWiki and its components. |
| 作者 | Amir Sarabadani (ladsgrouptalk) |
| ライセンス | ライセンス未指定 |
| ダウンロード | GitLab リポジトリ README.md 更新履歴 |
| 例 | https://huma.wmcloud.org/sql |
Huma[1] (https://huma.wmcloud.org), a tool to give more visibility and structured insight into MediaWiki and its components.
It's primarily a PostgreSQL database that you can query directly via https://huma.wmcloud.org/sql.
Database schema
It has two tables:
methods
This table is a registry of methods in MediaWiki. It has three fields:
class_name- Name of the class including namespace.method_name- Name of the method/attribute/constant.info- json object containing information about the method. Here is an example:
{
"visibility": "public",
"name": "select",
"parameters": [
{
"hard_type_hint": "array",
"name": "$connections",
"soft_type_hint": "ConnectionInterface[]"
}
],
"hard_return_type_hint": "Elasticsearch\\Connections\\ConnectionInterface",
"body_size": 47,
"class_info": {
"implements": [
"Elasticsearch\\ConnectionPool\\Selectors\\SelectorInterface"
]
},
"method": true
}
calls
This table is a registry of function calls and class dependencies. It has four columns:
caller_class_name— Class name of the code that is calling. Including namespaces.caller_method_name— Method name of the caller.called_class_name— Class that is being called.called_method_name— The name of the method that is being called.
Admin
Source code
Further reading
- File:Huma bird eye view of mediawiki.pdf — Showcase slide of huma in Wikimedia Hackathon 2024
