Skip to content

Misc. fixes, partly to work with newer Gerrit versions#17

Merged
andygrunwald merged 5 commits intoandygrunwald:masterfrom
sschuberth:master
Jan 19, 2016
Merged

Misc. fixes, partly to work with newer Gerrit versions#17
andygrunwald merged 5 commits intoandygrunwald:masterfrom
sschuberth:master

Conversation

@sschuberth
Copy link
Copy Markdown
Contributor

Please see the individual commit messages for the details.

If there are hosts (including a port) defined in ~.ssh/config it is common
to only us ethat host's name without a port with SSH. So allow to not
specify a port in Gerrie's config. Instead of not setting it, set it
explicitly to null so that bootstrapSSHDataService() do esnot stumple over
it complaining about an "Undefined index: port".
As Gerrit project namess are case-sensitive, we need to make the database
lookup for projects case-sensitive, too.
@andygrunwald
Copy link
Copy Markdown
Owner

This changes are looking great. Thank you!

andygrunwald added a commit that referenced this pull request Jan 19, 2016
Misc. fixes, partly to work with newer Gerrit versions
@andygrunwald andygrunwald merged commit 82c66fe into andygrunwald:master Jan 19, 2016
@sschuberth
Copy link
Copy Markdown
Contributor Author

Wow, thanks for the fast merge! .-)

Note that still more work would be required to get the pagination work with newer versions of Gerrit. These changes only make Gerrie work without throwing an exception, but results may be incomplete.

@andygrunwald
Copy link
Copy Markdown
Owner

Thank you for this additional note @sschuberth.
In my spare time i am working on watson, a crawler for Googles code review system "Gerrit".

At the first view it looks like a "copy" of Gerrie, but it is not.
watson focus on "easier usage". I recognized that get Gerrie up and running and establish ssh connections might be difficult (or for some Gerrit instance like Google ones impossible, because they don`t support SSH access).

The goal of watson is easier usage (e.g. there is no need for a PHP installation, just download the cross compiled binary and start). Next to this it supports only the REST-API that drops all requirements of setting up a SSH connection directly.

Of course, watson is still in development and not production ready yet, but maybe it is interesting for you.

@sschuberth
Copy link
Copy Markdown
Contributor Author

Thanks @andygrunwald for pointing me at watson. If you're saying that Gerrie is more or less deprecated, and you won't add new features (like pagination support) to it, maybe you should say so in the README and include a link to watson, even if watson is not production read yet?

@andygrunwald
Copy link
Copy Markdown
Owner

Good point. I added a deprecation notice. See 83c9792

Are they any requests from your side regarding watson?
Do you would use watson instead of Gerrie?

@sschuberth
Copy link
Copy Markdown
Contributor Author

I don't have any requests regarding watson as I haven't tried it out yet :-) But if so, I'll file an issue over there. Does watson already support Gerrit >= 2.10 style pagination with offsets instead of sort keys?

BTW: What was the rational to use Go instead of PHP for watson? (Something that maybe could go into watson's README?)

@andygrunwald
Copy link
Copy Markdown
Owner

Hey @sschuberth,

sorry for the long outstanding answer.
Sadly, i don`t had the time to continue the work on watson. But i am sure that i will continue this in future.

Does watson already support Gerrit >= 2.10 style pagination with offsets instead of sort keys?

Afaik, yes it does.

BTW: What was the rational to use Go instead of PHP for watson? (Something that maybe could go into watson's README?)

My main reason was that Gerrie is quite hard to deploy for new people (especially the SSH key thingy). With Go a single binary it is "just" download and go.
Next to this i wanted to learn Golang.
And as a third reason: By using HTTP only we are able to crawl Gerrit instances like Golang, Android, etc. (Hosted on Googlecode)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants