Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,597 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, nodejs
領域
tooling

調査の方向性

Issue にはソースファイル、テスト、エントリーポイントのいずれも特定されていません。数量 100、コード長 5、プレフィックス "Test" で Discount Code Generator のケースを再現し、次にジェネレーターを見つけて重複した出力をどのように報告すべきかを判断してください。完了とは、不可能なパラメーターによって、重複を含む予告なしの CSV が生成されるのではなく、エラー表示が生成されることを意味します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
78
フォーク
70
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commercetools/nodejs のほかの issue

commercetools/nodejs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。