This PR enhances the Generate Data command by adding mock labels for posts and fixing the duplication data issue. The command now creates sample posts with associated labels based on the specified data, and it ensures that duplicate spaces and posts are not created during the data generation process.
Changes Made:
Updated the handle method of the Generate Data command to include the creation of mock labels for posts.
Modified the posts_data list to include the "labels" field for each post.
Assigned mock labels to the newly created posts based on the specified data.
Implemented a check to prevent the creation of duplicate spaces and posts. The command now checks if a space and post with the same name already exists before creating a new one.
Removed the creation of duplicate spaces in the handle method to avoid duplication data.
Description:
This PR enhances the Generate Data command by adding mock labels for posts and fixing the duplication data issue. The command now creates sample posts with associated labels based on the specified data, and it ensures that duplicate spaces and posts are not created during the data generation process.
Changes Made: