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

Created toolkit uploader #26

Merged
merged 5 commits into from
Apr 25, 2024
Merged

Created toolkit uploader #26

merged 5 commits into from
Apr 25, 2024

Conversation

mohammadmehrab
Copy link
Contributor

Created an uploader for the toolkit which uploads parsed JSON content to the Mongo database. Both replace and merge options are implemented.

Created an uploader for the toolkit which uploads parsed JSON content to the Mongo database. Both replace and merge options are implemented.
@mohammadmehrab
Copy link
Contributor Author

The checks that failed seem to have done so because of the existing methods in database.go using deprecated methods. Should I update database.go to use either mongo.Connect (like the errors suggest) or sessions?

@jpahm
Copy link
Contributor

jpahm commented Apr 23, 2024

Updating to use mongo.Connect would be great :)

@jpahm jpahm self-requested a review April 23, 2024 05:28
mohammadmehrab and others added 4 commits April 23, 2024 12:48
Changed connectDB() to use non-deprecated methods, and fixed many issues in uploader (currently still broken)
Created a generic function for uploading JSON files to Mongo, and added some comments for clarification. Currently the function requires that the file name is the same as the collection that the file contents are being uploaded to. Only courses, professors, and sections are supported.
@jpahm jpahm merged commit b93064c into UTDNebula:develop Apr 25, 2024
2 checks passed
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