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

CSV export leaves trailing commas in tags and assigned-user fields

オープン 初心者向け
#8,361 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Kumar-s75 がすでに取り組んでいます。

2026年9月10日 から。

  • #8363 @Kumar-s75 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
frontend

調査の方向性

src/services/BoardApi.js の203~220行付近で、CSVのタグ値と割り当てユーザー値がシリアライズされている箇所から始めます。複数のタグまたは割り当てユーザーを含むカードでエクスポートを再現し、各フィールドに値がある場合、末尾にカンマを付けず、エントリが ", " で区切られていることを確認します。リポジトリに関連するCSVエクスポートのテストがある場合は、両方のフィールドのカバレッジを追加または更新します。

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

説明

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug

CSV export builds tag and assigned-user values by appending ", " after every entry. It then calls slice(0, -1), which removes only the final space and leaves the final comma:

https://github.com/nextcloud/deck/blob/main/src/services/BoardApi.js#L203-L220

For example, labels Backend and Urgent are serialized as:

Backend, Urgent,

instead of:

Backend, Urgent

The same logic is used for assigned users.

This was found by reviewing the CSV serialization code on the current main branch.

To Reproduce

  1. Create a card with one or more tags or assigned users.
  2. Export the board as CSV.
  3. Open the exported file.
  4. Inspect the Tags and Assigned users columns for that card.
  5. Observe the trailing comma in each non-empty multi-value field.

Expected behavior

Tags and assigned users should be separated with , without a trailing separator.

Screenshots

Not applicable. Example output:

Actual:   Backend, Urgent,
Expected: Backend, Urgent

Client details:

  • OS: Not environment-specific
  • Browser: Not environment-specific
  • Version: Current main branch
  • Device: Desktop
Server details

Not environment-specific; the defect is in client-side CSV serialization.

Logs

No error is logged. The generated CSV contains the incorrectly formatted values.

Suggested fix

Build the values using map(...).join(', ') rather than manually appending and trimming separators. This would also make the intended formatting explicit.

Related issue

#8041 discusses missing cards and metadata in board exports. This report is limited to incorrect formatting of tag and assigned-user values that are already included in CSV export.

主要言語
JavaScript
スター
1.4k
フォーク
358
平均マージ
2日 18時間
マージ済み PR(30日)
83

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

nextcloud/deck のほかの issue

nextcloud/deck の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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