-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add ability to hide packages from search index #391
Conversation
Looks good so far, but I have a couple of suggestions:
If we do both of those I think we can consider #287 resolved. |
Oh also, in the help page, I think we should suggest that when deprecating a package, the package author should add a notice at the top of their README explaining why the package is deprecated and what previous users of it should now do instead. |
^ considering this I think that inserting the |
I’m not sure I understand why that would be more elegant - the reason I suggested the set of package names was that the only query we will want to do concerning this data will be “is this package deprecated or not” in order to decide whether to display the deprecation banner or not. Now that you mention it, we probably should add a PackageResult to the index as well for deprecated packages, as I think searching for a deprecated package name should still succeed. |
Oh ok, I see what you're saying then; if we search for a particular package in the search index and check the |
Yeah, I was thinking about the same a minute ago. Will do. |
Looks great, thanks! I've just realised that this won't play fantastically well with the caching mechanism (see For future reference, the way we currently deal with information which might change after a package has been uploaded for the first time is to provide that data separately and fetch it with XHR after the page has loaded. This is what the So the obvious approach for addressing this would be to provide package deprecation statuses via a separate XHR endpoint in a similar way to how we provide available versions. However, I'm also open to replacing this caching mechanism entirely, since it's fairly awkward. |
Add ability to hide packages from search index by specifying
pursuit-no-search-index
as a bower keyword.