CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-flask-admin

Simple and extensible admin interface framework for Flask

86

1.30x

Quality

Pending

Does it follow best practices?

Impact

86%

1.30x

Average score across 10 eval scenarios

Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses Flask-Admin's AJAX foreign key loading feature (form_ajax_refs) to efficiently handle large datasets when managing relationships between database models. The focus is on proper configuration of AJAX-based Select2 fields for foreign key relationships.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "form_ajax_refs Configuration",
      "description": "Uses the form_ajax_refs dictionary in the ModelView to configure AJAX loading for the product foreign key relationship. The configuration should specify the 'product' field with appropriate settings.",
      "max_score": 30
    },
    {
      "name": "Multi-field Search",
      "description": "Configures the 'fields' parameter in form_ajax_refs to enable searching across multiple Product model fields (name, sku, and category). This should be a tuple or list containing these three field names.",
      "max_score": 20
    },
    {
      "name": "Pagination Settings",
      "description": "Sets the 'page_size' parameter to 10 in the form_ajax_refs configuration to control how many results are displayed per page in the AJAX dropdown.",
      "max_score": 15
    },
    {
      "name": "Placeholder Text",
      "description": "Includes a 'placeholder' parameter in form_ajax_refs with the text 'Search for a product...' to provide user guidance.",
      "max_score": 10
    },
    {
      "name": "Minimum Input Length",
      "description": "Sets 'minimum_input_length' parameter to 1 in form_ajax_refs to require at least one character before triggering AJAX search.",
      "max_score": 10
    },
    {
      "name": "SQLAlchemy Relationships",
      "description": "Properly defines the SQLAlchemy relationship between Review and Product models using db.relationship() or similar, and establishes the foreign key constraint on Review.product_id.",
      "max_score": 10
    },
    {
      "name": "ModelView Implementation",
      "description": "Creates a ModelView subclass for the Review model and registers it with the Flask-Admin instance, enabling the admin interface for review management.",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-flask-admin

tile.json