Code-4-Community / Code-4-Community/bcan
DEV - Abstract out validation
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Overview
In each module there are a lot of validtion checks in the method which makes them very bloated. It would be good to have validation done in separate methods.
Tasks
- Abstract out input validation from methods.
Acceptance Criteria
- Input validation has been abstracted out.
Contributor guide
No contributing guide indexed for this repository
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
Start by inspecting the modules and methods that contain the repeated input-validation checks, since the issue names no specific files or entry points. Identify the validation patterns before separating them into methods, and consider the work done when input validation is abstracted from the bloated methods across the relevant modules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100