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

#417 Add a function to create a project #431

Merged

Conversation

Only-bottle
Copy link
Member

Description

Please include a summary in English, of the changes in this pull request. If it closes an issue, please mention it here.

Closes: #417

You should link at least one existing issue for PR. Before your create a PR, please check to see if there is an issue for this change.
PRs from forked repository not accepted.

Change(s)

  • Add project entity and repository class.
  • Add contextmanager decorator to get_db.
  • Add constant for project.
  • Add database save logic for project creation.

Memo

Flow:

  1. Check if the project name length is within 30 characters.
  2. Combine the project name with the base path to create the project path.
  3. Store the absolute path of the project.
  4. Check if the project already exists.
    • If it doesn't exist, create sub folders (trained models, compressed models, pretrained models).
  5. Save project-related data to the database:
    • Project name
    • User ID
    • Project absolute path

@Only-bottle Only-bottle added the enhancement New feature or request label Dec 6, 2024
@Only-bottle Only-bottle self-assigned this Dec 6, 2024
@Only-bottle Only-bottle linked an issue Dec 6, 2024 that may be closed by this pull request
2 tasks
@Only-bottle Only-bottle merged commit fda9585 into add-backend-server Dec 6, 2024
2 checks passed
@Only-bottle Only-bottle deleted the 417-add-a-function-to-create-a-project branch December 6, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Sprint] Add a function to create a project
1 participant