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

what Contents#iterate() is doing? #863

Closed
yegor256 opened this issue Jul 8, 2014 · 38 comments
Closed

what Contents#iterate() is doing? #863

yegor256 opened this issue Jul 8, 2014 · 38 comments

Comments

@yegor256
Copy link
Member

yegor256 commented Jul 8, 2014

I don't understand what Contents#iterate() is doing? This functionality is not provided by Github and we don't have an integration test for the method. I think it's obsolete and should be deleted.

@yegor256
Copy link
Member Author

yegor256 commented Jul 8, 2014

I think this method was originally intended to list content of a directory. For example, see https://api.github.com/repos/jcabi/jcabi-github/contents/src This request returns a list of files in a directory, and should be treated differently (since it's not a JSON object, but an array).

In that case, it makes sense. Let's leave the method in the interface, but document it properly and make sure it works. Now it doesn't work.

@dmarkov
Copy link

dmarkov commented Jul 8, 2014

I'll find a developer for the task soon...

@dmarkov
Copy link

dmarkov commented Jul 8, 2014

thank you for the ticket reported, I topped your account for 15 mins, transaction 000-70b57f21

@dmarkov
Copy link

dmarkov commented Jul 9, 2014

@aistomin this is your task now, please help

@dmarkov
Copy link

dmarkov commented Jul 20, 2014

@aistomin just a reminder that you're working with this task for 12 days already

@dmarkov
Copy link

dmarkov commented Jul 29, 2014

@aistomin this task is taking too long, I have to change the performer, sorry. Please stop working with it right now. See our no obligations principle

@dmarkov
Copy link

dmarkov commented Jul 29, 2014

@svarovski this task is for you, keep these principles in mind, and don't hesitate to ask any technical questions

@dmarkov
Copy link

dmarkov commented Jul 29, 2014

@svarovski 30 mins is the budget of the task. This is exactly how much will be paid when the problem is solved (no matter how much time you will actually spend). See this for more information

@dmarkov
Copy link

dmarkov commented Aug 10, 2014

@svarovski you're working with this ticket for the last 11 days. If it's not closed within the next 48 hours, it will be re-assigned to someone else, see No Obligations principle

@dmarkov
Copy link

dmarkov commented Aug 19, 2014

@svarovski it takes too long. Usually, we expect any task to be finished in less than a week. I'll assign someone else. Please stop working with it right now. See our no obligations principle

@dmarkov
Copy link

dmarkov commented Aug 20, 2014

@lthuangiang this task is yours, please help (see our key principles of work). If you have any technical questions, don't hesitate to ask right here

@dmarkov
Copy link

dmarkov commented Aug 20, 2014

@lthuangiang The budget of this issue is 30 mins, which is exactly how much will be paid when the task is done (see this for explanation)

@lthuangiang
Copy link
Contributor

@yegor256 I have a concern on this task. Base on API, https://developer.github.com/v3/repos/contents/#response-if-content-is-a-directory, response can be list of files in directory, or list of directories, or both directories and files.

Here is example
GET https://api.github.com/repositories/14204295/contents/src/main/java/com/jcabi/github

