-
Notifications
You must be signed in to change notification settings - Fork 4
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
3 issue api #44
3 issue api #44
Conversation
I'm stuck on making the issue specs compatible with the milestone specs. Issue specs require 2 milestones in the user's own test repo and the organization's test repo. These milestones are constantly being deleted by the Milestone spec. I tried using BeforeAndAfter in Issue spec but it is not behaving as expected. Ideally, the following should happen:
|
What's the problem? I checked out this branch, but your code doesn't mixin BeforeAndAfter. |
I added the commit with BeforeAndAfter. It gives either fails half the tests or aborts the suite. |
@shunjikonishi review me. There is definitely some sort of concurrency issue with the tests, so I created a second test repo (test-repo2) so that it will never conflict with the other specs. One test in OrganizationOpSpec had to be changed to accommodate the second repo. |
Initially, IssueOpSpec failed 5 tests with my local environment, sbt test -Duser.timezone=GMT So, I guess this is timezone problem. #45
I think this is another problem. |
@shunjikonishi review me. The error is most likely produced by the following line: var nTime: DateTime = DateTime.now() Which I use the get the current time so I can compare with the created_at and updated_at time. I added a line to convert your local time into UTC, as I assume Github is on UTC time. var nTime: DateTime = DateTime.now().toDateTime(DateTimeZone.UTC) This should solve the error. Please use commit 96088ef to test this. Also, I noticed the master I used for the base of this branch is outdated and in AbstractJson, the date() function was changed to getDate() recently. The last commit (a8d92d4) uses the new getDate() function. Don't test with this as the branch is still using the date() function. |
@fanwashere fix me To solve conflict, try following step $ git checkout master
$ git pull origin master
$ git checkout 3-issueAPI
$ git rebase master
(Maybe conflict happen, so you have to fix them with your editor.)
$ git rebase --continue
$ git push -f origin 3-issueAPI The points are
This is basic way to merge master to branch. FYI @sukeshni |
Added the last missing method listRepositoryIssue. Implemented tests for create, get, and edit issue, but not done tests for listing and filtering issues. listRepositoryIssue method works but untested.
… listing methods.
… MilestoneOpSpec.
@shunjikonishi Thanks for the advice, this will be useful in the future as I constantly forget to rebase before I make a branch. @sukeshni review me. |
LGTM |
No description provided.