Conversation
Added layouts Added menu items Added classes, activities, fragments
Milestones list view
Remove redundant code
CRUD milestones
Create and edit milestone
View include: - title - due to date - description - progress - back to milestones list button
…Ber/ForkHub into iss8_milestine_view_page
Fixed the test
Added milestone support in old issue class
Fragment replace with updated milestone
Remove unnecessary string (login_or_email)
#39 translations
Merge commits from Jonan repository
Split layouts for different places
jonan
left a comment
There was a problem hiding this comment.
I haven't tested everything yet, but I've added a few comments so you can start working on it if you want.
| <string name="error_gists_load">Ошибка при загрузке Gists</string> | ||
| <string name="error_issue_load">Ошибка при загрузке задачи</string> | ||
| <string name="error_collaborators_load">Ошибка при загрузке соучастников</string> | ||
| <string name="error_milestones_load">Ошибка при загрузке целей</string> |
There was a problem hiding this comment.
Don't update all the RU strings in this PR. You can send a new PR with this changes, but limit this one to just the new strings.
There was a problem hiding this comment.
Fixed in phansier@e3a85c2
If OK, will be merged to PR
| new Moshi.Builder().add(new DateAdapter()).build().adapter(Milestone.class).serializeNulls(); | ||
| Moshi converter = new Moshi.Builder() | ||
| .add(new DateAdapter()) | ||
| .add(Milestone.class, adapter) |
There was a problem hiding this comment.
Why do you need a custom adapter for milestones?
There was a problem hiding this comment.
To allow setting null due_date for milestone
There was a problem hiding this comment.
Can't you achieve the same result by modifying the current DateAdapter?
There was a problem hiding this comment.
No, default adapter for milestones just ignores null properties.
So there is no other way to send patch request with due_on = null.
There was a problem hiding this comment.
No, I mean changing the behavior of https://github.com/jonan/ForkHub/blob/master/app/src/main/java/com/github/mobile/api/DateAdapter.java which is already being used.
There was a problem hiding this comment.
If we set due_on = null, then DateAdapter is not being called by Milestone adapter because it skips null properties.
Yes, we can achieve it only with DateAdapter, if use some date as null. For example, DateAdapter will replace 01/01/1990 to null. But I am not sure, that it is a better alternative.
| filter1.setMilestone(extraMilestone); | ||
| assertFalse(filter1.equals(filter2)); | ||
| filter2.setMilestone(milestone); | ||
| filter2.setMilestone(extraMilestone); |
There was a problem hiding this comment.
This should be done removing the old org.eclipse.egit.github.core.Milestone code, simply creating the milestone with the new model object.
There was a problem hiding this comment.
Fixed in phansier@9e5ae56
If OK, will be merged to PR
| if (milestone != null){ | ||
| issue.setMilestone(milestone.getOldModel()); | ||
| } | ||
|
|
There was a problem hiding this comment.
Whitespace missing before { 😉
And please remove last line break for consistency.
There was a problem hiding this comment.
Fixed in phansier@30048f0
If OK, will be merged to PR
| Call<List<Issue>> getIssues( | ||
| @Path("owner") String owner, | ||
| @Path("repo") String repo, | ||
| @Query("milestone") long milestone); |
There was a problem hiding this comment.
We prefer to fix it in future because it is not the vital problem for milestones
app/src/main/java/com/github/mobile/ui/issue/IssuesViewActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/res/menu/repository.xml
Outdated
| <item | ||
| android:id="@+id/m_milestone" | ||
| app:showAsAction="never" | ||
| android:title="@string/milestone"/> |
There was a problem hiding this comment.
We should probably use the plural "Milestones" here.
There was a problem hiding this comment.
Fixed in phansier@f493fe9
If OK, will be merged to PR
| else | ||
| setGone(2, true); | ||
|
|
||
| setChecked(0, selected == position); |
There was a problem hiding this comment.
Why delete this code?
You're breaking the issue filtering by milestone
There was a problem hiding this comment.
Fixed together with UI fixes phansier@d3658ad
If OK, will be merged to PR
app/src/main/java/com/github/mobile/ui/issue/EditIssuesFilterActivity.java
Outdated
Show resolved
Hide resolved
Ui changes
PR comments fix
… into pr_comments_fix
Revert Incorrect transition between issue and milestone activities
Created:
Made other changes related to Milestones
Changed some russian (ru) localisation strings.