Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Design doc: new search API #9533
Design doc: new search API #9533
Changes from all commits
e56e39c
05f8834
d522164
d31be80
0851765
551c839
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this pattern. It's pretty explicit what the user wants:
project:docs/latest
: won't include subprojects at allsubprojects:docs
: will include only results from all the subprojects from thedocs
projectproject:docs/latest subprojects:docs
: will include results fromdocs
and all its subprojectsBTW, I would name it
subproject
(singular) to match the other keyproject
and avoid confusions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm implementing the inclusive option of
subprojects
, but I'm also fine with the exclusive option. @ericholscher thoughts? I did the first because it mimics our current behavior.I think the plural version is more explicit, since the relationship is one to many, and that's the word we use in our code base/documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plural is the correct, yeah. I re-read it today and it makes sense. In fact, it could also be
subprojects_of
if we want to be more explicit about its meaning.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also maybe just drop domains from the new API (#9571), but that decision can be made later, since we would just stop returning these type of blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do this, we could do something similar to github, having a global search bar, and offering the scopes depending if you are on a project/organization or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that is what I'm imagining. Basically we just prepend the project slug in project search mode, but the same UX can be used globally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, are we okay for now to just redirect to the global search with the filter set when clicking on
Search
inor do we want to have the new search bar together with this implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for .org, we probably want some kind of "explore" functionality. It's not a huge priority, but I think that's the natural outcome of project search & tag data. But outside the scope of this document.
What does "as is" mean here? Is it the same search bar? A different one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the same search bar, as an option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should switch this to searching your projects by default on .org too, but with an obvious for global?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can start the search with the
user:@me
filter set, and if you want a global search, you just remove that filter.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a neat idea. This is the start of something like collections #3784 that I've talked about for a long time, if we added
tag:
filtering, for example. We probably wantorg:
filtering too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These would be definitely great additions! 💯