]>
git.ipfire.org Git - people/jschlag/pbs.git/log
Michael Tremer [Sat, 7 Oct 2017 12:09:14 +0000 (13:09 +0100)]
Make database available from BaseHandler
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 12:07:35 +0000 (13:07 +0100)]
Drop dead code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 12:05:40 +0000 (13:05 +0100)]
BaseHander: Use namespace function of newer tornados
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 12:03:09 +0000 (13:03 +0100)]
web: More code cleanup
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:59:16 +0000 (12:59 +0100)]
Rename self.pakfire to self.backend in web and hub
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:54:59 +0000 (12:54 +0100)]
Cleanup database initialisation code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:46:05 +0000 (12:46 +0100)]
Fix trailing character in path name
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:44:38 +0000 (12:44 +0100)]
Log database statements in debug mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:42:09 +0000 (12:42 +0100)]
Add forgotten table names
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:41:57 +0000 (12:41 +0100)]
Remove complicated handling of static files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:38:59 +0000 (12:38 +0100)]
Load templates and static files from the right locations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:33:22 +0000 (12:33 +0100)]
Translate a few SQL statements from MySQL to PostgreSQL syntax
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:29:27 +0000 (12:29 +0100)]
Add debug logging information when connecting to the database
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:22:32 +0000 (12:22 +0100)]
Always load default configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:17:31 +0000 (12:17 +0100)]
Properly load translation files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 11:08:15 +0000 (12:08 +0100)]
Generate paths in constants.py by configure
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Sat, 7 Oct 2017 09:04:06 +0000 (11:04 +0200)]
Add a Dockerfile
To create a container for our pbs service we add a Docker
image based on ipfire/pakfire:latest.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 10:35:56 +0000 (11:35 +0100)]
db: Add view to view size of relations on disk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 10:35:47 +0000 (11:35 +0100)]
Add tool to dump database schema
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 7 Oct 2017 10:30:11 +0000 (11:30 +0100)]
Refactor session handling
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 18:37:12 +0000 (19:37 +0100)]
Make "make distcheck" happy
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 18:34:49 +0000 (19:34 +0100)]
Add pointer for translators
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 18:17:26 +0000 (19:17 +0100)]
Replace geoip database by local database
Fixes #11493
The MySQL had a copy of a geoip database which was queries
to estimate the position of a host on the globe.
The database was huge and querying it was slow because
MySQL is not very good with spacial queries. On top of that,
this precision wasn't really needed.
A local database is way quicker to query and provides us
with the country an IP address is assumed to be in. That
will allow us to select a few mirror servers as preferred
mirrors.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:35:32 +0000 (18:35 +0100)]
Remove Transifex configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:33:52 +0000 (18:33 +0100)]
Makefile: Forgot to remove some deleted files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:33:39 +0000 (18:33 +0100)]
Import __version__ into main module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:29:48 +0000 (18:29 +0100)]
Cleanup expired sessions once a day
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:26:23 +0000 (18:26 +0100)]
Cleanup uploads a few times a day
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:22:24 +0000 (18:22 +0100)]
manager: Remove old message queue processing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:20:59 +0000 (18:20 +0100)]
Initialise memcache only when we need it
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:02:59 +0000 (18:02 +0100)]
Initialise database connection only when we need it
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 17:02:15 +0000 (18:02 +0100)]
cli: Add command to send all emails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:48:05 +0000 (17:48 +0100)]
Add new command to run functions from command line
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:30:56 +0000 (17:30 +0100)]
Simplify settings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:26:16 +0000 (17:26 +0100)]
Rename main object from Pakfire to Backend
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:23:03 +0000 (17:23 +0100)]
builder: Base Builder on DataObject class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:06:28 +0000 (17:06 +0100)]
arches: Base Arch class on DataObject
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:03:50 +0000 (17:03 +0100)]
Rename self.pakfire to self.backend
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 16:01:32 +0000 (17:01 +0100)]
base: Remove local cache
This is never being used anywhere
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:58:16 +0000 (16:58 +0100)]
Add DataObject type
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:52:24 +0000 (16:52 +0100)]
base: Add custom constructor to Object
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:49:01 +0000 (16:49 +0100)]
Add @lazy_property decorator
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:41:38 +0000 (16:41 +0100)]
.gitignore: Ignore .vscode files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:40:29 +0000 (16:40 +0100)]
Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 15:07:29 +0000 (16:07 +0100)]
Use relative imports everywhere
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 14:18:17 +0000 (15:18 +0100)]
Move main.py to __init__.py
There is no need for an extra file like this
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 14:07:38 +0000 (15:07 +0100)]
Use autotools
This will break the application since the name of the
modules inside the applications has not been updated
and paths have not been updated, either.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 6 Oct 2017 12:45:55 +0000 (13:45 +0100)]
Drop dependency on textile
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 24 Sep 2017 17:02:59 +0000 (18:02 +0100)]
Replace database driver for PostgreSQL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 24 Sep 2017 16:26:48 +0000 (17:26 +0100)]
database: Convert data types to PostgreSQL native types
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 24 Sep 2017 11:17:04 +0000 (12:17 +0100)]
database: Add foreign keys where ever possible
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 23 Sep 2017 18:45:11 +0000 (19:45 +0100)]
Migrate database schema to PostgreSQL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 27 Apr 2015 10:45:32 +0000 (12:45 +0200)]
Fix typos.
Reported-by: Tom Rymes <tomvend@rymes.com>
Fixes: #10731 https://bugzilla.ipfire.org/show_bug.cgi?id=10731
Michael Tremer [Sun, 19 Jan 2014 11:39:31 +0000 (12:39 +0100)]
hub: Add handlers for statistics.
Michael Tremer [Fri, 29 Mar 2013 12:55:31 +0000 (13:55 +0100)]
hub: Add functions to query job lists.
Michael Tremer [Sat, 2 Mar 2013 18:38:22 +0000 (19:38 +0100)]
Fix for release builds that are not in a repository.
Michael Tremer [Sat, 2 Mar 2013 13:37:53 +0000 (14:37 +0100)]
packages: Add page to see scratch builds.
Michael Tremer [Sat, 2 Mar 2013 12:16:02 +0000 (13:16 +0100)]
Add Romanian as a language option.
Michael Tremer [Sat, 2 Mar 2013 12:05:47 +0000 (13:05 +0100)]
Update translations.
Michael Tremer [Sat, 2 Mar 2013 12:05:10 +0000 (13:05 +0100)]
Don't regenerate pot when mo files are generated.
Michael Tremer [Sat, 2 Mar 2013 11:57:06 +0000 (12:57 +0100)]
jobs: Cache arch.
Michael Tremer [Sat, 2 Mar 2013 11:54:49 +0000 (12:54 +0100)]
settings: Add lazy caching for settings.
Michael Tremer [Sat, 2 Mar 2013 11:32:42 +0000 (12:32 +0100)]
Remove using memcache.
Basically we don't need that, but have to optimize our
application a little bit.
Michael Tremer [Sat, 2 Mar 2013 10:58:30 +0000 (11:58 +0100)]
Fix typo in tornado module name.
Michael Tremer [Sat, 2 Mar 2013 10:56:29 +0000 (11:56 +0100)]
arches: Remove noarch as always supported.
This is usually true, but the data should come
from the database.
Michael Tremer [Thu, 28 Feb 2013 10:32:58 +0000 (11:32 +0100)]
Update hub.
Remove XMLRPC communication backend and replace it with
a proper API.
Michael Tremer [Sun, 17 Feb 2013 18:36:17 +0000 (19:36 +0100)]
Remove FULLTEXT index from users table.
Michael Tremer [Sun, 17 Feb 2013 17:38:26 +0000 (18:38 +0100)]
Don't show ETA on front page.
Because it takes too much performance.
Michael Tremer [Sun, 17 Feb 2013 17:37:13 +0000 (18:37 +0100)]
Divide stddev by two where ever it is shown.
Michael Tremer [Sun, 17 Feb 2013 17:36:59 +0000 (18:36 +0100)]
Fix formatting error with translations.
Michael Tremer [Sun, 17 Feb 2013 17:36:07 +0000 (18:36 +0100)]
Change format of build time.
Michael Tremer [Sun, 17 Feb 2013 17:34:05 +0000 (18:34 +0100)]
builds: Active builds must be of type 'release'.
Michael Tremer [Sun, 17 Feb 2013 15:47:09 +0000 (16:47 +0100)]
Show ETA of build jobs.
Michael Tremer [Sun, 17 Feb 2013 14:57:10 +0000 (15:57 +0100)]
Simplify finding the right locale.
Michael Tremer [Sun, 17 Feb 2013 14:49:41 +0000 (15:49 +0100)]
Make debug mode configurable.
Default is false.
Michael Tremer [Sun, 17 Feb 2013 14:45:34 +0000 (15:45 +0100)]
Change default port to 7001 and start as many frontends as CPU cores are available.
Michael Tremer [Sun, 17 Feb 2013 14:25:21 +0000 (15:25 +0100)]
Update Font Awesome.
Michael Tremer [Sun, 17 Feb 2013 14:18:30 +0000 (15:18 +0100)]
Remove unused function.
Michael Tremer [Sun, 17 Feb 2013 14:02:27 +0000 (15:02 +0100)]
Update database schema.
Michael Tremer [Sun, 17 Feb 2013 13:58:41 +0000 (14:58 +0100)]
Alter search so that no FULLTEXT index is required.
Our version of MySQL does not support FULLTEXT indexes
with InnoDB.
Michael Tremer [Sun, 17 Feb 2013 13:24:57 +0000 (14:24 +0100)]
Optimize getting the latest build.
Michael Tremer [Sun, 17 Feb 2013 13:09:57 +0000 (14:09 +0100)]
packages overview: Also show recent packages, which are not in a repository.
Michael Tremer [Sat, 16 Feb 2013 20:43:50 +0000 (21:43 +0100)]
Update translations.
Michael Tremer [Sat, 16 Feb 2013 17:11:21 +0000 (18:11 +0100)]
Forgot to add times.html template.
Michael Tremer [Sat, 16 Feb 2013 17:10:56 +0000 (18:10 +0100)]
Add autocompletion of package names for search.
Michael Tremer [Sat, 16 Feb 2013 16:45:36 +0000 (17:45 +0100)]
Add new build time statistics page.
Michael Tremer [Fri, 15 Feb 2013 14:55:37 +0000 (15:55 +0100)]
Add links for scratch and test builds.
Michael Tremer [Fri, 15 Feb 2013 14:05:21 +0000 (15:05 +0100)]
Only show active builds on package overview.
Michael Tremer [Fri, 15 Feb 2013 12:36:24 +0000 (13:36 +0100)]
Bigger design changes on the package and builds pages.
Michael Tremer [Thu, 14 Feb 2013 16:12:50 +0000 (17:12 +0100)]
Move builders templates to own directory.
Michael Tremer [Thu, 14 Feb 2013 16:07:49 +0000 (17:07 +0100)]
BuildHeadline: Slink header.
Michael Tremer [Thu, 14 Feb 2013 15:49:53 +0000 (16:49 +0100)]
Fix uninitialized variable and change "running" colour.
Michael Tremer [Sat, 12 Jan 2013 10:46:51 +0000 (11:46 +0100)]
.diff files are viewable.
Michael Tremer [Sat, 12 Jan 2013 10:45:44 +0000 (11:45 +0100)]
Update translations.
New languages: Dutch and Ukrainian (forgot to add that .po file).
Michael Tremer [Fri, 21 Dec 2012 15:58:29 +0000 (16:58 +0100)]
Language update.
Add Ukrainian and sort languages in the dropdown menu
after their English name.
Michael Tremer [Fri, 21 Dec 2012 15:47:15 +0000 (16:47 +0100)]
Fix some wording (#10111).
Michael Tremer [Fri, 21 Dec 2012 15:44:11 +0000 (16:44 +0100)]
Rewrite bigger chunks of the job schedulung code.
This patch fixes #10164 and some more parts have been
rewritten/duplicate code has been removed.
Michael Tremer [Fri, 21 Dec 2012 15:41:54 +0000 (16:41 +0100)]
Create an actual pakfire instance when reading packages.
Michael Tremer [Fri, 21 Dec 2012 15:40:14 +0000 (16:40 +0100)]
manager: Update dist and repository update jobs.
Michael Tremer [Fri, 21 Dec 2012 15:38:31 +0000 (16:38 +0100)]
scheduler: Add function to fork worker process.
It is much better to let some jobs run in their own process,
because that helps us to deal with memory-leaks and saves
the main process from being terminated by an unforeseen error.