This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Minor cleanup on recently ported doc pages #11466
Merged
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1dcd872
move wiki pages to synapse/docs and add a few titles where necessary
H-Shay 62d9a36
update SUMMARY.md with added pages
H-Shay 2754f10
add changelog
H-Shay 16b451b
Merge branch 'develop' into shay/port_wiki
H-Shay f1e63f7
move incorrectly located newsfragment
H-Shay 6c9be5a
update changelog number
H-Shay ec1a77d
snake case added files and update summary.md accordingly
H-Shay 9e8648d
update issue/pr links
H-Shay 390bb41
update relative links to docs
H-Shay 8c7da7a
update changelog to indicate that we moved wiki pages to the docs and…
H-Shay 3818429
Merge branch 'develop' into shay/port_wiki
H-Shay d86f019
requested changes to admin_faq.md
H-Shay cb78276
requested changes to database_maintenance_tools.md
H-Shay 217351a
requested changes to understanding_synapse_through_graphana_graphs.md
H-Shay ab0fb1e
add changelog
H-Shay 497e656
merge develop and fix merge conflicts
H-Shay 680fe8a
fix leftover merge errata
H-Shay 381a1da
fix unwanted changes from merge
H-Shay d5a9ce4
use two spaces between entries
H-Shay 328d5c1
outdent code blocks
H-Shay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update and clean up recently ported documentation pages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,27 +6,31 @@ If your server already has an admin account you should use the user admin API to | |
|
||
If you don't have any admin accounts yet you won't be able to use the admin API so you'll have to edit the database manually. Manually editing the database is generally not recommended so once you have an admin account, use the admin APIs to make further changes. | ||
|
||
```sql | ||
UPDATE users SET admin = 1 WHERE name = '@foo:bar.com'; | ||
|
||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that we're using backtick blocks, we can outdent the code. (applies to the other code blocks too) |
||
What servers are my server talking to? | ||
--- | ||
Run this sql query on your db: | ||
|
||
```sql | ||
SELECT * FROM destinations; | ||
``` | ||
|
||
What servers are currently participating in this room? | ||
--- | ||
Run this sql query on your db: | ||
|
||
```sql | ||
SELECT DISTINCT split_part(state_key, ':', 2) | ||
FROM current_state_events AS c | ||
INNER JOIN room_memberships AS m USING (room_id, event_id) | ||
WHERE room_id = '!cURbafjkfsMDVwdRDQ:matrix.org' AND membership = 'join'; | ||
``` | ||
|
||
What users are registered on my server? | ||
--- | ||
|
||
```sql | ||
SELECT NAME from users; | ||
``` | ||
|
||
Manually resetting passwords: | ||
--- | ||
|
@@ -50,13 +54,13 @@ There are two exceptions when it might be sensible to delete your database and s | |
I've stuffed up access to my room, how can I delete it to free up the alias? | ||
--- | ||
Using the following curl command: | ||
|
||
``` | ||
curl -H 'Authorization: Bearer <access-token>' -X DELETE https://matrix.org/_matrix/client/r0/directory/room/<room-alias> | ||
|
||
\<access-token\> - can be obtained in riot by looking in the riot settings, down the bottom is: | ||
``` | ||
`<access-token>` - can be obtained in riot by looking in the riot settings, down the bottom is: | ||
Access Token:\<click to reveal\> | ||
|
||
\<room-alias\> - the room alias, eg. #my_room:matrix.org this possibly needs to be URL encoded also, for example %23my_room%3Amatrix.org | ||
`<room-alias>` - the room alias, eg. #my_room:matrix.org this possibly needs to be URL encoded also, for example %23my_room%3Amatrix.org | ||
|
||
How can I find the lines corresponding to a given HTTP request in my homeserver log? | ||
--- | ||
|
@@ -93,4 +97,7 @@ WHERE g.room_id = s.room_id | |
GROUP BY s.canonical_alias, g.room_id | ||
ORDER BY num_rows desc | ||
LIMIT 10; | ||
``` | ||
``` | ||
|
||
You can also use the [List Room API](../../admin_api/rooms.md#list-room-api) | ||
and `order_by` `state_events`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The convention seems to be 2 blank lines between sections, judging by the changelog entries below