You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if e.g. git bug ls could search in this metadata. So let's say I'm offline and I would like to look up https://github.com/author/myproject/issues/6, then that would be possible. Perhaps something like:
git bug ls --metadata github-url=https://github.com/author/myproject/issues/6
@MichaelMure what do you think? I don't mind taking a look at this myself, just wanted to do a sanity-check on the idea in general and on the syntax in particular before I invest time in coding this. Thanks.
I guess that make sense. The syntax is a bit problematic though (both for the query language and the CLI argument for ls): you need to specify both key and value, which is something both of them don't do yet.
To be able to search like that you would need to:
add the metadata in the index (see BugExcerpt) actually it's already there, CreateMetadata in BugExcerpt
add a new keyword in the query language (/query), find a way to deal with the key/value problem
implement the search (/cache/filter.go)
connect all that stuff in the ls command, deal with the key/value problem
Activity
vmiklos commentedon Feb 12, 2021
@MichaelMure what do you think? I don't mind taking a look at this myself, just wanted to do a sanity-check on the idea in general and on the syntax in particular before I invest time in coding this. Thanks.
MichaelMure commentedon Feb 12, 2021
I guess that make sense. The syntax is a bit problematic though (both for the query language and the CLI argument for
ls): you need to specify both key and value, which is something both of them don't do yet.To be able to search like that you would need to:
add the metadata in the index (seeactually it's already there,BugExcerpt)CreateMetadatainBugExcerpt/query), find a way to deal with the key/value problem/cache/filter.go)lscommand, deal with the key/value problem[-]Search by original bug URL[/-][+]Search by arbitrary metadata[/+]vmiklos commentedon Feb 14, 2021
Thanks! I have a PoC (without any error handling) based on the above, will submit a PR when I don't see obvious problems with it anymore.
MichaelMure commentedon Feb 14, 2021
You can also open a draft PR for some early feedback (if I find the time of course), as you prefer.
Add ability to search by arbitrary metadata
Add ability to search by arbitrary metadata
Add ability to search by arbitrary metadata
Add ability to search by arbitrary metadata
Add ability to search by arbitrary metadata