Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,597 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, nodejs
Lĩnh vực
tooling

Hướng nghiên cứu

Issue không xác định tệp nguồn, test hoặc entry point nào. Hãy tái hiện trường hợp Discount Code Generator với số lượng 100, độ dài mã 5 và tiền tố "Test", sau đó tìm generator và xác định đầu ra trùng lặp nên được báo cáo như thế nào; hoàn thành có nghĩa là các tham số không thể thực hiện tạo ra một chỉ báo lỗi thay vì một CSV không được thông báo có chứa các giá trị trùng lặp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
78
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của commercetools/nodejs

Tất cả issue của commercetools/nodejs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.