Skip to content
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

Improve peer review feature quality #2698

Closed
6 of 13 tasks
neslihanturan opened this issue Mar 21, 2019 · 34 comments
Closed
6 of 13 tasks

Improve peer review feature quality #2698

neslihanturan opened this issue Mar 21, 2019 · 34 comments

Comments

@neslihanturan
Copy link
Collaborator

neslihanturan commented Mar 21, 2019

Summary:

After #2602 is merged #2253 is completed. Now some quality issues from hackathon still needs to be fixed.

  • Code style issues @maskaravivek
  • Move from XML to JSON @maskaravivek
  • It scrolls, I would prefer static/ support different screen sizes
  • Images moves on swipe, just questions should move instead @vanshikaarora
  • A beta alert should be added somewhere
  • Make image clickable - Open media details activity when clicked.
  • Not showing the categories peer review screen for the images having zero categories.
  • Or let the user categorize the image.
  • Adding a question mark next to "skip this image" button and Peer Review title which will display an explanation about their usage. @silkypriya
  • Refactor asynctasks to Rxjava implementation @vanshikaarora
  • Write unit tests with kotlin @neslihanturan
  • Optimize randomizer
  • Extracting string resources for i18n

I am willing to work on some of them. But we can share, anyone wants to work on them please comment down.

@vanshikaarora
Copy link
Collaborator

Hey @neslihanturan I would like to work on this Issue

@neslihanturan
Copy link
Collaborator Author

Hi @vanshikaarora , thanks for your interest. Do you have other tasks on you? If so I would recommend finish them first. Otherwise, would you like to write unit tests for this task?

@vanshikaarora
Copy link
Collaborator

@neslihanturan I have some PR's up for review until then I can work on this.

@neslihanturan
Copy link
Collaborator Author

Sure, then I assign "Write unit tests with kotlin" to you? Does it sound good?

@vanshikaarora
Copy link
Collaborator

Yes I will. It would be good if you can tell me specifically about some of the tests that we need to check :)

@neslihanturan
Copy link
Collaborator Author

Following this conversation can be helpful -> #2253 . We have whole workflow there, can help you to understand what we expect from the peer review activity.

@vanshikaarora
Copy link
Collaborator

Currently I see three test cases:

  1. Answering the questions(clicking on the bottom button) should take us to next view pager
  2. On answering the last question view pager should come to first and load the next image
    3.On pressing next reload image and return to the first element of viewpager

@neslihanturan Can you add more to the list :)

@neslihanturan
Copy link
Collaborator Author

neslihanturan commented Mar 21, 2019

  • All of the requests and their answers from server.
  • Test for the randomizer query

I just recognized, actually tests can be complex for this feature. Even though with your previous contributions you have proven that you can handle it, still you can always pick another thing from the list, I can pick the tests too. What about

  • Images moves on swipe, just questions should move instead
    and/or
  • Refactor asynctasks to Rxjava implementation?

They are fairly complex too, but at leats easier to define the scope. I was planning to claim them but we can exchange (tests to me, other 2 to you), what do you say @vanshikaarora ?

@vanshikaarora
Copy link
Collaborator

They are fairly complex too, but at leats easier to define the scope. I was planning to claim them but we can exchange (tests to me, other 2 to you), what do you say @vanshikaarora ?

@neslihanturan since I think that's fair enough. Since for writing test cases it will take me time to be familiar with the changes in the code.

I'll start with the other two tasks 👍

@neslihanturan
Copy link
Collaborator Author

Great:) Do you need more explanation with your 2 tasks?

@maskaravivek
Copy link
Member

@neslihanturan To add to the list, the recent changes API can be moved to JSON. As of now, we are fetching an XML response. I would like to pick this up.

@maskaravivek
Copy link
Member

Also, theres a lot of commented out code in various places. Am removing it.

@neslihanturan
Copy link
Collaborator Author

neslihanturan commented Mar 21, 2019

Thanks @maskaravivek ! I am assigning you for code style in general and moving to JSON, by editing the first comment.

@vanshikaarora
Copy link
Collaborator

Do you need more explanation with your 2 tasks?

