Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Misleading documentation for user_directory.search_all_users #13852

Closed

Description

@babolivier

The documentation says:

Defines whether to search all users visible to your HS when searching the user directory.

It does not make it clear that the users included in that cohort art the users visible by the homeserver at the time the search is performed, i.e. all users who share a room with a user from the homeserver at that time. As opposed to all users the homeserver has ever seen, regardless of whether they share a membership in a room.

While we're doing things around this part of the doc, it has a link to https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#run which hasn't been linkified - it should probably be turned into a relative link (so that version prefixes in URLs carry over).

Activity

  1. added
    A-Docsthings relating to the documentation
    S-MinorBlocks non-critical functionality, workarounds exist.
    T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
    O-OccasionalAffects or can be seen by some users regularly or most users rarely
    on Sep 20, 2022
  2. exitflynn commented on Sep 21, 2022

    @exitflynn
    Contributor

    i'd love to work on this issue!
    edit: apologies, anyone else feel free to work on this! 🤠

  3. babolivier commented on Sep 22, 2022

    @babolivier
    ContributorAuthor

    Feel free to open a PR for it :)

  4. 404-P4rziv4L commented on Oct 27, 2022

    @404-P4rziv4L

    If this issue is yet to be resolved, could I work on this?

  5. tjay27 commented on Jan 9, 2023

    @tjay27
    Contributor

    While we're doing things around this part of the doc, it has a link to https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/background_updates.html#run which hasn't been linkified - it should probably be turned into a relative link (so that version prefixes in URLs carry over).

    At line 109 from background_updates.md

    image
    Here, the link to the user directory seems already relative.

    Is there something extra I need to add for version prefix carry over? @clokep @babolivier

  6. DMRobertson commented on Jan 9, 2023

    @DMRobertson
    Contributor

    Brendan was referring to

    These indexes are built the first time Synapse starts; admins can
    manually trigger a rebuild via the API following the instructions
    [for running background updates](../administration/admin_api/background_updates.md#run),
    set to true to return search results containing all known users, even if that
    user does not share a room with the requester.
    , but I'm not sure what he meant by linkified. Looks like it's already a relative URL to me?

  7. tjay27 commented on Jan 9, 2023

    @tjay27
    Contributor

    Is this right?

    If user_directory's search_all_users is

    true - searches all users that share a room with the homeserver at that time.
    false - search results will only contain users visible in public rooms and users sharing a room with the requester at that time

  8. tjay27 commented on Jan 9, 2023

    @tjay27
    Contributor

    @DMRobertson
    It shows the URL there instead of for running background updates as mentioned in markdown.
    That is what he meant by linkify

    image

  9. DMRobertson commented on Jan 9, 2023

    @DMRobertson
    Contributor

    Looks like #14003 fixed the link.

  10. added a commit that references this issue on Jan 13, 2023
    1416096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Docsthings relating to the documentationO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorBlocks non-critical functionality, workarounds exist.T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions