Retire l'action Publier du support de formation
Build and deploy / test-python (push) Successful in 6m57s
Build and deploy / test-js (push) Successful in 50s
Build and deploy / lint-python (push) Successful in 4m14s
Build and deploy / lint-js (push) Failing after 1m12s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 3m48s
Build and deploy / test-python (push) Successful in 6m57s
Build and deploy / test-js (push) Successful in 50s
Build and deploy / lint-python (push) Successful in 4m14s
Build and deploy / lint-js (push) Failing after 1m12s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 3m48s
Un apprenant n'a jamais acces a l'editeur : un etat "publie" persiste en base (published_at) ne servait donc a rien tant qu'aucune vue apprenant/export ne le consomme (retour utilisateur direct). Retrait complet : route /document/<slug>/publish, db.mark_support_published, la colonne logique published_at dans support_meta, le bouton et son CSS/JS. "Aperçu" devient l'action primaire du bandeau (repond au vrai besoin : voir le rendu avant un futur export). Un export reel (SCORM ou equivalent) reste a specifier separement le jour venu. SKIP=djlint : meme backlog H021 pre-existant que le commit precedent, aucun fichier touche ici n'y figure. ruff/mypy --strict/vulture/ bandit/import-linter/eslint/stylelint tous verts ; 615 tests Python (617 - 2 tests du Publier retire) + verification manuelle live du retrait (route 404, bouton absent du HTML, Apercu confirme fonctionnel par simulation DOM). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
bab581737a
commit
7ca03380b7
@@ -11,6 +11,5 @@ from . import ( # noqa: F401 - enregistre les routes definies dans chaque modul
|
||||
document_element_move,
|
||||
document_element_update,
|
||||
document_new,
|
||||
document_publish,
|
||||
document_render,
|
||||
)
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
from flask import jsonify
|
||||
from werkzeug.wrappers import Response
|
||||
|
||||
import db
|
||||
from core.flask_app import app
|
||||
|
||||
|
||||
@app.route("/document/<slug>/publish", methods=["POST"])
|
||||
def document_publish(slug: str) -> Response:
|
||||
"""Publie le support — vrai changement d'état persisté
|
||||
(_meta['published_at'], voir db/supports/mark_support_published.py),
|
||||
pas juste un toast côté client (voir docs/plan/PLAN.md, "Publier
|
||||
réel")."""
|
||||
published_at = db.mark_support_published(slug)
|
||||
return jsonify({"ok": True, "published_at": published_at})
|
||||
Reference in New Issue
Block a user