Skip to content

Commit

Permalink
feat: project update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 21, 2024
1 parent 8493abc commit ef7537b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

Visit [releases](https://github.com/canyon-project/canyon/releases) for full changelog.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "canyon",
"version": "1.0.0",
"main": "index.js",
"description": "Canyon is a JavaScript code coverage solution",
"author": "wr_zhang25@163.com",
"private": true,
"license": "MIT",
"type": "module",
"scripts": {
"test": "pnpm -r do-test",
Expand All @@ -10,8 +13,5 @@
"migrate": "npx prisma migrate dev --schema ./packages/canyon-backend/prisma/schema.prisma",
"rm": "find ./ -type d \\( -name \"dist\" -o -name \"node_modules\" \\) -exec rm -rf {} +",
"preinstall": "node ./scripts/check.js"
},
"keywords": [],
"author": "",
"license": "ISC"
}
}
10 changes: 3 additions & 7 deletions packages/canyon-backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ model User {
@@map("user")
}

// 确认数据结构,Coverage使用随机生成的id,不使用自增id。
// 取消task,使用consumer消费者模式聚合数据
// commitSha => sha
model Coverage {
id String @id @default(cuid())
key String?
Expand All @@ -39,9 +36,9 @@ model Coverage {
relationID String @map("relation_id")
createdAt DateTime @default(now()) @map("created_at") @db.Timestamp(3)
updatedAt DateTime @default(now()) @map("updated_at") @db.Timestamp(3)
consumer Int // 1: 未消费, 2: 已消费
children String[] // 记录由哪些子任务生成
tags Json[] // 打标签
consumer Int
children String[]
tags Json[]
@@map("coverage")
}
Expand All @@ -52,7 +49,6 @@ model Project {
pathWithNamespace String @map("path_with_namespace")
description String
bu String
// maxCoverage Float @map("max_coverage")
createdAt DateTime @default(now()) @map("created_at") @db.Timestamp(3)
@@map("project")
Expand Down

0 comments on commit ef7537b

Please sign in to comment.