Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[Bug] - TimePreference class should have "mod-like" behavior

Open asciidiego opened this issue 5 years ago • 8 comments

Reproduction Steps
  1. call parseHours static method with "24:00" as argument
Expected Result

Should return int 0

Actual Result

int 24

Debug info

Refer to the support page if you are unsure where to get the "debug info".

Research

See https://github.com/ankidroid/Anki-Android/pull/8590

Enter an [x] character to confirm the points below:

  • [x] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] I have searched for similar existing issues here and on the user forum
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

asciidiego avatar Apr 12 '21 21:04 asciidiego

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar Apr 12 '21 21:04 welcome[bot]

In #8590 we talk about a "mod-like" behavior for the TimePreference class.

Can we define what is the expected behavior?

Some expectations (tests) in plain-english can be helpful to define the unit tests—and implement the functionality itself :)

Also, take into account that we have a parseHours method and a parseMinutes method.

asciidiego avatar Apr 13 '21 17:04 asciidiego

Sorry, is this bug still exist? Can i work on this issue? I'm a junior student learning Software Engineer, required to fix some issues on github.

YUE-PNG avatar Apr 23 '21 14:04 YUE-PNG

Hi @PANG-hans ! I think the best idea is to find an issue labeled "good first issue" though we may be at zero on those for the moment. This one appears to have some sort of requirements definition question so it's not a great issue to start on unfortunately, we apparently need to discuss it first and decide what we want before we figure out how to do it. That's probably not going to happen for a while

mikehardy avatar Apr 24 '21 14:04 mikehardy

Hi @PANG-hans ! I think the best idea is to find an issue labeled "good first issue" though we may be at zero on those for the moment. This one appears to have some sort of requirements definition question so it's not a great issue to start on unfortunately, we apparently need to discuss it first and decide what we want before we figure out how to do it. That's probably not going to happen for a while

Emmm, maybe it's a better choice. But i'm still a freshman for github and required to use git fix some issues in the course brfore tomorrow. The issue labeled with Good First Issue is bit hard, so i'd want to take it as my first try with git project. Thanks a lot if you can accept the request.

YUE-PNG avatar Apr 24 '21 15:04 YUE-PNG

@PANG-hans I did not look for a good-first-issue issue. When I found this bug, I was looking for untested modules on the project. The code coverage is low, you can fork the project and compile it locally. Then, find modules with low coverage and test those!

You might be surprised at what you will find. And I am sure that, even though is not an explicit issue, maintainers of this project would appreciate the additional testing :)

asciidiego avatar Apr 24 '21 16:04 asciidiego

@PANG-hans I did not look for a good-first-issue issue. When I found this bug, I was looking for untested modules on the project. The code coverage is low, you can fork the project and compile it locally. Then, find modules with low coverage and test those!

You might be surprised at what you will find. And I am sure that, even though is not an explicit issue, maintainers of this project would appreciate the additional testing :)

Thanks a lot!

YUE-PNG avatar Apr 24 '21 18:04 YUE-PNG

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jun 23 '21 18:06 github-actions[bot]