jargonsdev / jargonsdev/jargons.dev
TODO: Handle Error for Existing Branch on Word Submission
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- MDX
- Sterne
- 56
- Forks
- 45
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When a user submits a new word or edits an existing word in the dictionary, the system should check if the branch already exists before attempting to create a new branch. Currently, if a branch with the same name already exists, the submission process fails without providing a clear error message to the user.
https://github.com/babblebey/jargons.dev/blob/0eeb366b4346c28a400586082fadb331c0ee342f/src/lib/branch.js#L10
**Proposed Solution:**
1. Add a check in the submission process to verify if the branch already exists. (but this will assume that a fork has already been created before-hand)
2. If the branch exists, display a user-friendly error message indicating that the word already exists in the dictionary.
3. Provide guidance on how to proceed, such as editing the existing word instead of creating a new one.
**Additional Notes:**
- Important to state that the proposed solution is pretty much me thinking out loud, I have some thought which really looks like it will change how/when we fork in order to address this in the way I am thinking about
- Its also important to know how/when we fork too, I can shed more lights on this
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne bei src/lib/branch.js ungefähr in Zeile 10 und verfolge den Ablauf der Worteinreichung, einschließlich des Zeitpunkts, zu dem fork und branch erstellt werden. Ermittle, wie ein vorhandener branch erkannt wird und wie die Einreichung derzeit einen Fehler meldet. Erledigt ist die Aufgabe, wenn doppelte Einreichungen eine klare Nachricht erhalten, die Nutzer anweist, das vorhandene Wort zu bearbeiten, wobei der Zeitpunkt der fork-Erstellung verstanden ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github, javascript, nodejs
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100