Closed twocs closed 9 months ago
Added two Instance functions: get_table_stats: gives stats regarding the tables get_index_stats: gives info about the table indexes
Followed the style of the project, adding Example and unit tests.
The response from /admin/get-index-stats is not documented, so I used the output of a vanilla installation of misskey to determine it.
Another drawback is that the size of get_index_stats.json is quite large. Can be trimmed down if needed.
Tested against a local Docker install of Misskey
coverage: 84.126% (+0.1%) from 84.009% when pulling d464263333db8f6c356feb297264c6673fe2f4fb on twocs:admin/instance into bd395ada4b6a474d734657aefc65ce6d5365bba0 on yitsushi:main.
Requirements for Contributing
Added two Instance functions: get_table_stats: gives stats regarding the tables get_index_stats: gives info about the table indexes
Description of the Change
Followed the style of the project, adding Example and unit tests.
Issue or RFC
56
Possible Drawbacks
The response from /admin/get-index-stats is not documented, so I used the output of a vanilla installation of misskey to determine it.
Another drawback is that the size of get_index_stats.json is quite large. Can be trimmed down if needed.
Verification Process
Tested against a local Docker install of Misskey
Release Notes