-
Notifications
You must be signed in to change notification settings - Fork 81
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
Question about toDo #31
Comments
Well spotted, looks like a bug. That should probably check the longer term, I'd like to change how the sessionList works and shift to how you described, so you have a session timestamp and it mirrors how the version scope check works. Other work here is that |
@dernster I've just checked the code, we have a test around this. It's not obvious from the code (because as you've seen the implementation doesn't explicitly check As I said this could use a refactor :) but it should be functional (check here: https://github.com/jonfinerty/Once/blob/master/once/src/test/java/jonathanfinerty/once/ToDoTests.java#L59 for validation) |
@dernster I'll going to close this, if that's ok? I'll do the refactoring at some point, but outside of this issue as it's more an enhancement. |
@jonfinerty You are right! Thanks for clarifying that :) I was reviewing your code since I was thinking about implementing this library for Swift. Our Android team use this Once component a lot and for iOS there was nothing like this. Thanks! |
Amazing, thanks for the link, it's really cool someone is building upon something I built. |
Reviewing the
public static void toDo(@Scope int scope, String tag)
function specification it says "if it has already marked to do or been done within that scope then it will not be marked." but the actual implementation does not involve theTHIS_APP_SESSION
scope. I'm wondering why the implementation does not check if the tag was done within that scope? Maybe we should have a session start timestamp in order to do that... what do you think?The text was updated successfully, but these errors were encountered: