bcgov / bcgov/SIMS

Remove the deprecated method substr from application

Open
#1,626 0 comments 0 reactions 0 assignees View on GitHub
Task Technical Debt
Dominant language
TypeScript
Stars
29
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Describe the task**
Substr is a deprecated method which needs to be removed across the application.
![image.png](https://images.zenhubusercontent.com/60e72aa247c95cd873ed8ce1/87fc382e-f4ef-41e4-9946-88846a3538bf)
Note: As this method is widely used at file integration to parse the record data, make sure that the replacement of substr exactly replaces the logic what substr does. The OOTB method subString is not exactly the replacement of substr.

**Acceptance Criteria**
- [ ] Replace all substr with an equivalent method.

**Additional context**
- Add any other context about the task here.
- Or here

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the application for uses of the deprecated substr method, then inspect the file-integration parsing paths first. Compare each candidate replacement with substr's behavior rather than assuming subString is equivalent. Done means all uses have an equivalent replacement and the record-data parsing logic remains unchanged.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.