amoghrajesh commented on code in PR #77143:
URL: https://github.com/apache/airflow/pull/77143#discussion_r4640030183


##########
registry/src/js/operator-filters.js:
##########
@@ -17,48 +17,65 @@
  * under the License.
  */
 
-// Filters for the /durable/ page. State lives in the query string
-// (?capability=deferrable&provider=amazon&type=sensor&q=glue) so a filtered
-// view can be shared.
+// Filters for the /operators/ page. State lives in the query string
+// (?capability=durable&provider=amazon&type=sensor&q=glue) so a filtered
+// view can be shared. Type defaults to operator, so "all types" is written
+// to the URL as type=all.
 (function() {
-  const searchInput = document.getElementById('durable-search');
+  const searchInput = document.getElementById('operator-search');
   const capabilityButtons = document.querySelectorAll('.capability-btn');
-  const providerSelect = document.getElementById('durable-provider-filter');
-  const typeSelect = document.getElementById('durable-type-filter');
-  const status = document.getElementById('durable-status');
-  const emptyState = document.getElementById('durable-empty');
-  const groups = document.querySelectorAll('.durable-page .provider-group');
+  const providerSelect = document.getElementById('operator-provider-filter');
+  const typeSelect = document.getElementById('operator-type-filter');
+  const status = document.getElementById('operator-status');
+  const emptyState = document.getElementById('operator-empty');
+  const groups = document.querySelectorAll('.operators-page .provider-group');
 
   if (!searchInput || !providerSelect || !typeSelect) return;
 
-  const state = { capability: 'all', provider: 'all', type: 'all', q: '' };
+  const defaults = { capability: 'all', provider: 'all', type: 'operator', q: 
'' };

Review Comment:
   231a50cc895
   



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