Skip to content

Conversation

@stephdl
Copy link
Collaborator

@stephdl stephdl commented Dec 5, 2025

Introduce a new script for creating synchronization tasks from a CSV file containing user credentials. Include an initial users.csv file with sample data and update the README to document the new bulk import feature and its usage.

asked by @nrauso
NethServer/dev#7791

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds bulk user import functionality to create multiple IMAP synchronization tasks from a CSV file. The implementation includes a Python script that reads user credentials from CSV, validates the input, and calls the existing API to create tasks programmatically.

Key changes:

  • New create_tasks_from_csv.py script with CSV parsing, validation, and batch task creation capabilities
  • Sample users.csv file with 5 example user records demonstrating the expected format
  • Documentation in README.md covering CSV format, usage examples, and feature descriptions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 14 comments.

File Description
users.csv Sample CSV file with 5 user records showing the required column structure and format
create_tasks_from_csv.py Main Python script implementing CSV parsing, validation, delimiter detection, and API integration for bulk task creation
README.md Documentation section covering bulk import usage, CSV format requirements, command-line options, and example output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 13 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Dec 5, 2025

@stephdl I've opened a new pull request, #64, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI commented Dec 5, 2025

@stephdl I've opened a new pull request, #65, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Member

@DavidePrincipi DavidePrincipi left a comment

Choose a reason for hiding this comment

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

LGTM, it's a nice feature: let's document it in the Admin's manual too.

@stephdl stephdl merged commit e90fe1d into main Dec 16, 2025
5 checks passed
@stephdl stephdl deleted the bulkImport branch December 16, 2025 11:26
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

Successfully merging this pull request may close these issues.

3 participants