adamkali / adamkali/Tavern-Backend

Check for the prefrences and see if they are compatible

未關閉
#5 0 則留言 0 個 reaction 已指派 1 人 已被 @adamkali 認領 在 GitHub 檢視
enhancement good first issue
主要語言
Go
星號
2
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

https://github.com/adamkali/Tavern-Backend/blob/40addcbb17c9f3ec0b39e10e2862b5a24d7f3c56/controllers/UserController.go#L127

There needs to be a way to check if the relationship is compatable by using the prefrences. The other part f this will to be to make a new struct: `type Experience struct {...}` where the user could pick whether or not they prefer to play with someone more expereiced and want to learn, or filter out novices below a certain, or not tocare at all and just want everyone. This will be a data type in the Database, where it can hold data like:

Experience | id | exp | will_teach (int)
--- | --- | --- | ---
1 | 0000... | Veteran | 0
2 | 1111... | Master | 1
3 | 2222... | Godlike | -1

0 meaning 'I do not care I want to play with everyone', 1 'Yeah I want to teach people how to play', and -1 meaning 'I just want to get in and have super fun highjinks at a high level!'

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start at controllers/UserController.go around line 127 and review how preferences are currently handled. Define the requested Experience data type and compatibility behavior for teaching, filtering novices, or ignoring experience, then verify that the preference data is stored in the database and used during matching.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
go
領域
backend, databases
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。