Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Discount Code Generator yields no error message even if CSV file contains duplicate values

Aperta
#1,597 0 commenti 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
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, nodejs
Ambito
tooling

Direzione di ricerca

Nell’issue non sono identificati alcun file sorgente, test o punto di ingresso. Riproduci il caso di Discount Code Generator con quantità 100, lunghezza del codice 5 e prefisso "Test", quindi individua il generatore e determina come debba essere segnalato l’output duplicato; il lavoro è completato quando parametri impossibili producono un’indicazione di errore invece di un CSV non annunciato con duplicati.

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

Descrizione

Support reference number

https://jira.commercetools.com/browse/SUPPORT-9609

Relevant CSV files are in ticket

Description

When using the Discount Code Generator tool, parameters can be set such that the code generator cannot produce all unique codes and there is no error messaging to suggest there was a problem yielding the codes.

In IMPEX, if you set the quantity of discount codes to 100, the amount of characters for each generated code to 5, and set the prefix to something like "Test", the generator will produce a CSV file with 100 codes but there will be duplicates, and there is no error message to suggest that the operation wasn't possible.

Expected Behavior

When using the discount code generator, if the parameters set make it impossible for the generator to perform its function, then an error message should be generated.

Current Behavior

If you set parameters that make it impossible for the generator to perform its function, the generator yields the CSV with no indication that there are duplicate values.

Customer would like for there to be some indication that the process didn't actually do what it claims it did.

Lingua principale
JavaScript
Stelle
77
Fork
70
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 commercetools/nodejs

Tutte le issue di commercetools/nodejs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.