Skip to content

feature/seed-media#3

Merged
cedricve merged 4 commits into
mainfrom
feature/seed-media
Nov 2, 2025
Merged

feature/seed-media#3
cedricve merged 4 commits into
mainfrom
feature/seed-media

Conversation

@KilianBoute
Copy link
Copy Markdown
Member

@KilianBoute KilianBoute commented Oct 30, 2025

Description

Pull Request Title: feature/seed-media

Description:

This pull request introduces a new feature to seed synthetic media data into the database. The main motivation behind this change is to facilitate the testing and development process by populating the database with realistic sample data. This ensures that developers can work with a representative dataset, improving the overall quality of the project.

Changes Made:

  1. Dockerfile and Devcontainer Setup:

    • Added a Dockerfile to set up the development environment with Go, Node.js, and npm.
    • Configured the devcontainer to include necessary VSCode extensions and post-create commands.
  2. Seed Media Script:

    • Implemented a comprehensive Go script (seed-media.go) to insert synthetic media data into MongoDB collections.
    • The script handles user creation, subscription management, device simulation, and media document insertion.
    • It includes signal handling to gracefully stop the process and provides detailed logging and progress reporting.
  3. Main Application:

    • Integrated the seed media functionality into the main application, allowing it to be triggered via a command-line argument.

Motivation:

  • Enhanced Testing: By seeding the database with synthetic media, developers can test features and functionalities more effectively, ensuring that edge cases and various scenarios are covered.
  • Improved Development Workflow: The seeded data helps in creating a consistent and realistic development environment, reducing the time spent on manual data entry and setup.
  • Quality Assurance: Automated seeding ensures that the database state is reproducible and consistent across different development and testing environments, leading to more reliable and predictable outcomes.

This feature significantly improves the project by providing a robust mechanism for data generation, which is crucial for development, testing, and quality assurance processes.

@cedricve cedricve self-requested a review November 1, 2025 09:28
@cedricve cedricve linked an issue Nov 1, 2025 that may be closed by this pull request
@cedricve
Copy link
Copy Markdown
Member

cedricve commented Nov 2, 2025

merging the cli PR current state, will reuse the dev container. Please open a new PR for the separation of users / devices seeding

@cedricve cedricve merged commit b2ac3c3 into main Nov 2, 2025
2 checks passed
@cedricve cedricve deleted the feature/seed-media branch November 2, 2025 09:28
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.

feature: create database seeder

2 participants