CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-superset-ui--generator-superset

Yeoman generator that scaffolds Superset visualization plugins and packages with proper structure and boilerplate code

63

1.21x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses Apache Superset's CLI infrastructure and database connectivity capabilities to build a command-line database testing tool. The focus is on proper usage of Superset's database models, CLI patterns, and connection testing functionality.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CLI Framework Usage",
      "description": "Uses Click framework (as used by superset.cli.main) or argparse to create a proper command-line interface with argument parsing for database URI and optional --verbose flag",
      "max_score": 15
    },
    {
      "name": "Database Model Usage",
      "description": "Imports and uses superset.models.core.Database or superset.db_engine_specs.base.BaseEngineSpec for database connection functionality rather than implementing raw database connections",
      "max_score": 25
    },
    {
      "name": "SQLAlchemy Integration",
      "description": "Uses SQLAlchemy engine creation and connection testing methods (create_engine, engine.connect(), or similar) consistent with Superset's database connectivity patterns",
      "max_score": 20
    },
    {
      "name": "Connection Testing",
      "description": "Implements a test_database_connection function that properly tests database connectivity and returns structured results (success status, message, and optional details)",
      "max_score": 20
    },
    {
      "name": "Error Handling",
      "description": "Properly catches and handles database connection errors (e.g., SQLAlchemy exceptions) and provides clear error messages to users",
      "max_score": 10
    },
    {
      "name": "Exit Codes",
      "description": "Uses sys.exit() or equivalent to return appropriate exit codes: 0 for success, 1 for connection failures, 2 for argument errors",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-superset-ui--generator-superset

tile.json