From 4d55f35d4c2b0ab75286eb34d6379b3f823e93ca Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 19 2018 08:54:22 +0000 Subject: Drop the roadmap_on_issues_page project setting With the new UI introduced in 5.0, this setting is no longer needed nor interesting, so we are just removing it. Fixes https://pagure.io/pagure/issue/3595 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/model.py b/pagure/lib/model.py index d23f426..853f723 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -626,7 +626,6 @@ class Project(BASE): "fedmsg_notifications": True, "stomp_notifications": True, "pull_request_access_only": False, - "roadmap_on_issues_page": False, "notify_on_pull-request_flag": False, "notify_on_commit_flag": False, "issue_tracker_read_only": False, @@ -642,6 +641,10 @@ class Project(BASE): current[key] = int(current[key]) elif is_true(current[key]): current[key] = True + # Update the current dict, removing the old keys + for key in sorted(current): + if key not in default: + del current[key] return current else: return default diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 7f9e5e2..1f09789 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -160,7 +160,7 @@ {% endif %}