]>
git.ipfire.org Git - pbs.git/log
Michael Tremer [Fri, 14 Oct 2022 17:33:32 +0000 (17:33 +0000)]
tests: Mark that we are in test mode and disable LDAP stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:27:47 +0000 (17:27 +0000)]
packages: Use get_by_email to find maintainers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:27:21 +0000 (17:27 +0000)]
users: Make get_by_email tolerate any stuff around email addresses
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:22:37 +0000 (17:22 +0000)]
tests: Add some dummy data for test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 17:05:52 +0000 (17:05 +0000)]
users: Refactor fetching any user data from LDAP
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:25:38 +0000 (14:25 +0000)]
users: Require email address when the user is created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:58 +0000 (14:23 +0000)]
tests: Only print the actual message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:46 +0000 (14:23 +0000)]
tests: Add test that tries to send an email
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:23:22 +0000 (14:23 +0000)]
users: Send a welcome email on registration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:22:01 +0000 (14:22 +0000)]
tests: Assign an email address to the test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:21:24 +0000 (14:21 +0000)]
users: Correct use the email class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:19:52 +0000 (14:19 +0000)]
messages: Add __len__ to Queue class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:06:55 +0000 (14:06 +0000)]
mesages: Add To: header to all emails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 14:03:13 +0000 (14:03 +0000)]
messages: Refactor rendering messages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:53:44 +0000 (13:53 +0000)]
messages: Iterating over the queue will return all unsent messages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:23:28 +0000 (13:23 +0000)]
messages: Use a client certificate to send any emails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:23:11 +0000 (13:23 +0000)]
settings: Fix syntax error in SQL statement
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 13:11:59 +0000 (13:11 +0000)]
message: Move queuing logic out of the base class
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:50:37 +0000 (12:50 +0000)]
messages: Add logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:49:39 +0000 (12:49 +0000)]
messages: Format emails in UTF-8
And don't encode the body as base64.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:46:41 +0000 (12:46 +0000)]
static: Drop dead symlink
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:45:20 +0000 (12:45 +0000)]
tests: Dump any messages in the queue
This is mainly useful for manual debugging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 14 Oct 2022 12:44:57 +0000 (12:44 +0000)]
builds: Unify failure/finished methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:53:52 +0000 (15:53 +0000)]
builds: Don't notify the poster
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:46:50 +0000 (15:46 +0000)]
builds: Refactor sending emails when someone comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:42:06 +0000 (15:42 +0000)]
jobs: Drop message recipients property
Jobs don't really send any emails any more
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:41:18 +0000 (15:41 +0000)]
jobs: Drop unused add_file() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:38:14 +0000 (15:38 +0000)]
jobs: Propagate to the build that a job has finished
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:37:44 +0000 (15:37 +0000)]
jobs: Update builds job cache after cloning
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:37:05 +0000 (15:37 +0000)]
jobs: Fix saying what we are cloning
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:36:35 +0000 (15:36 +0000)]
jobs: Use the same interface to check if failed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:20:20 +0000 (15:20 +0000)]
jobs: Only send emails on fail
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:12:51 +0000 (15:12 +0000)]
users: Rename send_template() to send_email()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:05:59 +0000 (15:05 +0000)]
tests: Pretend to run a whole build
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:05:23 +0000 (15:05 +0000)]
jobs: Take some packages when the job finished
... and pretend to import them...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:04:50 +0000 (15:04 +0000)]
builds: Don't call send_finished_message() for now
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 15:04:17 +0000 (15:04 +0000)]
jobs: Rename start() to assign()
This is more like what this function does
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 14:24:12 +0000 (14:24 +0000)]
sources: Remove print statement for debugging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:38:47 +0000 (13:38 +0000)]
log: Allow filtering by user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:31:00 +0000 (13:31 +0000)]
web: Drop an unused handler
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:29:58 +0000 (13:29 +0000)]
web: Fix log page
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:25:30 +0000 (13:25 +0000)]
bugtracker: Fix rendering texts
The bug_url() function was missing.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:39 +0000 (13:02 +0000)]
tests: Test build comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:24 +0000 (13:02 +0000)]
builds: Stop using removed get_watchers() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 13:02:09 +0000 (13:02 +0000)]
builds: Fix submitting comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:48:29 +0000 (10:48 +0000)]
Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:46:54 +0000 (10:46 +0000)]
web: Drop more unused UI modules
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:42:04 +0000 (10:42 +0000)]
Drop old logging stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:33:59 +0000 (10:33 +0000)]
events: Add build watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:20:19 +0000 (10:20 +0000)]
events: Make using the UI module easier
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:18:20 +0000 (10:18 +0000)]
events: Include build comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 10:01:16 +0000 (10:01 +0000)]
events: Reorder the view to make it easier to extend
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:50:40 +0000 (09:50 +0000)]
events: Create a unified way to query for any events
This might result in a temporary monster view, but I hope that the
optimiser is smart enough to avoid running any unncessary parts.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:50:10 +0000 (09:50 +0000)]
builds: Fix rendering comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:31:01 +0000 (09:31 +0000)]
builds: Add dummy function to add watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:26:30 +0000 (09:26 +0000)]
builds: Drop obsolete update state logic
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 09:04:08 +0000 (09:04 +0000)]
builds: Refactor comments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 08:40:32 +0000 (08:40 +0000)]
builders: Drop unused password hashing functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 13 Oct 2022 08:36:07 +0000 (08:36 +0000)]
Drop all all history stuff
This is too complicated to maintain
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 18:09:52 +0000 (18:09 +0000)]
builds: Refactor watchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:54:38 +0000 (17:54 +0000)]
tests: Check whether we can add a watcher to a build
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:51:00 +0000 (17:51 +0000)]
tests: Create build from source package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:40:50 +0000 (17:40 +0000)]
tests: Test importing a source package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:31:22 +0000 (17:31 +0000)]
tests: Add some tests for builds
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:30:57 +0000 (17:30 +0000)]
builds: Add check to prevent building binary packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:19:08 +0000 (17:19 +0000)]
tests: Add tests for builders
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:09:35 +0000 (17:09 +0000)]
backend: Stop reading the system configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:05:53 +0000 (17:05 +0000)]
backend: Drop reading any configuration from the environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 17:02:46 +0000 (17:02 +0000)]
config: Move basepath into [global] section
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:58:51 +0000 (16:58 +0000)]
database: Setup correct logging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:57:10 +0000 (16:57 +0000)]
logging: Correctly set up loggers for all submodules
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:56:39 +0000 (16:56 +0000)]
hub: Use the root logger (which is set up by tornado)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:47:34 +0000 (16:47 +0000)]
logging: Correctly setup backend logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:37:13 +0000 (16:37 +0000)]
builds: Fix fetching builds by ID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:35:48 +0000 (16:35 +0000)]
builds: Avoid extra query when fetching builds by UUID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:35:35 +0000 (16:35 +0000)]
tests: Fix directory listing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:25:33 +0000 (16:25 +0000)]
tests: Enable the default distro for some architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:23:33 +0000 (16:23 +0000)]
tests: Create default objects in a single database transaction
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 16:17:57 +0000 (16:17 +0000)]
tests: Add tests for packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:57:23 +0000 (15:57 +0000)]
tests: Add an archive file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:43:23 +0000 (15:43 +0000)]
repos: Fix logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:41:42 +0000 (15:41 +0000)]
uploads: Make sure the parent directory exists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:41:26 +0000 (15:41 +0000)]
tests: Add tests for uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:38:02 +0000 (15:38 +0000)]
tests: Create a default test user
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 15:19:43 +0000 (15:19 +0000)]
backend: Take a basepath
The entire filesystem structure will be based on this path, so that we
will be able to create test environments which we can easily destroy
again.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:53:25 +0000 (14:53 +0000)]
tests: Test writing repositories
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:48:58 +0000 (14:48 +0000)]
tests: Check default repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:46:14 +0000 (14:46 +0000)]
tests: Create some basic objects during setup
This is easier than the on-demand initialization for async objects
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:41:12 +0000 (14:41 +0000)]
tests: Add some basic repo tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:27:02 +0000 (14:27 +0000)]
tests: Add tests for distros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:24:46 +0000 (14:24 +0000)]
distros: Implement creating new distros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 14:20:48 +0000 (14:20 +0000)]
tests: Flush the test configuration to disk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:56:40 +0000 (13:56 +0000)]
po: Remove location from all source files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:54:45 +0000 (13:54 +0000)]
Makefile: Automatically update POTFILES.in
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:46:23 +0000 (13:46 +0000)]
test: Add scaffolding for a testsuite for the backend
I suppose it is very hard to test the frontend part, but that is not the
highest priority.
It would already be very helpful to test the backend parts.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:44:17 +0000 (13:44 +0000)]
config: Make distro optional
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:43:52 +0000 (13:43 +0000)]
backend: Use the general configparser
SafeConfigParser has been deprecated.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 13:36:05 +0000 (13:36 +0000)]
db: Dump schema without any owner information
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 10:48:23 +0000 (10:48 +0000)]
backend: Move composing a Pakfire configuration file into its own class
This will help us to create consistent configuration files for Pakfire
and since this is now a context manager class, we will be able to
quickly jump into a local instance to execute any tasks.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 10:47:17 +0000 (10:47 +0000)]
repos: Use configparser to create configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>