tessl install tessl/pypi-gcloud@0.7.0Python client library for Google Cloud Platform services including Datastore, Storage, and Pub/Sub
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.19x
Baseline
Agent success rate without this tile
78%
{
"context": "This evaluation assesses the engineer's proficiency in using gcloud's datastore key hierarchies and ancestor queries to implement a hierarchical user profile system. The focus is on correct usage of parent-child key relationships, ancestor queries for retrieving hierarchical data, and combining ancestor queries with property filters.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Hierarchical Key Construction",
"description": "Uses datastore.Key with parent parameter to create hierarchical keys when establishing parent-child relationships in create_profile. The child key should be constructed with the parent key as an ancestor (e.g., Key('UserProfile', child_id, parent=parent_key)).",
"max_score": 25
},
{
"name": "Entity Storage",
"description": "Properly creates datastore.Entity instances with hierarchical keys and stores them using client.put(). Entity properties (name, department, role, email) are correctly set.",
"max_score": 15
},
{
"name": "Ancestor Query",
"description": "Uses Query.ancestor() method to retrieve all entities within a hierarchy in get_hierarchy. The query should be constructed with the root user's key as the ancestor to fetch all descendants.",
"max_score": 30
},
{
"name": "Ancestor Query with Filters",
"description": "Combines Query.ancestor() with Query.add_filter() (or equivalent filtering) to query entities by department within a specific hierarchy in query_by_department_in_hierarchy. Both the ancestor constraint and property filter must be applied.",
"max_score": 25
},
{
"name": "Query Execution",
"description": "Correctly executes queries using query.fetch() (or equivalent methods) and handles the results appropriately, converting iterators to lists where needed.",
"max_score": 5
}
]
}