Performance improvements to the ACL sync - #1255
Merged
Merged
Conversation
artem-shelkovnikov
force-pushed
the
seanstory/5162-speed-up-acl-sync
branch
from
July 12, 2023 12:49
fc6a089 to
51ae0e4
Compare
seanstory
force-pushed
the
seanstory/5162-speed-up-acl-sync
branch
from
July 12, 2023 18:17
51ae0e4 to
b52708f
Compare
seanstory
marked this pull request as ready for review
July 12, 2023 18:17
1 task
Member
Author
woo, we making progress!
|
artem-shelkovnikov
previously approved these changes
Jul 13, 2023
artem-shelkovnikov
left a comment
Member
There was a problem hiding this comment.
Great improvements, Sean!
artem-shelkovnikov
force-pushed
the
seanstory/5162-speed-up-acl-sync
branch
from
July 13, 2023 12:08
542abcd to
c1be74d
Compare
artem-shelkovnikov
previously approved these changes
Jul 13, 2023
This was referenced Jul 13, 2023
Member
|
@seanstory I've rebased the changeset and things got weird :/ You might wanna force push your branch in and do the change to |
seanstory
added a commit
to elastic/kibana
that referenced
this pull request
Jul 13, 2023
## Summary Part of elastic/search-team#5162 Effectively reverting #161546, as the new strategy has completely replaced the old. See also: elastic/connectors#1255 ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
seanstory
force-pushed
the
seanstory/5162-speed-up-acl-sync
branch
from
July 13, 2023 13:28
c1be74d to
52661c1
Compare
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jul 13, 2023
## Summary Part of elastic/search-team#5162 Effectively reverting elastic#161546, as the new strategy has completely replaced the old. See also: elastic/connectors#1255 ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 8175c8a)
seanstory
enabled auto-merge (squash)
July 13, 2023 14:23
artem-shelkovnikov
approved these changes
Jul 13, 2023
💔 Failed to create backport PR(s)
To backport manually run: |
kibanamachine
referenced
this pull request
in elastic/kibana
Jul 13, 2023
…61866) # Backport This will backport the following commits from `main` to `8.9`: - [remove native config for selecting fetch strategy (#161798)](#161798) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sean Story","email":"sean.j.story@gmail.com"},"sourceCommit":{"committedDate":"2023-07-13T13:25:10Z","message":"remove native config for selecting fetch strategy (#161798)\n\n## Summary\r\n\r\nPart of https://github.com/elastic/enterprise-search-team/issues/5162\r\n\r\nEffectively reverting #161546, as\r\nthe new strategy has completely replaced the old.\r\n\r\nSee also: https://github.com/elastic/connectors-python/pull/1255\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8175c8a95d053cdcad6c8cf61dd767f90b797c58","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.9.0","v8.10.0"],"number":161798,"url":"https://github.com/elastic/kibana/pull/161798","mergeCommit":{"message":"remove native config for selecting fetch strategy (#161798)\n\n## Summary\r\n\r\nPart of https://github.com/elastic/enterprise-search-team/issues/5162\r\n\r\nEffectively reverting #161546, as\r\nthe new strategy has completely replaced the old.\r\n\r\nSee also: https://github.com/elastic/connectors-python/pull/1255\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8175c8a95d053cdcad6c8cf61dd767f90b797c58"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161798","number":161798,"mergeCommit":{"message":"remove native config for selecting fetch strategy (#161798)\n\n## Summary\r\n\r\nPart of https://github.com/elastic/enterprise-search-team/issues/5162\r\n\r\nEffectively reverting #161546, as\r\nthe new strategy has completely replaced the old.\r\n\r\nSee also: https://github.com/elastic/connectors-python/pull/1255\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8175c8a95d053cdcad6c8cf61dd767f90b797c58"}}]}] BACKPORT--> Co-authored-by: Sean Story <sean.j.story@gmail.com>
seanstory
added a commit
that referenced
this pull request
Jul 13, 2023
* Trying out some improvements to the ACL sync * Remove fetching users by site, fetch active users only * Add explicit select clauses when fetching users * removing RCF from spo ftest (cherry picked from commit 24249c1) # Conflicts: # connectors/sources/sharepoint_online.py
Member
Author
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
seanstory
added a commit
that referenced
this pull request
Jul 13, 2023
* Performance improvements to the ACL sync (#1255) * Trying out some improvements to the ACL sync * Remove fetching users by site, fetch active users only * Add explicit select clauses when fetching users * removing RCF from spo ftest (cherry picked from commit 24249c1) # Conflicts: # connectors/sources/sharepoint_online.py * autoformat merge conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Part of https://github.com/elastic/enterprise-search-team/issues/5162
Speeding up the ACL sync.
$expand=transitiveMemberOfin a bulk request, to reduce request volume$topto cap out page size$filterto fetch only active users, and not disabled users.$selectto fetch only the fields we need, which speeds up response timeChecklists
Pre-Review Checklist
v7.13.2,v7.14.0,v8.0.0)Related Pull Requests