5297 Commits

Author SHA1 Message Date
Ben Sturmfels
6f48143f4c
Apply pyupgrade --py36-plus.
This removes some 'u' prefixes and converts simple format() calls to f-strings.
2021-09-23 11:51:04 +10:00
Ben Sturmfels
f90707e22c
Fix spacing. 2021-09-20 17:09:42 +10:00
Ben Sturmfels
647b1d28ca
Mention building docs in contributing. 2021-09-20 17:00:23 +10:00
Ben Sturmfels
66b19ce1d8
Add a stub "contributing" page to documentation. 2021-09-20 16:58:04 +10:00
Ben Sturmfels
8ea7d4c58b
Don't ignore .patch files.
I like to be able to see these in Magit.
2021-09-20 16:02:34 +10:00
Ben Sturmfels
3bdece945d
Actually add the page. :) 2021-09-20 15:54:03 +10:00
Ben Sturmfels
96de552f5e
Add a troubleshooting page to the docs. 2021-09-20 15:52:32 +10:00
Ben Sturmfels
80956562e9
Update relnotes. 2021-09-20 15:14:49 +10:00
Michael McMahon
bc2990c279
Set videos to preload="metadata" to prevent upfront download [trac#5625].
Setting was previously preload="auto". While preload="auto" *does not* cause a
full upfront download on Firefox, Abrowser, IceCat or Chromium, a user reported
on the LibrePlanet mailing list that it was causing a full download on their
browser. The specifications leave it up to the browser do decide whether to
download, but it makes sense to do what we can to avoid surprising people on low
bandwidth/quota internet connections.

https://html.spec.whatwg.org/multipage/media.html#attr-media-preload

Further, media.libreplanet.org (one of MediaGoblin's biggest users) has
implement this change locally, so it makes sense for us to stay in sync.

Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-09-20 14:23:06 +10:00
Ben Sturmfels
de60546e34
Fix link. 2021-09-20 13:04:57 +10:00
Ben Sturmfels
f95edb8d2e
Neaten up readme. 2021-09-20 13:03:19 +10:00
Ben Sturmfels
f9eb65af1f
Fix readme join link. 2021-09-20 12:43:29 +10:00
Ben Sturmfels
ed4e479c83
Link to website from readme. 2021-09-20 12:33:25 +10:00
Ben Sturmfels
1b754ebd3f
Add a goblin to our readme. 2021-09-20 12:31:36 +10:00
Ben Sturmfels
9f21a3a10c
Convert README to Markdown for better display on SourceHut. 2021-09-20 12:25:54 +10:00
Elisei Roca
5ff0fe2f20
Remove unneeded shebang from test_processing.py.
Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-09-20 12:10:08 +10:00
Elisei Roca
b30ee2e4d2
Add db/migrations/env.py to MANIFEST.in
This fixes a warning I have with packaging where this file would get
installed in the wrong place (/usr/mediagoblin/env.py).

Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-09-20 12:10:04 +10:00
Ben Sturmfels
2badff23a8
Fix references to non-existant package.json [trac#5615]. 2021-09-19 23:06:44 +10:00
Olivier Mehani
6a90476e08
Extend left/right arrow key navigation to paginated views [#5627].
Includes "home", "collection", "view all user's media" and "user's profile" views.

Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-09-19 21:41:48 +10:00
Ben Sturmfels
e7d6996dd1
Update for 0.13.0 development cycle. 2021-09-19 21:22:57 +10:00
Ben Sturmfels
7e931ae849
Extend release instructions. 2021-09-19 21:08:15 +10:00
Ben Sturmfels
6963a5a62e
Remove mention of Python 2.7. 2021-09-19 21:07:14 +10:00
Ben Sturmfels
60c004d750
Reword. 2021-09-18 20:53:32 +10:00
Ben Sturmfels
e54504f8b0
Refine release notes. 2021-09-18 20:43:41 +10:00
Ben Sturmfels
5d1557b55e
Update release notes for 0.12.0. 2021-09-18 20:08:09 +10:00
Ben Sturmfels
0db9b5bb7b
Remove --system-site-packages argument to ./configure.
MediaGoblin ignores this argument and creates a virtualenv with
--system-site-packages regardless. Appears it's been this way since the early
days.

Removing this make the installation instructions easier to read.
2021-09-18 13:12:39 +10:00
Ben Sturmfels
45c1812a65
Fix bad name of Debian CI build file. 2021-09-18 09:56:50 +10:00
Ben Sturmfels
2738f1b472
Switch to propagated inputs. 2021-09-17 23:31:24 +10:00
Ben Sturmfels
f620b65e05
Set static path relative to codebase.
This help a Guix package to locate the basic static assets.
2021-09-17 22:57:53 +10:00
Ben Sturmfels
af09b76392
Implement gmg serve and gmg celery.
There was an existing stub for `gmg serve`, but had never been completed.

This will make it simpler to run the MediaGoblin web interface and media
processing backend.
2021-09-17 21:42:44 +10:00
jgart
ef29477b4d
Remove sphinx from native inputs.
I moved sphinx to native inputs since if sphinx were to be used it would be used to
build docs instead of as a direct library input to mediagoblin. The patch is attached.

Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-09-15 21:29:56 +10:00
Ben Sturmfels
3444bcc06c
Add note asking for feedback on installation process. 2021-09-13 15:06:19 +10:00
Ben Sturmfels
aa46d71046
Consolidate Guix packaging details across to the channel. 2021-09-13 13:29:59 +10:00
Ben Sturmfels
ba589571a1
Trim down and tidy up guix-env.scm.
Removed libsndfile and python-soundfile by excluding the relevant audio tests
until core-updates is merged. Updated to latest master branch and removed some
unnecessary dependencies.
2021-09-13 00:38:07 +10:00
Ben Sturmfels
54c610b5fe
Revert "Disable registrations by default due to spam."
Turns out this breaks tests. Will attempt again when I have time to deal with
the tests.

This reverts commit 120f144f0eb014e694a584a627c8b17856da5b51.
2021-09-12 22:51:51 +10:00
Ben Sturmfels
78b36373b4
Update guix.scm for passing test suite. 2021-09-12 13:30:51 +10:00
Ben Sturmfels
f9b978592f
Update Guix todos. 2021-09-12 11:52:20 +10:00
Ben Sturmfels
120f144f0e
Disable registrations by default due to spam. 2021-09-04 22:48:23 +10:00
Ben Sturmfels
00fb2b3d9b
Revert "Base our SourceHut CI builds on Docker."
Running the Dockerfiles in CI seemed like a good idea, but I'd forgotten that
they pull from the master branch, rather than using local source. Could be
reinstated if we make Dockerfiles use local source as discussed in trac#5574.

This reverts commit 712728c331ea3518b1964bbc7fcf06ff2c567064.
2021-09-03 22:42:56 +10:00
Ben Sturmfels
712728c331
Base our SourceHut CI builds on Docker.
This allows us to use an identical build in CI and in local development. Not the
most optimal for CI, but means less to maintain and no inconsistencies.
2021-08-23 17:43:01 +10:00
Ben Sturmfels
8c44544817
Rename CI jobs. 2021-08-23 16:28:43 +10:00
Ben Sturmfels
0fc3e69a70
Update Docker and CI builds to be more closely aligned to deploy docs. 2021-08-23 16:26:35 +10:00
Ben Sturmfels
5b0c554821
Update deploy docs for Debian 11. 2021-08-23 16:24:41 +10:00
Ben Sturmfels
b3d3d33c96
Don't disable existing loggers when initialising Celery.
Prior to this change, the Celery logging did not include any of the logging
calls within MediaGoblin because `disable_existing_loggers` defaulted to True.
This was unhelpful and inconsistent with the logging behaviour of the web process.

The MediaGoblin web process sets logging output based on the configuration in
paste.ini. This is loaded by the `paster` program, rather than MediaGoblin
itself.

The MediaGoblin celery process manually loads its logging config from paste.ini,
but previously defaulted to `disable_existing_loggers=True`, meaning that none
of the application logging flowed through unless the logger was explicitly added
to paste.ini.
2021-08-23 13:46:05 +10:00
Ben Sturmfels
cfe50e6400
Fix images being marked as failed after Celery restart [#5608].
Following the video transcoding work included in v0.10.0, uploading an image and
restarting Celery resulted in the image being marked as failed, even after it
had been initially successfully processed.

The issue was that the initial processing task was not being acknowledged by the task queue following the introduction of the
`CELERY_ACKS_LATE` setting. It's not clear why this is the case, but reverting
the setting fixes this issue and doesn't negatively impact video processing.
2021-08-23 12:46:40 +10:00
Ben Sturmfels
5d2eec67af
Update Dockerfiles to install Python deps from PyPI as per deploy docs. 2021-08-21 10:31:31 +10:00
Marco Pessotto
c6ec71b6de
Remove reference to jsonschema.compat now removed upstream.
Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-08-20 09:59:03 +10:00
Ben Sturmfels
1b55d25fec
Update guix-env to be more about MediaGoblin hacking than package building. 2021-08-19 19:02:24 +10:00
Ben Sturmfels
ea5669f93e
Convert notifications.js to vanilla JavaScript (no jQuery). 2021-08-19 18:52:10 +10:00
Ben Sturmfels
6c408fb4ea
Convert header_dropdown.js to vanilla JavaScript (no jQuery). 2021-08-19 18:44:03 +10:00