From 989d2e79ac3ab4a95fabae7ed238c6026489e6af Mon Sep 17 00:00:00 2001
From: Simontrinh0911 <111838672+simontrinh0911@users.noreply.github.com>
Date: Fri, 2 Sep 2022 16:22:12 +0200
Subject: [PATCH] Update site-admin-dashboard.md
---
.../site-admin-dashboard.md | 114 +++++-------------
1 file changed, 30 insertions(+), 84 deletions(-)
diff --git a/content/admin/configuration/configuring-your-enterprise/site-admin-dashboard.md b/content/admin/configuration/configuring-your-enterprise/site-admin-dashboard.md
index e074b64fd8d5..d67d95ce4e13 100644
--- a/content/admin/configuration/configuring-your-enterprise/site-admin-dashboard.md
+++ b/content/admin/configuration/configuring-your-enterprise/site-admin-dashboard.md
@@ -16,70 +16,43 @@ topics:
---
To access the dashboard, in the upper-right corner of any page, click {% octicon "rocket" aria-label="The rocket ship" %}.

-
{% ifversion ghes or ghae %}
-
## Search
-
Refer to this section of the site admin dashboard to search for users and repositories, and to query the [audit log](#audit-log).
-
{% else %}
-
## License info & search
-
Refer to this section of the site admin dashboard to check your current {% data variables.product.prodname_enterprise %} license; to search for users and repositories; and to query the [audit log](#audit-log).
-
{% endif %}
{% ifversion ghes %}
## {% data variables.enterprise.management_console %}
-
Here you can launch the {% data variables.enterprise.management_console %} to manage virtual appliance settings such as the domain, authentication, and SSL.
{% endif %}
## Explore
-
Data for GitHub's [trending page][] is calculated into daily, weekly, and monthly time spans for both repositories and developers. You can see when this data was last cached and queue up new trending calculation jobs from the **Explore** section.
-
[trending page]: https://github.com/blog/1585-explore-what-is-trending-on-github
-
## Audit log
-
{% data variables.product.product_name %} keeps a running log of audited actions that you can query.
-
By default, the audit log shows you a list of all audited actions in reverse chronological order. You can filter this list by entering key-value pairs in the **Query** text box and then clicking **Search**, as explained in "[Searching the audit log for your enterprise](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/searching-the-audit-log-for-your-enterprise)."
-
For more information on audit logging in general, see "[About the audit log for your enterprise](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/about-the-audit-log-for-your-enterprise)." For a full list of audited actions, see "[Audit log events for your enterprise](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise)."
-
## Reports
-
If you need to get information on the users, organizations, and repositories in {% data variables.product.product_location %}, you would ordinarily fetch JSON data through the [GitHub API](/rest). Unfortunately, the API may not provide all of the data that you want and it requires a bit of technical expertise to use. The site admin dashboard offers a **Reports** section as an alternative, making it easy for you to download CSV reports with most of the information that you are likely to need for users, organizations, and repositories.
-
Specifically, you can download CSV reports that list
-
- all users
- all active users
- all [dormant users](/admin/user-management/managing-dormant-users)
- all users who have been suspended
- all organizations
- all repositories
-
You can also access these reports programmatically via standard HTTP authentication with a site admin account. You must use a personal access token with the `site_admin` scope. For more information, see "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)."
-
For example, here is how you would download the "all users" report using cURL:
-
```shell
curl -L -u username:token http(s)://hostname/stafftools/reports/all_users.csv
```
-
To access the other reports programmatically, replace `all_users` with `active_users`, `dormant_users`, `suspended_users`, `all_organizations`, or `all_repositories`.
-
{% note %}
-
**Note:** The initial `curl` request will return a 202 HTTP response if there are no cached reports available; a report will be generated in the background. You can send a second request to download the report. You can use a password or an OAuth token with the `site_admin` scope in place of a password.
-
{% endnote %}
-
### User reports
-
Key | Description
-----------------:| ------------------------------------------------------------
`created_at` | When the user account was created (as an ISO 8601 timestamp)
@@ -96,9 +69,7 @@ Key | Description
`last_active` | When the account was last active (as an ISO 8601 timestamp)
`raw_login` | Raw login information (in JSON format)
`2fa_enabled?` | Whether the user has enabled two-factor authentication
-
### Organization reports
-
Key | Description
--------------:| ------------------------------------
`id` | Organization ID
@@ -110,9 +81,7 @@ Key | Description
`teams` | Number of organization teams
`repos` | Number of organization repositories
`2fa_required?`| Whether the organization requires two-factor authentication
-
### Repository reports
-
Key | Description
---------------:| ------------------------------------------------------------
`created_at` | When the repository was created
@@ -127,106 +96,87 @@ Key | Description
`collaborators` | Number of repository collaborators
`fork?` | Whether the repository is a fork
`deleted?` | Whether the repository has been deleted
+ {% ifversion ghes %}
+ ## Indexing
-{% ifversion ghes %}
-## Indexing
+ GitHub's search features are powered by Elasticsearch. This section of the site admin dashboard shows you the current status of your Elasticsearch cluster and provides you with several tools to control search and index behavior.
-GitHub's [code search][] features are powered by [ElasticSearch][]. This section of the site admin dashboard shows you the current status of your ElasticSearch cluster and provides you with several tools to control the behavior of searching and indexing. These tools are split into the following three categories.
+ For more information about code search, see "[Searching for information on {% data variables.product.prodname_dotcom %}](/search-github)." For more information about Elasticsearch, see the [Elasticsearch website](https://elastic.co).
- [Code Search]: https://github.com/blog/1381-a-whole-new-code-search
- [ElasticSearch]: http://www.elasticsearch.org/
+ {% note %}
-### Code search
+ **Note**: In normal use, site administrators do not need to create new indices or schedule repair jobs. For troubleshooting or other support purposes, {% data variables.contact.github_support %} may instruct you to run a repair job.
-This allows you to enable or disable both search and index operations on source code.
+ {% endnote %}
-### Code search index repair
+ ### Index management
-This controls how the code search index is repaired. You can
+ {% data variables.product.product_name %} reconciles the state of the search index with data on the instance automatically and regularly.
-- enable or disable index repair jobs
-- start a new index repair job
-- reset all index repair state
+ - Issues, pull requests, repositories, and users in the database
+ - Git repositories (source code) on disk
-{% data variables.product.prodname_enterprise %} uses repair jobs to reconcile the state of the search index with data stored in a database (issues, pull requests, repositories, and users) and data stored in Git repositories (source code). This happens when
+ Your instance uses repair jobs to reconcile the data, and schedules a repair job in the background when the following events occur.
-- a new search index is created;
-- missing data needs to be backfilled; or
-- old search data needs to be updated.
+ - A new search index is created.
+ - Missing data needs to be backfilled.
+ - Old search data needs to be updated.
-In other words, repair jobs are started as needed and run in the background—they are not scheduled by site admins in any way.
+ You can create a new index, or you can click on an existing index in the list to manage the index. You can perform the following operations on an index.
-Furthermore, repair jobs use a "repair offset" for parallelization. This is an offset into the database table for the record being reconciled. Multiple background jobs can synchronize work based on this offset.
+ - Make the index searchable.
+ - Make the index writable.
+ - Update the index.
+ - Delete the index
+ - Reset the index repair state.
+ - Start a new index repair job.
+ - Enable or disable index repair jobs.
-A progress bar shows the current status of a repair job across all of its background workers. It is the percentage difference of the repair offset with the highest record ID in the database. Don't worry about the value shown in the progress bar after a repair job has completed: because it shows the difference between the repair offset and the highest record ID in the database, it will decrease as more repositories are added to {% data variables.product.product_location %} even though those repositories are actually indexed.
+ A progress bar shows the current status of a repair job across background workers. The bar is the percentage difference of the repair offset with the highest record ID in the database. You can ignore the value shown in the progress bar after a repair job has completed. The progress bar shows the difference between the repair offset and the highest record ID in the database, and will decrease as more repositories are added to {% data variables.product.product_location %} even though those repositories are actually indexed.
-You can start a new code-search index repair job at any time. It will use a single CPU as it reconciles the search index with database and Git repository data. To minimize the effects this will have on I/O performance and reduce the chances of operations timing out, try to run a repair job during off-peak hours first. Monitor your system's load averages and CPU usage with a utility like `top`; if you don't notice any significant changes, it should be safe to run an index repair job during peak hours, as well.
+ To minimize the effects on I/O performance and reduce the chances of operations timing out, run the repair job during off-peak hours. As the job reconciles the search index with database and Git repository data, one CPU will be used. Monitor your system's load averages and CPU usage with a utility like `top`. If you don't notice any significant increase in resource consumption, it should also be safe to run an index repair job during peak hours.
-### Issues index repair
+ Repair jobs use a "repair offset" for parallelization. This is an offset into the database table for the record being reconciled. Multiple background jobs can synchronize work based on this offset.
-This controls how the [Issues][] index is repaired. You can
+ ### Code search
- [Issues]: https://github.com/blog/831-issues-2-0-the-next-generation
+ This allows you to enable or disable both search and index operations on source code.
-- enable or disable index repair jobs
-- start a new index repair job
-- reset all index repair state
-{% endif %}
-## Reserved logins
+ {% endif %}
+ ## Reserved logins
Certain words are reserved for internal use in {% data variables.product.product_location %}, which means that these words cannot be used as usernames.
-
For example, the following words are reserved, among others:
-
- `admin`
- `enterprise`
- `login`
- `staff`
- `support`
-
For the full list or reserved words, navigate to "Reserved logins" in the site admin dashboard.
-
{% ifversion ghas-committers-calculator %}
## {% data variables.product.prodname_advanced_security %} Committers
-
You can see the number of active committers that are currently using seats for {% data variables.product.prodname_GH_advanced_security %}, and you can calculate how many additional seats would be used if you enabled {% data variables.product.prodname_GH_advanced_security %} for more organizations and repositories.
-
Under "Current active committer count", you can see the number of active committers for repositories with {% data variables.product.prodname_GH_advanced_security %} enabled. This is the number of licensed seats that are currently being used.
-
Under "Maximum committers across entire instance", you can see the number of active committers across all the repositories in your enterprise. This is the number of seats that would be used if you enabled {% data variables.product.prodname_GH_advanced_security %} for every repository in your enterprise.
-
Under "Calculate Additional Advanced Committers", you can calculate how many more additional seats will be used if you enable {% data variables.product.prodname_GH_advanced_security %} for specific organizations and repositories. Under "Organizations and Repositories", enter or paste a list of organizations and repositories, with one organization or repository per line.
-
```
example-org
octo-org/octo-repo
```
-
The result is the number of additional seats that would be used if you enabled {% data variables.product.prodname_GH_advanced_security %} for those organizations and repositories.
-
For more information about billing for {% data variables.product.prodname_advanced_security %}, see "[About billing for {% data variables.product.prodname_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
{% endif %}
-
## Enterprise overview
-
Refer to this section of the site admin dashboard to manage organizations, people, policies, and settings.
-
## Repositories
-
This is a list of the repositories on {% data variables.product.product_location %}. You can click on a repository name and access functions for administering the repository.
-
- [Blocking force pushes to a repository](/enterprise/admin/guides/developer-workflow/blocking-force-pushes-to-a-repository/)
- [Configuring {% data variables.large_files.product_name_long %}](/enterprise/admin/guides/installation/configuring-git-large-file-storage/#configuring-git-large-file-storage-for-an-individual-repository)
- [Archiving and unarchiving repositories](/enterprise/admin/guides/user-management/archiving-and-unarchiving-repositories/)
-
## All users
-
Here you can see all of the users on {% data variables.product.product_location %}, and [initiate an SSH key audit](/enterprise/admin/guides/user-management/auditing-ssh-keys).
-
## Site admins
-
Here you can see all of the administrators on {% data variables.product.product_location %}, and [initiate an SSH key audit](/enterprise/admin/guides/user-management/auditing-ssh-keys).
-
## Dormant users
{% ifversion ghes %}
Here you can see and [suspend](/enterprise/admin/guides/user-management/suspending-and-unsuspending-users) all of the inactive users on {% data variables.product.product_location %}. A user account is considered to be inactive ("dormant") when it:
@@ -234,13 +184,9 @@ Here you can see and [suspend](/enterprise/admin/guides/user-management/suspendi
{% ifversion ghae %}
Here you can see and suspend all of the inactive users on {% data variables.product.product_location %}. A user account is considered to be inactive ("dormant") when it:
{% endif %}
-
- Has existed for longer than the dormancy threshold that's set for {% data variables.product.product_location %}.
- Has not generated any activity within that time period.
- Is not a site administrator.
-
{% data reusables.enterprise_site_admin_settings.dormancy-threshold %} For more information, see "[Managing dormant users](/enterprise/admin/guides/user-management/managing-dormant-users/#configuring-the-dormancy-threshold)."
-
## Suspended users
-
Here you can see all of the users who have been suspended on {% data variables.product.product_location %}, and [initiate an SSH key audit](/enterprise/admin/guides/user-management/auditing-ssh-keys).