Skip to content

Conversation

@dominique-pfister
Copy link
Contributor

@dominique-pfister dominique-pfister commented Nov 14, 2025

with our changes to bucket.list (shallow), reindexing no longer worked: listing the children of an org returned an empty array.

Comment on lines +191 to +195
// do not search for custom users in org/sites that
// are not listed in env.HLX_CUSTOM_GOOGLE_USERS
if (!this.customUserProjects.some((project) => project.match(entry))) {
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

noticed in reindex all, that we had an enormous amount of checks for custom users in every google backed project, although we won't include them when searching for google documents

Comment on lines +124 to +127
const matchers = Object.fromEntries(
Object.entries(MATCHERS)
.map(([name, Matcher]) => [name, new Matcher(context.env)]),
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

create all matchers once for the whole reindex operation

@dominique-pfister dominique-pfister merged commit 827d228 into main Nov 15, 2025
6 checks passed
@dominique-pfister dominique-pfister deleted the fix-reindex branch November 15, 2025 07:55
github-actions bot pushed a commit that referenced this pull request Nov 15, 2025
## [1.15.2](v1.15.1...v1.15.2) (2025-11-15)

### Bug Fixes

* **discover:** reindex all no longer worked ([#37](#37)) ([827d228](827d228))
@github-actions
Copy link

🎉 This PR is included in version 1.15.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants