Jump to content

Huma/ja

From mediawiki.org
This page is a translated version of the page Huma and the translation is 6% complete.
MediaWiki ツールのマニュアル
Huma
リリースの状態: 安定
実装 データベース
説明 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_nameClass name of the code that is calling. Including namespaces.
  • caller_method_nameMethod name of the caller.
  • called_class_nameClass that is being called.
  • called_method_nameThe name of the method that is being called.

Admin

See the subpage

Source code

Further reading

Notes

  1. Naming refers to huma bird, a mythical bird that flies really high. This tool provides a bird's-eye view of MediaWiki