Release 0.3 — Part 1
Type of Release
This release is regarding the bug fix. The issue page for the bug is here.
How it was Chosen
After working on URL bar icon bug, David Humphrey suggested me to continue working with something relative to that area. He sent me a link to this bug. I thought that it was a really great suggestion! Therefore, I start working on it. After spending quite a time without having any success, I decided to distract myself with another bug for some time and then come back to it. I start going through the issue’s page when I found this bug, which is about making validations to the credit card. Validations!
The reasons I am so excited about the validations is that I have a lot of experience with them. When I was working on the Ionic project, one of the things I was responsible for were validations. So I thought that it was an amazing distraction! After spending a whole day on them though, I realized that not all things that look simple are simple. I felt really overwhelmed. I found two great bugs, and I have no clue even where things went wrong, I am not even talking about finding the solution. I came to the point where I needed to find another distraction from both of the above bugs, and I actually did.
What is the Expected Result
Before:
After:
Process & Solution
I started by looking for a file, which was quite a simple task to do since I am more familiar with the project structure now. I had a feeling that it had something to do with less, therefore I went straight to the less directory where I found the needed file:
Then I needed to find where is the bug is located exactly. In order to do that:
- Reproduce the bug
- Find what’s is causing it and where. If you can, use Developer tools! ( for Brave it’s F12)
With a very few manipulations, I found out which class I needed to look at.
After looking at the code, I thought that the current behavior is actually expectable. I wasn’t sure though, so I decided to ask:
The way I saw how to fix it, was to make it static. After spending some time on it and trying a couple of different things eventually, I was able to fix it:
Result
You can check my Pull Request. Below you can see the actual result: