Skip to content

wiki repositories don't refresh because they're not part of the API #2061

Open

Description

@shiftkey

Description

While we can now clone wiki repositories in Desktop, there are some other corner cases (and console errors) that light up as a result of this.

Version

GitHub Desktop version: master - e.g. 77c2146
OS version: macOS Sierra 10.12.5

Steps to Reproduce

  • Launch the app
  • Add an existing GitHub wiki repository to the app via drag and drop
  • Confirm it appears as a GitHub repository

  • Peep the dev console, see the errors for all the nonexistent endpoints:
    • fetching issues
    • fetching mentionable users
    • fetching repository details
    • fetching the refresh interval from /repos/{owner}/{name}.wiki/git

This is using https://github.com/aspnet/Home/wiki

Expected behaviour: avoid fetching these endpoints for known cases
Actual behaviour: lots of errors

Reproduces how often: I only tested this a couple of times, but I'm pretty sure it's 100%

Activity

  1. added
    help wanted
    on Jun 20, 2017
  2. joshaber commented on Jun 20, 2017

    @joshaber
    Contributor

    Yeah, that's a good shout. I knew this was a problem but didn't document it.

  3. shiftkey commented on Jun 24, 2017

    @shiftkey
    MemberAuthor

    The "View on GitHub" link also doesn't detect wiki repositories. Whatever solution we settle on here, the link shouldn't render for a wiki because there's no UI to display on GitHub or GitHub Enterprise for it.

  4. j-f1 commented on Jun 24, 2017

    @j-f1
    Contributor

    @shiftkey

    https://github.com/:user/:repo/wiki/:page_name/_compare/:sha
    
  5. shiftkey commented on Jun 24, 2017

    @shiftkey
    MemberAuthor

    @j-f1 nice find - it's a slightly different resource format (the repository itself is hosted at is https://{host}/:user/:repo.wiki/ but all the website resources are at https://{host}/:user/:repo/wiki and we'd need to look at the commit contents itself to get :page_name).

    I think once we figure out how to distinguish wiki repositories from regular repositories, we can glue together the other sorts of features like that...

  6. added and removed
    help wanted
    on Jun 29, 2017
  7. removed their assignment
    on Jul 27, 2017
  8. mischnic commented on Sep 10, 2017

    @mischnic

    Just wanted to add that wikis belonging to private repositories have a public icon.

  9. shiftkey commented on Feb 26, 2018

    @shiftkey
    MemberAuthor

    Related to this change, #4092 reports that wiki repositories are categorized as "Other"

  10. shiftkey commented on Sep 13, 2018

    @shiftkey
    MemberAuthor

    @joaomlneto nope, but feel free to have a go- I'm happy to answer any questions about things you stumble upon!

  11. added
    help wanted
    on Sep 13, 2018
  12. removed
    help wanted
    on Mar 15, 2019
  13. Andre601 commented on Jul 28, 2020

    @Andre601

    I can confirm that fetching latest changes (which shouldn't anything other than fetching from any git-repo) doesn't do anything.
    GitHub Desktop just stays silent and doesn't react at all.

    Can this please be fixed? It's annoying to delete the wiki folder and download/clone it again, just to have the latest changes of the wiki...

  14. added
    not-planned
    on Jul 8, 2024
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

    enhancementnot-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions