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

Improvements to createtestdata script #473

Merged
merged 1 commit into from
May 6, 2024

Conversation

smartspot2
Copy link
Member

Previously, the createtestdata script creates models in a fixed deterministic order, and almost always the mentor and section ids match up. This can cause some confusions during development, since it's hard to tell which ids correspond to mentors and which correspond to sections. This PR randomly shuffles all of the models prior to creation, to randomize the ids.

Further, all of the sections have very few mentors, and all courses have very few sections. This makes it quite hard to test query and frontend efficiency for larger courses and larger sections. This PR adds a few additional courses, with various combinations of many sections vs. many students per section.

@smartspot2 smartspot2 added the enhancement New feature or request label Apr 5, 2024
@smartspot2 smartspot2 self-assigned this Apr 5, 2024
@smartspot2 smartspot2 force-pushed the fix/createtestdata-improvements branch from ace0605 to c32616c Compare April 26, 2024 01:42
Copy link

cypress bot commented Apr 26, 2024

Passing run #336 ↗︎

0 78 0 0 Flakiness 0

Details:

Improvements to `createtestdata` script (#473)
Project: csm_web Commit: 48cc212986
Status: Passed Duration: 01:53 💡
Started: May 6, 2024 1:27 AM Ended: May 6, 2024 1:29 AM

Review all test suite changes for PR #473 ↗︎

@smartspot2 smartspot2 merged commit 48cc212 into master May 6, 2024
16 checks passed
@smartspot2 smartspot2 deleted the fix/createtestdata-improvements branch May 6, 2024 01:25
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.

1 participant