2 Commit-ok f1a711fecb ... 6e6b26fc9e

Szerző SHA1 Üzenet Dátum
  Cedric Hansen 6e6b26fc9e chore: bump version 1.4~ynh1 1 hónapja
  Cedric Hansen e3f4024540 fix: n'afficher dans la vue par job que les destinations réellement associées au job 1 hónapja
3 módosított fájl, 7 hozzáadás és 2 törlés
  1. 1 1
      manifest.toml
  2. 5 0
      sources/blueprints/overview.py
  3. 1 1
      v3/apps.json

+ 1 - 1
manifest.toml

@@ -4,7 +4,7 @@ name = "Backup Manager"
 description.en = "Centralized backup manager for YunoHost"
 description.fr = "Gestionnaire de sauvegardes centralisé pour YunoHost"
 
-version = "1.3~ynh1"
+version = "1.4~ynh1"
 
 maintainers = []
 

+ 5 - 0
sources/blueprints/overview.py

@@ -172,8 +172,13 @@ def overview():
     # --- Vue par job : pivot de locations → jobs ---
     jobs_view = []
     for job in jobs:
+        allowed = {(jd.dest_type, jd.dest_id) for jd in job.job_destinations}
         jlocs = []
         for loc in locations:
+            if loc["type"] == "ssh" and ("ssh", loc.get("dest_id")) not in allowed:
+                continue
+            if loc["type"] == "instance" and ("instance", loc.get("instance_id")) not in allowed:
+                continue
             group = next((g for g in loc.get("groups", []) if g["job"].id == job.id), None)
             jlocs.append({
                 "type": loc["type"],

+ 1 - 1
v3/apps.json

@@ -24,7 +24,7 @@
         "packaging_format": 2,
         "id": "backupmanager",
         "name": "Backup Manager",
-        "version": "1.3~ynh1",
+        "version": "1.4~ynh1",
         "description": {
           "en": "Centralized backup manager for YunoHost",
           "fr": "Gestionnaire de sauvegardes centralisé pour YunoHost"