-
Notifications
You must be signed in to change notification settings - Fork 26.2k
build(aio): add API static members to search index #21988
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
build(aio): add API static members to search index #21988
Conversation
aio/e2e/app.e2e-spec.ts
Outdated
expect(page.getSearchResults()).toContain('ControlValueAccessor'); | ||
}); | ||
}); | ||
|
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.
Moved to search.e2e-spec.ts
@@ -97,7 +97,7 @@ module.exports = function generateKeywordsProcessor(log, readFilesProcessor) { | |||
|
|||
// Special case properties that contain content relating to "members" | |||
// of a doc that represents, say, a class or interface | |||
if (key === 'methods' || key === 'properties' || key === 'events') { | |||
if (key === 'members' || key === 'statics') { |
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 keys were originally copied over from the AngularJS project.
In reality we only have members
and statics
on our Angular API docs.
You can preview 9f250ac at https://pr21988-9f250ac.ngbuilds.io/. |
aio/e2e/search.e2e-spec.ts
Outdated
it('should find classes whose static method name matches the search query', () => { | ||
page.enterSearch('compose'); | ||
expect(page.getSearchResults()).toContain('Validators'); | ||
}); |
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.
Do we need a test for members
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.
We didn't have one before :-P
9f250ac
to
e101b42
Compare
You can preview e101b42 at https://pr21988-e101b42.ngbuilds.io/. |
Added an e2e test for instance members too. |
Previously searching for `compose` did not include `Validators` in the search results because we were not including all the `static` members of API docs in the index.
e101b42
to
a423c0c
Compare
You can preview a423c0c at https://pr21988-a423c0c.ngbuilds.io/. |
Previously searching for `compose` did not include `Validators` in the search results because we were not including all the `static` members of API docs in the index. PR Close #21988
The `search.e2e-spec.ts` file accidentally ended up in the wrong (old) directory, while rebasing angular#21988.
Previously searching for `compose` did not include `Validators` in the search results because we were not including all the `static` members of API docs in the index. PR Close angular#21988
Previously searching for `compose` did not include `Validators` in the search results because we were not including all the `static` members of API docs in the index. PR Close angular#21988
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Previously searching for
compose
did not includeValidators
in the search results because we were not including all the
static members in the index.