Import from GitHub - Branches Never Load

Aperta
#443 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github
Ambito
backend

Direzione di ricerca

Start by tracing the GitHub import flow from the workspace menu and the repo-selection step described in the issue; then inspect how branch options are loaded for the selected repository. Reproduce using the listed steps and check the failing request or response. Done means branches load after choosing a repository so the user can select a file and pull it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is this a hackmd.io issue?
What's the problem
Current behaviour

When importing a file from GitHub, after selecting a repo the "Select a branch" option is stuck loading forever. This prevents the user from selecting a branch, selecting the file, and initiating the Git pull from GitHub. The issue also exists if the user selects "Pull from GitHub" and "Push to GitHub" at the bottom of the empty document.

Image

Provide steps to reproduce:

  1. Go to Workspace
  2. Click on menu arrow next to Create my note
  3. Select Import a file from GitHub
  4. Click on Select a repo
  5. Select any repo
  6. See error -- Select a branch loads forever

Note link: https://hackmd.io/@Ozycaevias/HJ1nTzNjzl

Expected behaviour

After selecting a repo, "Select a branch" should briefly load, then allow the user to select a branch from the chosen repository. They would then be able to select the desired file and click Pull to start the Git pull from GitHub.

Environment

I use HackMD on:

Desktop

  • OS: Windows 11
  • Browser: Firefox
  • Browser Version: 157.0
Additional context

Issue persists even in a Private window with no extensions loaded.

I have tried restarting the browser, clearing cache/cookies, selecting different repos, and using a different browser (Chrome 154.0), with no luck. I have also verified that HackMD Hub has permission to access the selected repos in the GitHub application settings.

I've waited as long as 10 minutes, just to verify that it's not just being exceptionally slow. I can also confirm that my internet connection has no current issues and accesses anything else (including the rest of HackMD) fine.

Lingua principale
Nessun dato sulla lingua
Stelle
40
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hackmdio/hackmd-io-issues

Tutte le issue di hackmdio/hackmd-io-issues

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.