code-corps / code-corps/code-corps-api

Implement basic task matcher module

オープン
#736 コメント 2 件 リアクション 0 件 担当者 1 名 @ignu が担当を希望しています GitHub で見る
Difficulty: Easy good first issue hacktoberfest in progress needs estimate
主要言語
Elixir
スター
234
フォーク
82
PR マージ指標
30日以内にマージされた PR はありません

説明

# Problem

From #668 we need a very basic task matcher module.

We would require a module, for example, `UserTaskMatcher` with a `&match_user/2`

```Elixir
defmodule CodeCorps.UserTaskMatcher do
@default_task_count
def match_user(%CodeCorps.User{} = user, task_count // @default_task_count) do
get_list_of_tasks_with_most_overlapping_skills(tasks_count)
end

defp get_list_of_tasks_with_most_overlapping_skills(amount) do
# implementation goes here. probably a simple query initially
# join user skills and tasks skills, group and count by task, order by count
# limit the number of results to amount
end
end
```

## Subtasks

- write described module
- write tests for it

# References

- taken from #668

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。