kaxil commented on code in PR #70190:
URL: https://github.com/apache/airflow/pull/70190#discussion_r3706820021


##########
dev/registry/tests/test_types.py:
##########
@@ -93,6 +95,14 @@ def test_class_level_sections_are_subset_of_flat(self):
             assert yaml_key in FLAT_LEVEL_SECTIONS
             assert FLAT_LEVEL_SECTIONS[yaml_key] == type_id
 
+    def 
test_class_level_category_overrides_are_subset_of_class_level_sections(self):
+        assert set(CLASS_LEVEL_CATEGORY_OVERRIDES.keys()) <= 
set(CLASS_LEVEL_SECTIONS.keys())
+
+    def test_dict_shaped_class_level_sections_are_subset_of_flat(self):

Review Comment:
   This and the sibling above check the subset direction, but the failure mode 
from last round was the other one: a flat section that neither table consumes 
gets silently skipped by both extractors, and the 
`FQCN_DESC_SUFFIXES[mod_type]` KeyError can't catch it, since it only fires for 
keys already in a table. `set(FLAT_LEVEL_SECTIONS)` is exactly 
`set(CLASS_LEVEL_SECTIONS) | set(DICT_SHAPED_CLASS_LEVEL_SECTIONS) | 
{"transfers", "task-decorators"}` today, so asserting that equality passes now 
and fails loudly next time.
   



##########
registry/src/_data/types.json:
##########
@@ -63,5 +63,35 @@
     "id": "retry_policy",
     "label": "Retry Policies",
     "icon": "R"
+  },
+  {
+    "id": "extra_link",
+    "label": "Extra Links",
+    "icon": "I"
+  },
+  {
+    "id": "queue",
+    "label": "Message Queues",
+    "icon": "Q"
+  },
+  {
+    "id": "plugin",
+    "label": "Plugins",
+    "icon": "P"
+  },
+  {
+    "id": "auth_manager",
+    "label": "Auth Managers",
+    "icon": "A"
+  },
+  {
+    "id": "db_manager",
+    "label": "DB Managers",
+    "icon": "M"

Review Comment:
   The M here doesn't reach the module cards. `provider-version.njk:374` 
renders the card chip as `{{ module.type[0] | upper }}` instead of reading this 
file, so `db_manager` cards show D, colliding with `decorator` and `dialect` -- 
the collision `ff18815f` was written to avoid. Six of the 19 ids disagree with 
their curated letter that way (`transfer` X->T, `secret` K->S, `decorator` 
@->D, `toolset` U->T, `extra_link` I->E, `db_manager` M->D).
   
   The same block also misses colour: `.provider-detail-page .modules .module 
.icon.<id>` covers 6 of 19 ids and the base `.icon` rule sets no background, so 
those cards get a transparent chip. Both halves already affect `secret`, 
`decorator` and `toolset`, so a follow-up is fine, but a small `typeIcon` 
lookup filter beside `sortTypesByCount` would let the card read from here the 
way the tabs already do.
   



-- 
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]

Reply via email to