-
Notifications
You must be signed in to change notification settings - Fork 248
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
Remove android.text.format.Time usage. #467 #646
base: master
Are you sure you want to change the base?
Conversation
The changed A concrete issue now is that now there is a crash with the current state of opentasks/opentasks-provider/src/main/java/org/dmfs/provider/tasks/processors/tasks/Validating.java Lines 265 to 270 in aa955cd
Is this check still relevant or shall we remove it start to allow floating times? (Besides reviewing |
There are several new
They are yet to be reviewed together with their place of usage, so they may change. As far as I know gradle builds multi-module projects faster now compared to having the same code in single-module because of incremental builds (doesn't recompile untouched modules). So from this point of view it is beneficial to modularize the project more. What do you think, are you okay with creating that datetime module? Once these classes seemed to be settled here, meaning we are sure they are needed, this could be taken into a separate ticket, where tests can be added, too. |
Note that as per current state the new jems types are not needed, only |
In order to break this up to smaller pull requests meaningfully, I am going to create a ticket for the new DateTimeFieldAdapters (Combined and Simple). I will continue on a new branch with the stripped down changeset for that pull request and put this branch on hold. |
46e013b
to
6dfa8a1
Compare
@dmfs I am submitting this just to start discussing the changes, what to extract, etc. I haven't reviewed the changeset yet.
Notes, questions, comments:
1. New classes, types to for jems:
Conditional
,MapFlattened
(flatmap),Procedure
I am going to add tickets and pull requests in jems, we can discuss the names, details there.
-> submitted and listed them for next jems release ticket: Release version 1.16 jems#147
-> they may not be needed after all, just Procedure is used currently (that doesn't required a new jems necessarily)
2. Unused classes that used
Time
:NotAfter
,NotBefore
,ShiftIfAfter
,ShiftTime
- okay to remove them? -> I've removed them, let me know if they should be kept instead3. Remove the
if start or due then timezone != null
validation inValidating
allowing floating times? Remove android.text.format.Time usage. #467 #646 (comment)4. General (not provider related)
Single<DateTime>
classes to new datetime module? And separate ticket, once they are settled. Remove android.text.format.Time usage. #467 #646 (comment).. there are many more questions, general comments, I will put them down later.
I also plan to change some of the new classes, for example to introduce
Evaluated
decorator whereCursor
is passed in. Also not use that newContainerArgument
but theSingle<>
decoration as you did in the provider.