Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Add an error table to the csv results #1200

Merged
merged 7 commits into from
Nov 28, 2020

Conversation

whaught
Copy link
Contributor

@whaught whaught commented Nov 26, 2020

Issue #1197

Proposed Changes

  • Adds a card for displaying errors from CSV upload

errorstable

TODO:
Show # successful above the errors?
Button to download this as text?

Release Note

Include a table of errors for CSV bulk import

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Nov 26, 2020
cmd/server/assets/codes/bulk-issue.html Outdated Show resolved Hide resolved
cmd/server/assets/codes/bulk-issue.html Outdated Show resolved Hide resolved
Copy link
Member

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/hold

for the Q about return

@@ -245,8 +269,15 @@
flash.alert("Successfully issued " + total + " codes.");
}
}

if (totalErrs > 0) {
flash.error("Received errors for " + totalErrs + " entries. See error table for details.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to return here? Might not need to but it's hard to tell with the collapsed diff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah the rest just resets the div

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/unhold

cmd/server/assets/codes/bulk-issue.html Outdated Show resolved Hide resolved
Co-authored-by: Seth Vargo <seth@sethvargo.com>
@sethvargo
Copy link
Member

/lgtm
/approve

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 64a382a into google:main Nov 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2020
@whaught whaught deleted the show-bulk-errors branch December 2, 2020 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants