def rebuild_all_dashboards():
"""Rebuild the LTD Dasher dashboards for all products.
Note that dashboards are built asynchronously.
**Authorization**
User must be authenticated and have ``admin_product`` permissions.
:statuscode 202: Dashboard rebuild trigger sent.
**See also**
- :http:post:`/products/(slug)/dashboard` for single-product dashboard
rebuilds.
"""
build_dashboards(
[product.get_url() for product in Product.query.all()],
current_app.config['LTD_DASHER_URL'],
current_app.logger)
return jsonify({}), 202, {}
评论列表
文章目录