Skip to content

Mass create tool #513

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

Merged
merged 9 commits into from
May 21, 2025
Merged

Mass create tool #513

merged 9 commits into from
May 21, 2025

Conversation

segir187
Copy link
Contributor

@segir187 segir187 commented May 20, 2025

Resolves #512. I created this tool for benchmarking #503 and generalised it so it can be a stand-alone feature. I was missing a tool like this while implementing my previous issues. There is no commit history as it is present in the #503 PR.

Currently it is able to create Problems with associated ProblemSites (necessary for them to show up in the Probset), as well as Users and Algorithm and Difficulty Tags, TagThrough records and TagProposals.

@segir187 segir187 requested a review from MasloMaslane as a code owner May 20, 2025 17:26
@segir187 segir187 self-assigned this May 20, 2025
segir187 added a commit to segir187/oioioi that referenced this pull request May 20, 2025
Copy link
Contributor

@twalen twalen left a comment

Choose a reason for hiding this comment

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

Looks good, but please add some automated tests (i.e. few runs of the script with different arguments to make sure that some new objects are created)

@segir187 segir187 requested a review from twalen May 21, 2025 16:30
Copy link
Contributor

@twalen twalen left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you for the changes.

@segir187 segir187 merged commit 4b7f950 into sio2project:master May 21, 2025
1 check passed
@segir187 segir187 deleted the MassCreateTool branch May 21, 2025 21:37
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.

Tool to create model objects for testing purposes
2 participants