Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bulk add of players from CSV #1

Open
JimThatcher opened this issue Aug 18, 2022 · 1 comment
Open

Implement bulk add of players from CSV #1

JimThatcher opened this issue Aug 18, 2022 · 1 comment
Labels
feature request A new feature that is planned to be worked on. Not a bug fix.

Comments

@JimThatcher
Copy link
Owner

Put code behind handleBulkAdd() method in PlayerListForm.tsx to open file select dialog to select a CSV file, then parse the CSV file and for each row in the file create a PlayerData object and call DbApi.createPlayerData() with each PlayerData.

@JimThatcher
Copy link
Owner Author

JimThatcher commented Aug 18, 2022

One option for addressing the player text data (in PlayerData) and the player image file might be to allow the file selection of the CSV file to be multi-select, to select the CSV file and all of the player image files from the same directory, then scan the list of selected files for the CSV, and while processing the CSV and calling createPlayerData for each line, also check the list of files for the image file for that player, and if it's there, upload it to /rest/db/player/[imageFileName.png]. This would address Issue #2 as well.

@lwthatcher lwthatcher added the feature request A new feature that is planned to be worked on. Not a bug fix. label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new feature that is planned to be worked on. Not a bug fix.
Projects
None yet
Development

No branches or pull requests

2 participants