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

Refactor Project Creation into internal/projects Module #5002

Open
teodor-yanev opened this issue Nov 19, 2024 · 0 comments
Open

Refactor Project Creation into internal/projects Module #5002

teodor-yanev opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working P1 Fix Soon: High priority items that should be considered in the next Sprint planning cycle

Comments

@teodor-yanev
Copy link
Contributor

Describe the issue

Currently, project creation logic is split between internal/controlplane and internal/projects. Specifically, in internal/controlplane/handlers_projects.go, we have code handling project creation directly, which leads to code duplication and a less modular structure.

To improve code maintainability and modularity, we should move all project creation logic into the internal/projects module. This change will:

  • Centralise project creation processes.
  • Reduce code duplication.
  • Simplify the internal/controlplane module by offloading project creation responsibilities.

Action Items

  • Move the project creation code from internal/controlplane/handlers_projects.go to the internal/projects module.
  • Ensure that all project creation (including sub-projects) is handled exclusively within internal/projects.
  • Update any references and imports affected by this change.
  • Adjust unit tests and documentation to reflect the new structure.

CC: @ethomson @evankanderson

To Reproduce

No response

What version are you using?

No response

@teodor-yanev teodor-yanev added the bug Something isn't working label Nov 19, 2024
@teodor-yanev teodor-yanev added the P1 Fix Soon: High priority items that should be considered in the next Sprint planning cycle label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Fix Soon: High priority items that should be considered in the next Sprint planning cycle
Projects
None yet
Development

No branches or pull requests

1 participant