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

labels should not be pre-escaped #71

Open
flokli opened this issue Sep 10, 2019 · 3 comments
Open

labels should not be pre-escaped #71

flokli opened this issue Sep 10, 2019 · 3 comments
Labels

Comments

@flokli
Copy link

flokli commented Sep 10, 2019

Gerrit syntax allows to query for approval scores, so something like the following is possible:

status:open label:verified=+1,user=jenkins

For all open changesets that were +1'd by a user named jenkins.

Due to 8adc2df, it however currently is impossible construct such a query - the + inside label:verified=+1 gets escaped wrongly.

@andygrunwald
Copy link
Owner

Thank you for the report. Would you be able to construct a failing unit test for this?

@opalmer Any thoughts on this?

@opalmer
Copy link
Contributor

opalmer commented Sep 24, 2019

Hmm, the escaping that's being done now is probably correct either in older version or when there are multiple queries separated with ,. I don't have access to a recent version of Gerrit to test with so if there's a way to construct a failing test case that could be used to test a fix against that would help.

@flokli
Copy link
Author

flokli commented Sep 24, 2019

@opalmer what about review.coreboot.org? It's on the latest gerrit version, and I can query the following: label:Verified=+1,user=jenkins status:open

Link: https://review.coreboot.org/q/label:Verified%253D%252B1%252Cuser%253Djenkins+status:open

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

No branches or pull requests

3 participants