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

Discuss and change DB scheme #9

Open
rusinikita opened this issue Aug 20, 2023 · 3 comments
Open

Discuss and change DB scheme #9

rusinikita opened this issue Aug 20, 2023 · 3 comments

Comments

@rusinikita
Copy link
Owner

rusinikita commented Aug 20, 2023

erDiagram
    Project {
        id int
        alias string "project name for selectors"
        language string "programming language [not used]"
        forlder_path string "path to root project folder"
        created_at time
    }

    File {
        id ID
        project ID "project id"
        package string "folder path from project rood: opa\opa\opa [used for package grouping]"
        name string "file name with extention: blabla.go [used for file grouping]"
        lines uint32 "file lines count [used in file size chart]"
        symbols uint32 "file symbols count [not used]"
        tags string "json:map[string]uint32 experiment with tags: nolint,billing,money,order [used in file content]"
        imports string "json:[]string parsed imports [used in dep tree]"
        present bool "file exists in last commit and was not deleted, owervise it exists only in git history, [used if file size tree]"
    }
    
    Project ||--o{ File : contains

    GitCommit {
        ID ID
        Hash string
        Author string "[used in contribution chart]"
        Message string "[used in commit message content]"
        Time timeTime "[used in contribution chart]"
    }

    GitCommit ||--o{ GitChange : contains

    GitChange {
        ID ID
        File ID
        Commit ID
        RowsAdded uint32 "[used in contribution chart]"
        RowsRemoved uint32 "[used in contribution chart]"
        Time time
    }

    GitChange ||--|| File : "belongs to"

    Coverage {
        not used "not used"
        File ID
        Percent uint8
        UncoveredCount uint32
        UncoveredLines string "json:[]uint32"
    }

    Coverage ||--|| File : "belongs to"

    Mutant {
        to do
    }

    LintIssue {
        to do
    }
Loading
@rusinikita rusinikita moved this to Ideas in DevEx CLI Aug 20, 2023
@demoneno4ec demoneno4ec mentioned this issue Aug 20, 2023
6 tasks
@rusinikita
Copy link
Owner Author

rusinikita commented Oct 1, 2023

Собирать данные мы научились.

Цель: сделать хорошую схему, удобную для отображения и редактирования данных.

Что нужно отображать:

  1. Список файлов или папок отсортированный по медианному количеству изменений в месяц/неделю в строках
  2. Список файлов или папок отсортированный по количеству lint issues
  3. Список файлов или папок отсортированный по проценту покрытия тестами
  4. Список файлов или папок отсортированный по по количеству мутантов не пойманных тестами
  5. Список папок отсортированный по архитктурным метрикам (1 и 2)
  6. Файл с указанием конкретных строк не покрытых тестами, содержащих мутантов или проблемы из литера

Что нужно редактировать:

  • Обновлять данные проекта. Записывать новую версию данных проекта
  • Добавлять
  • Удалять

@rusinikita
Copy link
Owner Author

rusinikita commented Oct 1, 2023

Files:

  • package -> folder
  • tags, imports -> удалить
  • file created_at, last_updated_at, removed_at

Project:

  • Добавить unique на alias + хеш коммита
  • Настроить Foreign key
  • language удалить

@rusinikita
Copy link
Owner Author

Какие графики хочет:

  • Как размер монолита менялся с течением времени

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ideas
Development

No branches or pull requests

1 participant