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

[WIP] v0.1.0特性介绍 #20

Open
21 tasks done
Kaiser-Yang opened this issue Aug 1, 2024 · 0 comments
Open
21 tasks done

[WIP] v0.1.0特性介绍 #20

Kaiser-Yang opened this issue Aug 1, 2024 · 0 comments
Labels
WIP Work-in-Progress

Comments

@Kaiser-Yang
Copy link
Contributor

Kaiser-Yang commented Aug 1, 2024

v0.1.0后端需要完成功能如下:

  • 用户
    • 登录方法
    • 注册方法
    • 检查名称有效性方法
    • 检查邮箱有效性方法
    • 更新用户信息方法
    • 获取用户信息方法
      • 通过名称找用户方法
    • 删除用户方法
      • 数据库中删除用户
      • 关联删除 ssh
  • 仓库
    • 创建仓库 (生成 https_url 部分未实现)
    • 删除仓库
    • 更新仓库:修改仓库描述等,暂不支持修改名称
    • 获取用户的所有仓库列表
  • ssh
    • 上传 ssh 密钥
    • 更新 ssh 密钥
    • 查询 ssh 密钥
    • 删除 ssh 密钥

以下部分计划下个版本 ( v0.2.0) 实现:

  • Star 仓库
  • Fork仓库
  • Watch仓库
  • 搜索仓库
  • 获取单个仓库的详情
@Kaiser-Yang Kaiser-Yang added the WIP Work-in-Progress label Aug 1, 2024
@Kaiser-Yang Kaiser-Yang pinned this issue Sep 25, 2024
Kaiser-Yang added a commit that referenced this issue Sep 25, 2024
We finish the APIs for deleting and updating repository. For the
deleting user API, we now will remove all the ssh-keys uploaded by the
user, but not the repositories.

Besides, we find that we should not trust the data from the client side,
such as the `userId` from request body, we must get this data from the
database to check if the operation is allowed.

See #20 and #32.
Kaiser-Yang added a commit that referenced this issue Sep 25, 2024
We finish the APIs for deleting and updating repository. For the
deleting user API, we now will remove all the ssh-keys uploaded by the
user, but not the repositories.

Besides, we find that we should not trust the data from the client side,
such as the `userId` from request body, we must get this data from the
database to check if the operation is allowed.

See #20 and #32.
Kaiser-Yang added a commit that referenced this issue Sep 25, 2024
We finish the APIs for deleting and updating repository. For the
deleting user API, we now will remove all the ssh-keys uploaded by the
user, but not the repositories.

Besides, we find that we should not trust the data from the client side,
such as the `userId` from request body, we must get this data from the
database to check if the operation is allowed.

See #20 and #32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work-in-Progress
Projects
None yet
Development

No branches or pull requests

9 participants