What balance of detail do we want to strike when it comes to a dedicated files table?

未关闭
#578 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
python, sql

调研方向

Read the linked issues #211 and #451, along with #232, to identify the file related use cases mentioned in the issue. Then review how the project currently stores filenames and pull request files. The issue is complete when the team agrees which file information belongs in a dedicated table and which use cases that table should support.

由索引模型根据 Issue 内容生成。

描述

design discussion

Several issues are likely going to require and/or benefit from having a dedicated files table:

While we have access to the full history of every file (because we have the git clones) - how much of this information makes sense to store (copy into) the database? Where do we draw the line between copying everything from git into the DB or not?

Why do this?

  • we need a files table that at least refers to the filenames so we can deduplicate those references in other tables (i.e. pull_request_files, repo_labor #232 , etc) and save a bunch of disk space.
  • we can more efficiently associate files and commits with joins, allowing us to not duplicate data when we collect two repos that share some or all of their history (#211)

Info wanted for:

  • what usecases there are that regularly touch file specific data that can benefit from this?
主要语言
Python
星标
18
派生
33
平均合并
2 天 16 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

chaoss/CollectOSS 的其他 Issue

查看 chaoss/CollectOSS 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。