mirror of
https://github.com/makeplane/plane.git
synced 2026-01-29 01:38:53 -06:00
* feat: enhance workspace seeding with cycles, modules, and views creation - Added `create_cycles`, `create_modules`, and `create_views` functions to the workspace seeding process, enabling the creation of cycles, modules, and views based on new seed data. - Updated `create_project_issues` to associate issues with cycles and modules. - Introduced new seed files: `cycles.json`, `modules.json`, and `views.json` to provide initial data for cycles, modules, and views. - Integrated these new functionalities into the `workspace_seed` task for comprehensive workspace initialization. * feat: add project_id to page seed data for improved association - Added `project_id` field to the page with `id` 2 in `pages.json` to establish a clear link between pages and their respective projects. - This enhancement supports better organization and retrieval of page data within the project context. * feat: enhance workspace seed task with improved display properties and layout options - Updated the `create_project_and_member` function to include new display properties and layout configurations for better project visualization. - Modified display filters to group by state and added calendar layout options. - Enhanced the `create_modules` and `create_views` functions with improved formatting and structure for better readability and maintainability. * Update apps/api/plane/bgtasks/workspace_seed_task.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: correct project_id mapping in cycle and view creation functions - Updated the `create_cycles` function to use the correct `project_id` from the `project_map` for fetching the last cycle. - Removed redundant `view_id` extraction in the `create_views` function to streamline view creation process. * refactor: update create_cycles function to return project mapping - Changed the return type of the `create_cycles` function from `None` to `Dict[int, uuid.UUID]` to provide a mapping of project IDs after cycle creation. - This modification enhances the function's utility by allowing the caller to access the generated project mappings directly. * refactor: remove unused view_map variable in create_views function - Eliminated the `view_map` dictionary from the `create_views` function as it was not utilized, streamlining the code. - This change enhances code clarity and maintainability by removing unnecessary elements. * refactor: improve issue creation logic in create_project_issues function - Added comments to clarify the creation of issue labels, cycle issues, and module issues within the `create_project_issues` function. - Enhanced code readability and maintainability by structuring the issue creation process with clear conditional checks for cycles and modules. --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>