@neslihanturan As part of one of my work I am supposed to replace the classes SendThankTask.java and CheckCategoryTask.java to their corresponding RxJava implementation. Right?

@vanshikaarora
Copy link
Collaborator

Refactor asynctasks to Rxjava implementation
Images moves on swipe, just questions should move instead

@neslihanturan I have solved the above two issues in #2707 and #2709. Kindly review and share your feedbacks :)

@vanshikaarora
Copy link
Collaborator

Hey @neslihanturan can you assign me more tasks from this list?

@vanshikaarora
Copy link
Collaborator

Make image clickable - Open media details activity when clicked.
Not showing the categories peer review screen for the images having zero categories.

Hey @neslihanturan I can pick these two task.

@vanshikaarora
Copy link
Collaborator

Hey @domdomegg I was working on some other Issue's enlisted here. If those issues still need to be fixed can you please reopen this Issue :)

@vanshikaarora
Copy link
Collaborator

Not showing the categories peer review screen for the images having zero categories.

Hey @neslihanturan I have solved the above Issue here. Kindly review :)

@neslihanturan
Copy link
Collaborator Author

@vanshikaarora I have added some reviews to your PRs, for now it can be better to focus on your already open PRs instead of having new one. Thanks for several contributions:)

@silkypriya
Copy link
Contributor

silkypriya commented Mar 28, 2019

Adding a question mark next to "skip this image" button and Peer Review title which will display an explanation about their usage.

Hello, @neslihanturan
Can I take this issue ?
I was woking on this and had almost completed this task. Can I make PR for this ?
Thank you!

@neslihanturan
Copy link
Collaborator Author

Sure @silkypriya , thanks:)

@domdomegg
Copy link
Member

domdomegg commented Mar 28, 2019

Can I take this issue ?
I was woking on this and had almost completed this task. Can I make PR for this ?

@silkypriya When you're doing this please can you use the ic_info_outline_24dp drawable, with the android:tint attribute - See #2734. (edited to reflect merge status)

@neslihanturan
Copy link
Collaborator Author

neslihanturan commented Mar 28, 2019

Currently on clicking the image it does nothing. IMO we should show the user the media details on clicking the image same as we do for explore and contributions fragment.

Please continue this suggestion from here @sp2710 :)

@silkypriya
Copy link
Contributor

Hello @domdomegg @neslihanturan ,
I have used ic_help_black_24dp with tint attribute. Shall I change that to info icon ?

Made PR #2783.
Kindly review
Thank you!

@domdomegg
Copy link
Member

I have used ic_help_black_24dp with tint attribute. Shall I change that to info icon ?

I think it might be better to use the info icon given we use it in the rest of the app for the same purpose - we should be consistent.

@cypherop
Copy link
Contributor

@neslihanturan I am picking #2763

@silkypriya
Copy link
Contributor

Hello @neslihanturan
Peer Review activity layout does not support different screen sizes.
Can we add this in the above listed issues ?

Currently Expected
2222 1111

@neslihanturan
Copy link
Collaborator Author

I am adding, thanks @silkypriya

@silkypriya
Copy link
Contributor

Hello @neslihanturan,
Fixed the issue mentioned in last comment in #2811
Kindly Review.
Thank you!

@maskaravivek
Copy link
Member

Optimize randomizer

@neslihanturan Why do we have such a complex logic for randomizer? Can't we randomly pick one revision from the list?

@neslihanturan
Copy link
Collaborator Author

@maskaravivek can you explain more what do you indicate by complex? At the end of the day our purpose is selecting from recently uploaded mobile uploads.

@maskaravivek
Copy link
Member

@maskaravivek can you explain more what do you indicate by complex? At the end of the day our purpose is selecting from recently uploaded mobile uploads.

Oh sorry, I didn't realize that we are trying to select an image uploaded from mobile. But now I am confused that how are we actually filtering mobile uploads. Can you briefly explain the process?

@nicolas-raoul
Copy link
Member

I marked many of the issues as fixed, and the rest have been made not so relevant anymore, due to related changes.
Thus I think this can be closed.
Thanks everyone for your hard work! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants