Skip to content

[WebUI] Read-only mode for serving publicly #402

Closed

Description

@tazjin

Hey, and thanks for git-bug, it is an amazing idea!

We've started using git bug for our community monorepo at code.tvl.fyi and would like to be able to host a read-only web UI so that we can link to bugs etc., without people needing to pull them locally.

It seems that the web UI currently expects to be launched with an identity, and that it always provides features such as a comment field. Have you considered adding a read-only mode which could be used for serving it publicly? Alternatively, would patches for supporting this be welcome?

Thanks!

Activity

  1. changed the title [-]Read-only web UI for serving publicly[/-] [+][WebUI] Read-only mode for serving publicly[/+] on Jun 15, 2020
  2. MichaelMure commented on Jun 15, 2020

    @MichaelMure
    Contributor

    Yes this would make sense.

    At the moment, the WebUI implicitly use the default User of the git repo it's launched from as the active user in the WebUI. The plan is to have it eventually accept external authentication (OAuth typically) so that people without git commit access can participate on the bugtracker.

    But having this implies that there is sometimes no logged user and the WebUI should be read-only at that point. Ideally this read-only feature is framed that way: not as a special hardcoded mode, but as a fallback when there is no logged user. It would then be just a matter of adding a new --read-only flag to the webui command to run the GraphQL API without a user.

    This has some implication in the GraphQL API though: even if Repository.userIdentity in the GraphQL API can be null, there is still the assumption in some places (typically the mutations) that a user always exist.

    I very much welcome patches to do that.

  3. added 4 commits that reference this issue on Jun 18, 2020
    9965867
    b880c57
    2576866
    59980b4
  4. added 2 commits that reference this issue on Jun 26, 2020
    642895b
    4a28f25
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions