RealDevSquad / RealDevSquad/website-backend
Modify the data models for items
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
The current datamodel for items is as follows
{
'id': string,
'itemId': string,
'itemType': string,
'levelId': string,
'levelName': string,
'levelNumber': number,
'tagId': string,
'tagName': string,
'tagType': string,
}
According to @ankushdharkar's comments here, we should change this as follows.
{
"id":"string",
"item":{
"id":"string",
"type":"string"
},
"level":{
"id":"string",
"name":"string",
"number":"number"
},
"tag":{
"id":"string",
"name":"string",
"type":"string"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified in the issue. Locate the item data model and its consumers, then update the representation to use nested item, level, and tag objects while preserving the stated fields; done means the model and affected uses match the proposed schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100