-
Notifications
You must be signed in to change notification settings - Fork 137
Migrated components not-found, timeout, unauthorised, alert list #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated components not-found, timeout, unauthorised, alert list #2
Conversation
|
Hi @tancnle, correct me if I'm wrong, but our branching guidelines outlines one branch per task/sub-task, correct? Additionally, I believe the component migration tasks are required to follow the QA processes and include unit testing before being merged. Let me know if this is correct, Tan. Thanks! |
|
Thank you for your hard work @Ishrat420 ❤️. You have made some really good progress so far.
That's a great call-out @PerryRose. I agree. That is the general suggestion. As good practice (good is subjective to teams), we want the smallest change possible, accompanied by tests. It helps to reduce cognitive load for reviewers, speed up code review and reduce surprising bugs. @Ishrat420 Please let me know if you need help splitting the changes to multiple PRs and adding tests for them. Or perhaps, if you have capacity @PerryRose, can you help @Ishrat420? Regarding the guidance around Branching and Unit Testing, please help us to improve the doc if things are not clear 🙏🏼 |
|
@tancnle @PerryRose Thank you so much for reviewing my Pr and for your suggestions. Yes it would be great if someone can assist me in regards to splitting the changes in multiple Pr. And if there is a Documentation on how to approach Unit testing, I can definitely work it out. The linked Documentation is in regards to TDD and I believe it is only applicable when a new feature is introduced, and even then it does not elaborate as in what testing tools to use and how to include them, Unit test usually validates a small portion of the source code, is there any real life examples I can follow? TA |
|
No problems @Ishrat420. I've almost reached the part in my component migration where I will begin looking at writing unit tests. As the team isn't quite familiar with this yet (myself included) it is a good opportunity for us to learn together and provide each other with assistance. I will definitely reach out and provide any help once I starting testing. In regard to splitting a branch - I'm not too familiar with this either. I'd imagine creating 4 separate branches, and referring to the 'File changed' tab in this PR to see your new component code would be an easy way to go about. |
fix(feedback-template-editor): improve feedback template sorting logic
Description
Migrating from Coffeescript to Typescript for web.
#Components
Complete Migration done for the following components:
src/app/errors/not-found
src/app/errors/timeout
src/app/errors/unauthorised
src/app/common/alert-list
##Dependencies and Changes to other files
For migration purposes, had to delete old coffee files:
Consequently, made changes to the corresponding states file and module file of the component involved in accordance to the MIGRATION-GUIDE.
How Has This Been Tested?
Manually tested each components, works same as before without any performance or technical issue.
Testing Checklist:
Checklist: