Skip to content

Conversation

@hoangsonww
Copy link
Member

SUMMARY

This PR adds a script to generate case config .csv for a specified email address.


Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I've included tests I've run to ensure my changes work.
  • I've added unit tests for any new code, if applicable.
  • I've documented any added code.

@hoangsonww hoangsonww requested a review from Copilot June 27, 2025 02:06
@hoangsonww hoangsonww self-assigned this Jun 27, 2025
@hoangsonww hoangsonww added the enhancement New feature or request label Jun 27, 2025
@hoangsonww hoangsonww merged commit 01f818a into main Jun 27, 2025
1 check passed
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 introduces a shell script to generate a case configuration CSV for assigning cases to a single user by querying a PostgreSQL database. Key changes include:

  • Addition of a new shell script (generate_config_single.sh) that retrieves cases and writes them in CSV format.
  • Inclusion of a sample CSV output file (config1.csv) generated by the script.

Reviewed Changes

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

File Description
script/assign_cases/generate_config_single.sh New script that prompts for DB credentials, fetches case data with multiple UNION queries, and writes the results to a CSV file.
script/assign_cases/config1.csv Sample CSV file containing case configuration data generated from the script.
Comments suppressed due to low confidence (1)

script/assign_cases/generate_config_single.sh:21

  • The usage instructions refer to 'generate_config.sh' rather than the actual file name 'generate_config_single.sh'. Consider updating this comment to match the filename for clarity.
#   chmod +x generate_config.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants