Lee-W commented on code in PR #70498:
URL: https://github.com/apache/airflow/pull/70498#discussion_r3702004288
##########
registry/src/_data/exploreCategoryProviders.js:
##########
@@ -19,17 +19,15 @@
const providersData = require("./providers.json");
const exploreCategories = require("./exploreCategories");
+const { providerMatchesKeyword } = require("./providerKeywordMatch");
module.exports = function () {
const map = {};
for (const category of exploreCategories) {
const matched = [];
for (const provider of providersData.providers) {
for (const keyword of category.keywords) {
- if (
- provider.id.includes(keyword) ||
- keyword.includes(provider.id)
- ) {
+ if (providerMatchesKeyword(provider, keyword)) {
matched.push(provider);
Review Comment:
Sorted `matched` by `pypi_downloads.monthly` now. Also matches how the Top
Providers and Incubating rows on the same page already work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]