Advanced Search: Add status section to admin UI
Problem to solve
Currently, it's easy to miss problems with Advanced Search integration unless you execute rake gitlab:elastic:info
and know what to look for.
Proposal
We might want to create a UI section for all warning and problems related to the integration. For example:
- Warning: Indexing is paused
- Warning: Indexing queue is backed up (>10,000 documents)
- Problem: Pending migrations are obsolete
- Problem: At least one of Advanced Search indices is read-only
Ideally, it should be implemented as backend classes with type (Warning/Problem), documentation_url (explain how to solve the problem), and logic in order to avoid expanding frontend too much. Instead, frontend code will iterate over all checks and print the results.
Maybe we can consider using SystemCheck::BaseCheck
as a base class.
From the UI perspective, maybe we can take some inspiration from https://status.gitlab.com/ and possibly render successful checks as well.
Edited by Dmitry Gruzd