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

WorkInProgressInput class is missing #135

Open
EFregnan opened this issue Mar 28, 2021 · 7 comments
Open

WorkInProgressInput class is missing #135

EFregnan opened this issue Mar 28, 2021 · 7 comments

Comments

@EFregnan
Copy link
Contributor

While working on the method SetWorkInProgress, I noticed that the class WorkInProgressInput is not contained in java/com/google/gerrit/extensions/api/changes.

However, my understanding is that this class is necessary for the method SetWorkInProgress to work with a message (the documentation is here).

I have already opened a discussion on the Gerrit google group about this, but I am opening a issue report here as well to keep track of this problem.

@EFregnan
Copy link
Contributor Author

It seems there was a bit of discrepancy between the name of the class reported in the documentation and the real name of the class.

The class we need is WorkInProgressOP (here). However, it is contained in the com.google.gerrit.server path, which is not included in this project.

Would it be fine to add it from the Gerrit REST API codebase?

P.s. The complete reply I received in the Google group discussion is available here.

@uwolfer
Copy link
Owner

uwolfer commented Mar 29, 2021

Would it be fine to add it from the Gerrit REST API codebase?

Yes, you can it.

@EFregnan
Copy link
Contributor Author

Perfect. Thank you!

@EFregnan
Copy link
Contributor Author

EFregnan commented Apr 5, 2021

@uwolfer, I started to work on this but I soon realised that the amount of classes and dependencies we need to add is quite big. To complicate the situation further, there are quite a few new external dependencies that need to be imported.

Do you know if there is there an easy way to import all the dependencies from the Gerrit project or, at least, to figure out which libraries (and versions) they used?

@uwolfer
Copy link
Owner

uwolfer commented Apr 5, 2021

In the past, I've just copied over the whole package from Gerrit repo into this, and then wiped out some things we do not need here because they are internal or unused in another way.

But so far, we have not added any libs (except probably Guava), because Gerrit depends on it. Do you have samples of such libs?

@EFregnan
Copy link
Contributor Author

EFregnan commented Apr 7, 2021

For instance, they often use classes from the AutoValue Annotations library.

I also found some uses of classes from Jgit. Some other external dependencies are used, but generally just once or twice from what I have seen.

@uwolfer
Copy link
Owner

uwolfer commented Apr 8, 2021

For instance, they often use classes from the AutoValue Annotations library.

So far, I think I've omitted classes using this lib (or probably I've added the code generated by this lib manually to the source, not sure anymore).

I also found some uses of classes from Jgit.

Hmm, that sounds really odd - are they using Jgit in the extensions package?

But anyway, you can probably just import classes directly related to WorkInProgressInput for now, and I can take care of doing a full sync (and also document how I do this full sync) at a later point.

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

No branches or pull requests

2 participants