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

Load events from .csv or .json files #4

Open
Oscar-gg opened this issue May 7, 2024 · 0 comments
Open

Load events from .csv or .json files #4

Oscar-gg opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@Oscar-gg
Copy link
Member

Oscar-gg commented May 7, 2024

Implement the option of creating multiple events by loading a .csv file or .json file.

Implementation Idea:

  • Let the first line of the .csv file be a list indicate which fields are provided in subsequent lines.
  • If a .json file is provided, parse each entry with a zod schema and add successfully parsed events to the database, if the required permissions are available. If any event isn't parse correctly, display explanation and don't add any event.
  • If a .csv file is provided, transform it to a .json or object directly, and the parse it and follow the same procedure as above.
  • Add confirmation windows when loading events and a preview of the events added.
@Oscar-gg Oscar-gg self-assigned this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant