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

Vps 170/connecting the csv upload file to the upload csv button #197

Conversation

laibatool792
Copy link
Contributor

Describe the issue

Non-functional upload button
Groups data from csv upload not saved anywhere
Manage Groups table inside scenarios not displayed on the website

Describe the solution

Upload button within each scenario takes a csv file. Parse the csv, and depending on assigned group number within csv, group users. Made into a 2D array which is a list of all groups which has a list of users within each group. Parsed JSON sent to backend where upon successful validation, is stored. Each upload has alerts informing whether the upload was successful or not.

Data is displayed appropriately in the manage groups table, mapped using unique emails (or index if there are email duplicates).

Risk

Potential merge conflicts in backend.
Possibly too many alerts.

Definition of Done

  • Code peer-reviewed
  • Wiki Documentation is written and up to date
  • Unit tests written and passing
  • Integration tests written and passing
  • Continuous Integration build passing
  • Acceptance criteria met
  • Deployed to production environment

Reviewed By

Who reviewed your PR - for commit history once merged

Using Papa.parse the csv is iterated through and all students with the same group number are sorted into a list, part of a larger list of groups. Validation exists for empty strings and lines.
@laibatool792 laibatool792 requested a review from wjin-lee May 29, 2024 01:02
Copy link
Member

@wjin-lee wjin-lee left a comment

Choose a reason for hiding this comment

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

lgtm!

@wjin-lee wjin-lee merged commit b78f6b8 into master May 29, 2024
6 checks passed
@wjin-lee wjin-lee deleted the VPS-170/Connecting-the-CSV-upload-file-to-the-Upload-CSV-Button branch May 29, 2024 03:21
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.

2 participants