[
  {
    "name": "mock",
    "path": "src/main/java/com/jcabi/github/mock",      <----- a directory
    ....
  },
  {
    "name": "package-info.java",
    "path": "src/main/java/com/jcabi/github/package-info.java",   <----- it's a file
    .....
  },
  {
    "name": "wire",
    "path": "src/main/java/com/jcabi/github/wire",     <------ it's a directory
    ----
]

So should we only return contents if they is file types? or we will loop all sub directories to find contents?

@yegor256
Copy link
Member Author

We shouldn't loop into directories, but just return a list of files/directories returned. Or I didn't understand your question

@lthuangiang
Copy link
Contributor

as far as my understand, Content object is representation for File in Github, if we return list of files/directories, we will get error when trying to access directory. like #903 . I created this issue to get your advise.

@longtimeago
Copy link
Contributor

@yegor256 @lthuangiang Looks like the issue is closely related to this one #903. Any news here?

@dmarkov
Copy link

dmarkov commented Dec 26, 2014

@lthuangiang the task is overdue, and I have to re-assign it to someone else. Please, stop working with it immediately. In general, we're against overdue tasks, check this page

@dmarkov
Copy link

dmarkov commented Dec 26, 2014

@darkled this task is yours, please help (see our key principles of work). If you have any technical questions, don't hesitate to ask right here

30 mins is the budget of the task. This is exactly how much will be paid when the problem is solved (no matter how much time you will actually spend). See this for more information

@dmarkov
Copy link

dmarkov commented Jan 8, 2015

@darkled you're holding this task for 12 days already... -30 added to your rating, current score is: +60

@asaen
Copy link

asaen commented Jan 8, 2015

@dmarkov this issue as mentioned is closely related to #903. From my point of view, nothing can be done here before that issue is closed. And I am not sure what is this score rating about?

@asaen
Copy link

asaen commented Jan 9, 2015

@dmarkov please, assign this task to someone else

@dmarkov
Copy link

dmarkov commented Jan 12, 2015

@dmarkov please, assign this task to someone else

@darkled I will assign somebody else to this issue

@dmarkov
Copy link

dmarkov commented Jan 12, 2015

@darkled you've been working with this task for too long. I'm sorry, but I'll assign someone else. Please stop working with it. See our no obligations principle; -60 added to your rating, current score is: -90

@asaen
Copy link

asaen commented Jan 12, 2015

@dmarkov @yegor256 I am not sure these -60 are correct, since I've rejected the task 3 days ago, aren't they?

@dmarkov
Copy link

dmarkov commented Jan 14, 2015

@maurezen it's your task, go ahead

@maurezen
Copy link
Contributor

@dmarkov @yegor256 shouldn't there also be my account label on this ticket?

@maurezen
Copy link
Contributor

@yegor256 @dmarkov this depends on #968 and probably on #903 as well (are not these two bugs the same problem?) . What do we do with that? Is puzzle submission sufficient in this case?

Also are we talking about RtContents here? Contents is an interface.

@maurezen
Copy link
Contributor

@yegor256 any comments?

@yegor256
Copy link
Member Author

@maurezen I think we should create an integration test for RtContents and take it from there. If it passes, good, close the ticket. If it doesn't pass, try to fix it. If you can't, create a puzzle and close the ticket.

maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 21, 2015
@maurezen
Copy link
Contributor

@yegor256 created a pull request here #995

maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 21, 2015
maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 21, 2015
maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 22, 2015
maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 22, 2015
maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 23, 2015
maurezen added a commit to maurezen/jcabi-github that referenced this issue Jan 26, 2015
@maurezen
Copy link
Contributor

@yegor256 pull request #995 merged to master, please close the issue.

@yegor256
Copy link
Member Author

@maurezen thanks!

@maurezen
Copy link
Contributor

@yegor256 thanks!

@dmarkov the issue is closed.

@dmarkov
Copy link

dmarkov commented Jan 27, 2015

once 863-4e783bd3 puzzle is resolved (later, in another ticket), this ticket will be fully complete

@maurezen
Copy link
Contributor

@yegor256 @dmarkov I'm confused as to what's the policy in this case. I believe in jcabi/jcabi-manifests#16 the ticket was considered complete once closed, despite the puzzle introduced. What way should it be?

@yegor256
Copy link
Member Author

@maurezen this task is done, the puzzle will be fixed in another task, later

@dmarkov
Copy link

dmarkov commented Jan 28, 2015

@maurezen 30 mins sent to your balance (ID 50904270), many thanks!. +30 added to your rating, at the moment it is: +915

@0pdd
Copy link

0pdd commented Jul 5, 2022

@yegor256 the puzzle #unknown is still not solved.

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

No branches or pull requests

7 participants