-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[App Search] New flyout to start a crawl with custom settings #124999
[App Search] New flyout to start a crawl with custom settings #124999
Conversation
…wlSelectDomainsModal
…crawler/domain_configs
41a4cde
to
b2de2bf
Compare
@@ -0,0 +1,5 @@ | |||
.urlComboBox { | |||
.euiComboBox__inputWrap { | |||
min-height: 60px; |
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.
Only suggestion here would be to use a rem
value instead of the px
... Should work out to 3.75rem
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 I got 60px
because the default row height of a row in an EuiComboBox
is 29px + 1px = 30px, which I doubled so it defaults to two rows. There's no way to specifically set the default number of rows for EuiComboBox
unfortunately. With that in mind should I still convert to rem
? Should I leave as-is but write a comment? I'll follow your call
@elasticmachine merge upstream |
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.
👏 Really excited about this feature, thanks Byron!
); | ||
|
||
return seedUrls.filter((seedUrl) => { | ||
const { domain } = extractDomainAndEntryPointFromUrl(seedUrl); |
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 wondering if it would be more robust to filter the response from the /domain_configs
endpoints based on the domain, instead of trying to match the domain names?
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 need to think about how to do this in the context of kea logic a little more. There's probably a way to accomplish this without having to pass domainConfigs
in through the onSelectDomainUrls
action (using a selector?) but its not totally clear to me at the moment.
onSelectSitemapUrls(sitemapUrls: string[]): { sitemapUrls: string[] }; | ||
showFlyout(): void; | ||
startCustomCrawl(): void; | ||
toggleIncludeRobotsTxt(): void; |
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.
The naming here is slightly (semantically) incorrect because the toggle is to include/exclude sitemaps from robots.txt.
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.
: undefined | ||
} | ||
> | ||
<EuiComboBox |
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 neat! I initially thought a simple textbox would be more flexible when for instance editing an entry URL but it's pretty cool that we can have validations here via onCreateOption
.
…cludeSitemapsInRobotsTxt
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
💔 Backport failedThe pull request could not be backported due to the following error: How to fixRe-run the backport manually:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
6 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Adds a new flyout to the Crawler that allows a user to set the following fields as a part of a crawl request:
domain_allowlist
seed_urls
(which we refer to as "entry points" in the UX and the JS code)sitemap_urls
max_crawl_depth
sitemap_discovery_disabled
In addition to allowing the user to select sitemap and entry point urls they've already added to their crawler's config, we give the user two
EuiComboBox
components to add custom sitemaps and entry points.Screenshots
Screen.Recording.2022-02-11.at.3.35.45.PM.mov
QA
You'll need to be running the branch from PR https://github.com/elastic/ent-search/pull/6064 locally in order to test this while that PR remains open.
Checklist