aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db
Commit message (Collapse)AuthorAgeFilesLines
* Add some fixes Elrond suggested and doc stringsJessica Tallon2015-05-261-14/+41
|
* Add migration to remove ActivityIntermediatorJessica Tallon2015-05-262-59/+12
| | | | | Migration to drop the table and removal of it from the model as it has now been superseeded by the GenericForeignKey field.
* Fix the GenericForeignKey implementationJessica Tallon2015-05-261-22/+36
|
* Migrate Activity to using the new GenericForeignKeyJessica Tallon2015-05-262-47/+166
|
* Add GenericForeignKey field and reference helper modelJessica Tallon2015-05-262-2/+93
|
* Fix the token issues in the migrationChristopher Allan Webber2015-02-171-3/+3
| | | | | | There's no .id on access/request token tables, so fixed to use the .token field. Also switched a reference of client_table -> rt_table
* acess_token->access_tokenChristopher Allan Webber2015-02-171-1/+1
|
* Fixing typo: notifiction->notificationChristopher Allan Webber2015-02-171-1/+1
|
* This one should be dt_to_utc, not db_to_utc, I believeChristopher Allan Webber2015-02-171-1/+1
|
* Fix #1065 - Migrate from native datetimes to UTCJessica Tallon2015-02-152-20/+146
|
* Change 'federation' name to 'api' which is more suitableJessica Tallon2015-02-152-9/+9
|
* Fix #1052 - Make activity cascade delete work when deleting a userJessica Tallon2015-01-271-1/+2
|
* Fix 1e0c938 by allowing target to be translatable in Activity.contentJessica Tallon2014-12-221-9/+17
|
* Allow Activity.content to be fully translatableJessica Tallon2014-12-221-2/+19
|
* Fix #1077 - Fix updating comment via API and add testJessica Tallon2014-12-161-22/+16
|
* Fix #1053 - Add height and width attributes and MetadataProcess taskJessica Tallon2014-12-111-0/+16
| | | | | | | | Added "height" and "width" attributes to "image" and "fullImage" in the API where possible. The height and width of images wasn't being stored anywhere so I've created a task to add or update the metadata on images and also started adding those to new images when they're submitted in the InitialProcessor.
* Fix #1054 - Add missing attributes to Activity.serializeJessica Tallon2014-12-081-0/+5
|
* Fix #1049 - name renamed to displayName for LocationJessica Tallon2014-12-051-3/+3
|
* There's absolutely no reason for a Session().commit object mirrored onto ↵Christopher Allan Webber2014-12-031-4/+0
| | | | | | Session() :) Thanks for catching, Elrond :)
* Make all mixin methods ignore mg_globals and use self._app insteadChristopher Allan Webber2014-12-031-4/+3
| | | | This commit sponsored by Daniel Lang. Thank you!
* Attach the MediaGoblinApp to the engine, and provide a way for models to accessChristopher Allan Webber2014-12-032-1/+10
| | | | | | | This allows SQLAlchemy models to gain access to app-level configuration without the need for global variables. This commit sponsored by Peter Hogg. Thank you, Peter!
* Adding query property to DatabaseMaster for forward compatibilityChristopher Allan Webber2014-12-031-0/+4
|
* Attach the base models to sessions and the DatabaseMaster for backwards ↵Christopher Allan Webber2014-12-031-2/+14
| | | | | | compatibility Really we should stop relying on that though.
* Only conditionally import Session in db/util.pyChristopher Allan Webber2014-12-031-1/+5
|
* Move the scoped_session, sessionmaker importsChristopher Allan Webber2014-12-031-1/+1
|
* Some docstringsChristopher Allan Webber2014-12-031-0/+13
|
* Return DatabaseManager or DatabaseMaster depending on DISABLE_GLOBALSChristopher Allan Webber2014-12-031-2/+6
| | | | They're both similar! One sets up sessions, one grabs sessions from a global object.
* Oops, got the boolean backwards :PChristopher Allan Webber2014-12-031-1/+1
|
* Adding DatabaseManager as an alternative to DatabaseMasterChristopher Allan Webber2014-12-031-25/+77
| | | | | This is another step to get to a no-globals configuration. I'm not sure if this code works yet or not... :)
* An environment variable to transition towards removing global variablesChristopher Allan Webber2014-12-031-5/+9
|
* Give our sqlalchemy objects access to their own sessionChristopher Allan Webber2014-12-031-0/+6
|
* Fix #1040 - Comments should have published attributeJessica Tallon2014-11-271-1/+4
|
* Fix unicode handling in "gmg addmedia".Berker Peksag2014-11-221-1/+5
|
* Fix #1025 - Make API IDs IRIsJessica Tallon2014-11-212-12/+35
|
* Fix #1039 - Fix typo in user model 'oublished' to 'published'Jessica Tallon2014-11-201-1/+1
|
* Fix #1023 - Make timestamps in API timezone awareJessica Tallon2014-11-192-6/+16
|
* Fix User and MediaEntry serialize and add serialize to models which need itJessica Tallon2014-11-041-2/+17
|
* Fix problem where duplicate slug would cause an update exceptionJessica Tallon2014-10-221-15/+18
|
* Fix #984 - Improvements to Activity and ActivityIntermediatorJessica Tallon2014-10-212-10/+14
| | | | | | - Add unit tests to cover get and set methods on Activity - Rewrite the set to remove set and use Session.flush instead - Use sqlalchemy's validator instead of .save hack
* Merge branch 'location'Jessica Tallon2014-10-092-4/+149
|\ | | | | | | | | | | | | | | | | | | | | | | Add Location model which holds textual, geolocation coordiantes or postal addresses. This migrates data off Image model metadata onto the general Location model. It also adds the ability for location to be set on MediaEntry, User, MediaComment and Collection models. The geolocation plugin has been updated so that the location can be displayed in more general places rather than explicitely on the MediaEntry view. If GPS coordiantes are set for the User the profile page will also have the OSM provided by the geolocation plugin.
| * Add location model and migrationsJessica Tallon2014-10-092-5/+151
| |
* | Merge branch '905-activities'Jessica Tallon2014-10-073-16/+503
|\ \ | | | | | | | | | | | | | | | Add Activity and Generator models which allow for activities to be created. This now works with the feed API.
| * | Add __repr__ to Activity and Generator classJessica Tallon2014-10-072-1/+19
| | |
| * | Fix bug where activity.content was not populatedJessica Tallon2014-10-061-2/+6
| | |
| * | Fix all the unit tests and clean up codeJessica Tallon2014-10-063-43/+53
| | |
| * | Only have Model.activity for activity compatable objects/targetsJessica Tallon2014-09-032-85/+47
| | |
| * | Fix migrations and refactor object_typeJessica Tallon2014-09-023-89/+155
| | | | | | | | | | | | | | | | | | | | | - Make changes to objectType to be more pythonic "object_type" - Move object_type to mixins rather than be on the models - Convert migrations to sqlalchemy core rather than ORM (fix) - Change TYPES to use descriptive strings rather than numbers
| * | Add ActivityIntermediator table and refactor some of Activity modelJessica Tallon2014-08-273-220/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This has introduced a intermediatory table between object/target and the activity. This allows for multiple activities to be associated with one object/target. - This moves some of the methods off Activity model into a mixin which didn't need to interact with database things. - This also cleaned up the migrations as well as adding retroactive creation of activities for collection creation.
| * | Add better support for targets on ActivitiesJessica Tallon2014-08-261-43/+80
| | | | | | | | | | | | | | | | | | This adds betters upport for targets in the content generation and on the model itself. Adding getters for properties which would otherwise require looking up e.g. get_author.
| * | Create activity model and add activity creationJessica Tallon2014-08-222-3/+249
| |/ | | | | | | | | | | | | | | This creates the Activity and Genrator models from the Activity Streams spec and. I then created a migration which retro-actively create activities for media uploaded and comments created. Through out the code I've added so automatically activties are created when a user peforms an action (uploading media, commenting, etc.).