[Change Request] Elections App Schema change
by Toshio Kuratomi
It was discovered today that the elections application has a bug that can
allow for double submission of ballots on rare occassions. Since this was
something that needed to be fixed prior to announcing for voter confidence,
I made the db schema change that will throw an error in this case. I'd like
to get two after-the-fact +1's for the change.
On db01, change the schema for the elections database, votes table:
alter table votes add constraint election_id_voter_candidate_id unique
(election_id, voter, candidate_id);
Two notes:
* We generally don't consider modifying data in the db to be a break of
freeze. Since this is modifying the schema I figured it should still get
a freeze break.
* This will prevent duplicate submissions but the user may get a confusing
500 error from the web application if this case is hit. I'll have to look
at it in the current and next voting app code to see if that needs
modifying to handle the case better. Since there's no elections before
freeze is up, I probably won't request a freeze break to fix the ui.
-Toshio
9 years, 9 months
freeze break request - fedora mobile proxy
by Ricky Elrod
I'd like to set up a proxy from fp.o/mobile ->
fedora-infra.github.io/mobile.
After talking with nirik on irc, we decided that for now this is the way
to go, and later on we can move things around if we decide to.
diff --git a/manifests/services/proxy.pp b/manifests/services/proxy.pp
index 2d615b0..316b6de 100644
--- a/manifests/services/proxy.pp
+++ b/manifests/services/proxy.pp
@@ -432,6 +432,12 @@ class proxy {
proxyurl => "http://localhost:10018",
}
+ fedora-mobile::proxy { "fedoraproject.org/mobile":
+ website => "fedoraproject.org",
+ path => "/mobile",
+ proxyurl => "http://fedora-infra.github.io/mobile",
+ }
+
httpd::mime-type { "site icon":
website => "fedoraproject.org",
mimetype => "image/vnd.microsoft.icon",
diff --git a/modules/fedora-mobile/README b/modules/fedora-mobile/README
new file mode 100644
index 0000000..770f746
--- /dev/null
+++ b/modules/fedora-mobile/README
@@ -0,0 +1,5 @@
+# Fedora Mobile landing site
+
+This proxies fp.o/mobile to github pages:
+
+http://fedora-infra.github.io/mobile/
diff --git a/modules/fedora-mobile/manifests/init.pp
b/modules/fedora-mobile/manifests/init.pp
new file mode 100644
index 0000000..6626b9b
--- /dev/null
+++ b/modules/fedora-mobile/manifests/init.pp
@@ -0,0 +1,16 @@
+define fedora-mobile::proxy(
+ $website,
+ $path,
+ $proxyurl
+) {
+ include httpd::base
+
+ file { "/etc/httpd/conf.d/$website/fedora-mobile.conf":
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ content => template("fedora-mobile/fedora-mobile-proxy.conf.erb"),
+ notify => Service["httpd"],
+ require => Httpd::Website[$website],
+ }
+}
diff --git
a/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
b/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
new file mode 100644
index 0000000..c6fc6db
--- /dev/null
+++ b/modules/fedora-mobile/templates/fedora-mobile-proxy.conf.erb
@@ -0,0 +1,4 @@
+RewriteEngine On
+
+ProxyPass <%= path %> <%= proxyurl %>
+ProxyPassReverse <%= path %> <%= proxyurl %>
9 years, 9 months
freeze break request: new host for the Transifex Client
by Kévin Raymond
Hi there,
The transifex Client does not work anymore with the old .net domain. We
need to switch to the commercial domain. (transifexrc)
The module is used only for the websites from my understanding.
Thanks,
--
Kévin Raymond
(Shaiton)
9 years, 9 months
freeze break request: new flock alias
by Kevin Fenzi
Pretty simple:
diff --git a/configs/system/smtp/aliases.template.erb
b/configs/system/smtp/aliases.template.erb index 156fc33..3d9349b 100644
--- a/configs/system/smtp/aliases.template.erb
+++ b/configs/system/smtp/aliases.template.erb
@@ -146,6 +146,7 @@ fudcon-paper: fudcon-cfp
# flock
flockpress: rsuehle,spot,rbergero
flockinfo: rsuehle,spot,rbergero
+flock-staff: rsuehle,spot,rbergero
# News
#news: nman64,pfrields,sundaram,tchung,kwade
+1s?
kevin
9 years, 9 months
[HOTFIX request] mirrormanager] v1.4: model.py: fix user_sites() variable name (80dd827)
by Matt Domsch
Fix one bug yesterday with a hotfix, only to hit a second bug later. Here's the fix to the second bug... This keeps a non-sysadmin user from logging into the admin interface.
+1s please.
--
Matt Domsch
Distinguished Engineer, Technology Strategist
Dell | Office of the CTO
>---------------------------------------------------------------
commit 80dd82765f337e7f9a409b4e351c848bdb5aca59
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Fri Jun 21 07:13:39 2013 -0500
model.py: fix user_sites() variable name
>---------------------------------------------------------------
server/mirrormanager/model.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/mirrormanager/model.py b/server/mirrormanager/model.py index bba2ee7..6ebadc7 100644
--- a/server/mirrormanager/model.py
+++ b/server/mirrormanager/model.py
@@ -152,7 +152,7 @@ def user_sites(identity):
SiteAdmin.q.username == identity.current.user_name)))
for site in query_result:
for h in site.hosts:
- result.append((site.id, site.name, host.id, host.name))
+ result.append((site.id, site.name, h.id, h.name))
sites = _min_sites_and_hosts(result)
return sites
_______________________________________________
mirrormanager-commits mailing list
mirrormanager-commits(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/mirrormanager-commits
9 years, 9 months
[HOTFIX REQUEST} mirrormanager model.py imports
by Matt Domsch
Reported in https://fedorahosted.org/fedora-infrastructure/ticket/3849, non-sysadmin FAS users logging into the admin interface get an HTTP 500 error. That's most of our mirror admins. This fixes it. Tested in staging.
+1s requested.
Thanks,
Matt
>From af5dcda8cda236bbb34c0317168ca356656e5da0 Mon Sep 17 00:00:00 2001
From: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Thu, 20 Jun 2013 17:13:06 -0500
Subject: [PATCH] model.py: fix sqlbuilder imports
---
server/mirrormanager/model.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/mirrormanager/model.py b/server/mirrormanager/model.py
index 5ac4a92..bba2ee7 100644
--- a/server/mirrormanager/model.py
+++ b/server/mirrormanager/model.py
@@ -1,6 +1,6 @@
from sqlobject import *
from sqlobject.converters import sqlrepr
-from sqlobject.sqlbuilder import RLIKE
+from sqlobject.sqlbuilder import RLIKE, AND, OR, INNERJOINOn
from turbogears import identity, config
from datetime import datetime
import time
--
1.8.1.4
--
Matt Domsch
Distinguished Engineer, Technology Strategist
Dell | Office of the CTO
9 years, 9 months