Skip to content
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] Sample Engines should have access to the Crawler #86502

Merged
merged 2 commits into from
Dec 18, 2020

Conversation

cee-chen
Copy link
Contributor

Summary

I was going over the new DocumentCreation modal with @zumwalt the other day, and he confirmed that if sample engines can index new documents, there's no reason why they shouldn't have access to the Crawler. I've removed checks around isSampleEngine for crawler links, and the DocumentCreationButtons should now always show 4 buttons.

QA

  • Checkout branch
  • Create a Sample engine in the standalone UI, then navigate to it in Kibana
  • Confirm the Crawler link shows up in the sidebar for the sample engine
  • Go to Documents > Index Documents, confirm the "Use the Crawler" button shows up and there are 4 cards total

Checklist

@cee-chen cee-chen added Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Dec 18, 2020
@cee-chen cee-chen requested review from JasonStoltz, byronhulcher and a team December 18, 2020 18:41
@cee-chen
Copy link
Contributor Author

FYI on this @byronhulcher - Casey said we didn't have to change this in the standalone UI and this can be a Kibana-only change, but something to keep in mind when Crawler gets ported over to Kibana

const {
myRole: { canViewEngineCrawler },
} = useValues(AppLogic);
const showCrawlerLink = canViewEngineCrawler && !isSampleEngine;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also just confirmed in the Crawler channel w/ Rich that there's no realistic scenario where a user would have access to document creation (upload/pasting JSON) and not have access to the Crawler, so I think this access check is also safe to remove

@cee-chen cee-chen changed the title [Enterprise Search] Sample Engines should have access to the Crawler [App Search] Sample Engines should have access to the Crawler Dec 18, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.7MB 1.7MB -273.0B

Distributable file count

id before after diff
default 47298 48058 +760

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cee-chen cee-chen merged commit 8e71720 into elastic:master Dec 18, 2020
@cee-chen cee-chen deleted the sample-engine-crawler branch December 18, 2020 21:45
cee-chen pushed a commit that referenced this pull request Dec 18, 2020
#86539)

* Remove logic preventing Crawler from being used on sample engines

* Remove check around crawler button in DocumentCreationButtons

- primarily a UI thing - ideally we always want to show 4 buttons
gmmorris added a commit to gmmorris/kibana that referenced this pull request Dec 21, 2020
* master: (48 commits)
  Fix request with disabled aggregation (elastic#85696)
  [Security Solution][Detections][Threshold Rules] Threshold Rule Bug Fixes (elastic#84918)
  Removed a possibility to define two different names for Alert types on API and UI level. (elastic#86236)
  Bump Node.js from version 14.15.2 to 14.15.3 (elastic#86593)
  [index patterns] Fleep app - Keep saved object field list until field caps provides fields (elastic#85370)
  [Security Solutions] fix timeline tabs + layout (elastic#86581)
  Upgrade to hapi version 20 (elastic#85406)
  App Services: Remove remaining uiActions, expressions, data, embeddable circular dependencies. (elastic#82791)
  Rename chartLibrary setting to legacyChartsLibrary (elastic#86529)
  [CI] TeamCity updates (elastic#85843)
  [Maps] Use Json for mvt-tests (elastic#86492)
  [Rollup Jobs] Added autofocus to cron editor (elastic#86324)
  [Monitoring][Alerting] CCR read exceptions alert (elastic#85908)
  [CI] Bump memory for main CI workers (elastic#86541)
  Explicitly set Elasticsearch heap size during CI and local development (elastic#86513)
  [App Search] Updates to results on the documents view (elastic#86181)
  [Discover] Change default sort handling  (elastic#85561)
  [App Search] Convert DocumentCreationModal to DocumentCreationFlyout (elastic#86508)
  [App Search] Sample Engines should have access to the Crawler (elastic#86502)
  Fixed duplication of create new modal (elastic#86489)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants