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

Feature Request - Django Extension for Populating Dummy Data in LMS #24

Open
WajahatKanju opened this issue Feb 3, 2024 · 1 comment

Comments

@WajahatKanju
Copy link
Contributor

Issue Description

Background:
Contributing to the Django LMS project can be challenging for newcomers, especially when setting up a development environment with realistic data for testing and development purposes. To facilitate a smoother onboarding process for contributors, it would be beneficial to have a Django extension feature that automates the population of the database with dummy data for teachers, students, lecturers, courses, books, etc.

Feature Proposal

Introduce a Django management command or an extension that enables developers to easily populate the database with realistic and customizable dummy data. This feature should cover various aspects of the LMS, such as users (teachers, students, lecturers), courses, books, and any other relevant entities.

Key Requirements

  1. Flexibility: The feature should allow contributors to specify the quantity and types of dummy data to be generated, ensuring that it aligns with the specific needs of their testing scenarios.

  2. Realistic Data: The generated dummy data should closely resemble real-world scenarios, providing a more accurate representation of how the LMS functions in different situations.

  3. Ease of Use: The extension or management command should be easy to use, with clear documentation on how contributors can utilize it to populate their database with dummy data.

  4. Customization: It should offer options for customizing the characteristics of the generated data, such as randomization, specific attributes, and relationships between entities.

Potential Implementation

One possible implementation could be creating a management command named populate_dummy_data that accepts arguments or options for specifying the quantity and types of data to generate. For example:

python manage.py populate_dummy_data --teachers 10 --students 50 --courses 20 --books 30

Expected Outcome

With this feature, new contributors can effortlessly set up a development environment with realistic data, enabling them to focus on actual code contributions and testing scenarios without the burden of manually creating dummy data.

This feature will not only enhance the onboarding experience for contributors but also foster a more efficient and collaborative development environment.

Feel free to discuss and provide feedback on this proposal.

@adilmohak
Copy link
Owner

Having this feature will significantly reduce the time required to populate data for testing. We can create Django management commands to populate dummy data. Please feel free to create a pull request with this feature.

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

No branches or pull requests

2 participants