Skip to content

Conversation

@Duy-Nguyen1104
Copy link

@Duy-Nguyen1104 Duy-Nguyen1104 commented May 18, 2025

Description

This PR adds a comprehensive Rake task (rake db:test_data:create_frontend_data) to populate the development database with realistic test data for frontend development. It includes the creation of user roles, a test convenor user, teaching periods, unit definitions and instances, a course (S326 - Bachelor of Information Technology), a course map, prerequisite relationships, and unit slotting data for visualization. This setup ensures a consistent and realistic environment for testing the Course Map UI and its data dependencies.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

image
  • Rake task was executed successfully in a clean local development database.
  • Verified that the created units, course, course map, and requirement relations appear correctly in the frontend and through backend API calls.
  • Confirmed proper slotting of units
  • Verified no duplicate entries are created on repeated runs
  • Unit codes available for testing from the Rake task:

SIT102 – Introduction to Programming
SIT111 – Computer Systems
SIT182 – Real World Practices for Cyber Security
SIT112 – Introduction to Data Science and Artificial Intelligence
SIT103 – Database Fundamentals
SIT224 – Information Technology Systems and Innovation
SIT120 – Introduction to Responsive Web Apps
MIS201 – Digital Business Analysis
SIT216 – User-Centered Design
SIT317 – Information Technology Innovations and Entrepreneurship
SIT223 – Professional Practice in Information Technology
SIT374 – Team Project (A) - Project Management and Practices
SIT328 – Communicating Information Technology Projects
SIT344 – Professional Practice
SIT232 – Object-Oriented Development
SIT323 – Cloud Native Application Development

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have created or extended unit tests to address my new additions

@Duy-Nguyen1104 Duy-Nguyen1104 changed the title Feat/template coursemap feat: Add template coursemap for CourseFlow Aug 1, 2025
Copy link

@giangnht19 giangnht19 left a comment

Choose a reason for hiding this comment

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

I have migrated a new database and courses have been successfully populated
Screenshot 2025-08-04 001847

Copy link

@martindolores martindolores left a comment

Choose a reason for hiding this comment

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

Great stuff! I was able to populate my DB with the test data and confirm that the data is showing. Awesome work 🤘

@BrianDangDev
Copy link

Close this PR since it's behind this one PR#71

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.

4 participants