| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* mediagoblin/media_types/image/migrations/a98c1a320e88_image_media_type_initial.py:
New file.
|
|
|
|
|
| |
* mediagoblin/gmg_commands/alembic_commands.py (FudgedCommandLine.main):
Removed call to print.
|
|
|
|
|
|
|
|
|
| |
This allows plugin writers to easily take advantage off alembic's migration
autogeneration support.
* mediagoblin/gmg_commands/alembic_commands.py: Adjusted imports.
(FudgedCommandLine.main, parser_setup): Add support for importing
plugins when --with-plugins is passed in.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The goal is to get things to the point where Alembic can run on its own
for new databases and initialize the whole database on its own. There
are risks to not doing so, see #5413 for details.
There's a lot more here that could removed or cleaned up once
sqlalchemy-migrate is *completely* removed in the future.
* mediagoblin/db/migration_tools.py (MigrationManager.foundations):
Removed attribute.
(MigrationManager.populate_table_foundations): Removed method.
(MigrationManager.init_or_migrate): Removed call to deprecated method.
(populate_table_foundations): New function, refactored from former
MigrationManager method of same name.
* mediagoblin/gmg_commands/dbupdate.py: Import populate_table_foundations.
(DatabaseData.foundations): Remove attribute.
(DatabaseData.make_migration_manager): Adjust instantiation of
MigrationManager.
(gather_database_data): Move out the work of building up foundations data.
(run_foundations): New method, incorporating logic for gathering and
running foundations which was previously spread across other
functions and methods.
(run_alembic_migrations): Remove deprecated comment.
(run_dbupdate): Only run sqlalchemy migrations if we have to.
Also run run_foundations if we are setting up this database for the
first time.
(sqam_migrations_to_run): New method.
|
|
|
|
|
|
|
|
|
| |
This is a necessary step towards deprecating sqlalchemy-migrate.
* mediagoblin/db/migrations/versions/52bf0ccbedc1_initial_revision.py
(upgrade): Update for adding tables. Mostly generated via Alembic's
autogenerate tools.
(downgrade): Added a comment.
|
|
|
|
|
|
|
|
| |
This allows us to make use of automatically generated migrations, at
least for core.
* mediagoblin/db/migrations/env.py (target_metadata): Switch to gmg's
Base.metadata.
|
|
|
|
|
|
|
| |
This is important (probably) for long-running plugin branches.
* mediagoblin/db/migrations/script.py.mako: Updated to upstream
Alembic version of this file.
|
|
|
|
|
|
|
|
|
| |
This makes use of the recently added "build_alembic_config" tool and
removes AlembicMigrationManager.
* mediagoblin/db/migration_tools.py (AlembicMigrationManager): Removed.
* mediagoblin/gmg_commands/dbupdate.py (run_alembic_migrations):
Adjusted to use recently added build_alembic_config tool.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
textlive-texmf is currently a dependency of texlive in Guix, and is
very large. Users may want to know and disable this dependency, if
they can bear limiting the media types they are developing with.
* guix-env.scm: New comment on returned package.
|
|
|
|
|
|
|
| |
Some tests were added for running audio and video submission tests in
test_submission.py. Unfortunately these were not skipped if these
dependencies were not installed. This patch attempts to fix that while
leaving the tests intact.
|
|\ |
|
| | |
|
|/
|
|
| |
Fix bug 5401
|
|
|
|
|
|
|
|
| |
gmg_commands.alembic attempted to import from `alembic`. On python2.7
it resulted in import from itself.
Rename alembic.py to alembic_commands.py and fix references to
gmg_commands.alembic.
|
|
|
|
| |
Closes bug 5401
|
| |
|
| |
|
|
|
|
|
| |
Change the comment ID behaviour and source of
user_pages/blog_media.html to match user_pages/media.html as of #5376.
|
|
|
|
|
| |
Change the comment ID behaviour and source of user_pages/report.html
to match user_pages/media.html as of #5376.
|
|
|
|
|
| |
This allows you to dispatch to the "alembic" command line tool properly,
but properly respecting MediaGoblin's own configuration.
|
| |
|
|
|
|
|
| |
Thanks to Jessica Tallon for pointing out this TODO and its associated
hack could be removed.
|
|
|
|
|
| |
Code seems to pass fine after the cap is removed. Whatever dependency
issues we were running into before don't seem to be an issue now.
|
|
|
|
|
| |
This builds on work done for #5376 and associates the correct comment
ID with comment report links.
|
|
|
|
|
| |
This patch addresses an issue where a server error is caused by
entering a non-existent comment ID in a media URL.
|
|
|
|
|
|
|
| |
This ensures that links to comments have the correct ID (the
ID of the Comment object) as well as fixing deletion on reports
and fixing a few other little things. I hope this fixes the #5376
issue, though cannot reproduce so unable to confirm.
|
| |
|
|
|
|
| |
Fix a typo in models.py.
|
|
|
|
|
|
|
| |
It seems there was a commit for a while where the migration was
making Report.object_id NOT NULL and this caused an errror when
a report deleted the associated object (media). This migrtion
checks it's nullable and if not, alters it so it is.
|
| |
|
| |
|
|
|
|
|
|
| |
The original wrapper existed and should be been removed, this fix
now ensures the TextComment removes the Comment wrapper to prevent
the deleted (comments which are tombstones) existing.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This shouldn't really effect much but it is a needed change for the future
this changes the Notification.object_id to be the ID of the Comment (the link
table to the comment object) rather than TextComment (the comment object itself).
This is needed as now comments can be other things, other than TextComment.
|
|
|
|
| |
That was *already* upstream in guix!
|
|
|
|
|
|
|
| |
subject body
There's nothing useful about seeing b'foo\nbar\nbaz' printing to
stdout. That's not what the user should get!
|
|
|
|
|
| |
python-paste and python-pastescript are now part of Guix proper.
Working on getting python-chardet there as well.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(Thanks to David Thompson for help on the MediaGoblin packaging, which
went into this a lot!)
|
|
|
|
| |
There is no viewitems in python3
|
|
|
|
|
|
|
|
| |
Gah, the previous patch was not enough! We cannot use text, we can only
use exception with a special attribute.
Lets return safe None for now an resolve this properly later, when we're
not in the freeze.
|
|
|
|
|
|
|
|
| |
fail_error was used in import, but due to some changes text could appear
there and it caused an error.
There is little sense now to remove these text messages because they are
probably in databases already, so just ignore import errors.
|