Ctrl + k

or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/flask-admin@1.6.x
tile.json

tessl/pypi-flask-admin

tessl install tessl/pypi-flask-admin@1.6.0

Simple and extensible admin interface framework for Flask

Agent Success

Agent success rate when using this tile

86%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.3x

Baseline

Agent success rate without this tile

66%

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