Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix serialization after model changes | Jessica Tallon | 2015-08-20 | 2 | -10/+11 | |
| | | | | | | After the recent model changes there were some bugs which were introduced into the serialization methods of the models. This commit fixes those issues. | |||||
* | Change structure of MediaEntry and add migration | Jessica Tallon | 2015-08-19 | 3 | -13/+70 | |
| | | | | | | This makes the changes needed for federating MediaEntry objects as well as adding the migration and necessary methods to get the public_id just in time (JIT). | |||||
* | Add the user models to the MODELS list | Jessica Tallon | 2015-07-31 | 2 | -16/+37 | |
| | | | | | | | | This adds the two new user models (LocalUser and RemoteUser) to the MODELS list that is in models.py. This stops the strange bug that occurs if you migrate a fresh database, the two models don't exist however migrating an existing database would create them as the migrations exist. | |||||
* | Change codebase to query or create correct User model | Jessica Tallon | 2015-07-31 | 1 | -0/+1 | |
| | | | | | | | The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser. | |||||
* | Add polymorphic properties to User | Jessica Tallon | 2015-07-31 | 2 | -3/+25 | |
| | | | | | | | | | | This adds the ability to search for any user based on the generic User case and be given back the specific LocalUser or RemoteUser. This will require any code using the model to look which attributes they are searching on and specify the specific User model they are on if they're not on the generic User model. This will also require new users to be created with LocalUser. | |||||
* | Add LocalUser and RemoteUser and migration | Jessica Tallon | 2015-07-31 | 2 | -58/+217 | |
| | ||||||
* | Fix removal of ActivityIntermediatory migration | Jessica Tallon | 2015-06-24 | 1 | -2/+19 | |
| | | | | | | | | | | The migration had a problem where other tables still referenced the migration as well as a typo in an earlier migration. They have both been fixed and tested on PostgreSQL and SQLite3. This also fixes a bug where sometimes when creating an activity it'd raise an Exception as the object hadn't got an ID. This has been fixed globally with a fix to the create_activity federation tool. | |||||
* | Fix some problems with activity mixins and migrations | Jessica Tallon | 2015-05-26 | 3 | -21/+21 | |
| | ||||||
* | Add a more verbose GenericForeignKey implementation | Jessica Tallon | 2015-05-26 | 2 | -67/+38 | |
| | ||||||
* | Remove deprecated fields and fix activity creation in tools | Jessica Tallon | 2015-05-26 | 1 | -9/+0 | |
| | ||||||
* | More fixed recommended by Elrond | Jessica Tallon | 2015-05-26 | 1 | -11/+8 | |
| | | | | | | | This fixes the problem where GenericForeignKey could only be used with models that are in the core of Mediagoblin, it now can be used with any model that SQLAlchemy knows about, including plugins. This also fixes some small bugs caused by incorrect ordering of params into a function. | |||||
* | Add some fixes Elrond suggested and doc strings | Jessica Tallon | 2015-05-26 | 1 | -14/+41 | |
| | ||||||
* | Add migration to remove ActivityIntermediator | Jessica Tallon | 2015-05-26 | 2 | -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 implementation | Jessica Tallon | 2015-05-26 | 1 | -22/+36 | |
| | ||||||
* | Migrate Activity to using the new GenericForeignKey | Jessica Tallon | 2015-05-26 | 2 | -47/+166 | |
| | ||||||
* | Add GenericForeignKey field and reference helper model | Jessica Tallon | 2015-05-26 | 2 | -2/+93 | |
| | ||||||
* | Fix the token issues in the migration | Christopher Allan Webber | 2015-02-17 | 1 | -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_token | Christopher Allan Webber | 2015-02-17 | 1 | -1/+1 | |
| | ||||||
* | Fixing typo: notifiction->notification | Christopher Allan Webber | 2015-02-17 | 1 | -1/+1 | |
| | ||||||
* | This one should be dt_to_utc, not db_to_utc, I believe | Christopher Allan Webber | 2015-02-17 | 1 | -1/+1 | |
| | ||||||
* | Fix #1065 - Migrate from native datetimes to UTC | Jessica Tallon | 2015-02-15 | 2 | -20/+146 | |
| | ||||||
* | Change 'federation' name to 'api' which is more suitable | Jessica Tallon | 2015-02-15 | 2 | -9/+9 | |
| | ||||||
* | Fix #1052 - Make activity cascade delete work when deleting a user | Jessica Tallon | 2015-01-27 | 1 | -1/+2 | |
| | ||||||
* | Fix 1e0c938 by allowing target to be translatable in Activity.content | Jessica Tallon | 2014-12-22 | 1 | -9/+17 | |
| | ||||||
* | Allow Activity.content to be fully translatable | Jessica Tallon | 2014-12-22 | 1 | -2/+19 | |
| | ||||||
* | Fix #1077 - Fix updating comment via API and add test | Jessica Tallon | 2014-12-16 | 1 | -22/+16 | |
| | ||||||
* | Fix #1053 - Add height and width attributes and MetadataProcess task | Jessica Tallon | 2014-12-11 | 1 | -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.serialize | Jessica Tallon | 2014-12-08 | 1 | -0/+5 | |
| | ||||||
* | Fix #1049 - name renamed to displayName for Location | Jessica Tallon | 2014-12-05 | 1 | -3/+3 | |
| | ||||||
* | There's absolutely no reason for a Session().commit object mirrored onto ↵ | Christopher Allan Webber | 2014-12-03 | 1 | -4/+0 | |
| | | | | | | Session() :) Thanks for catching, Elrond :) | |||||
* | Make all mixin methods ignore mg_globals and use self._app instead | Christopher Allan Webber | 2014-12-03 | 1 | -4/+3 | |
| | | | | This commit sponsored by Daniel Lang. Thank you! | |||||
* | Attach the MediaGoblinApp to the engine, and provide a way for models to access | Christopher Allan Webber | 2014-12-03 | 2 | -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 compatibility | Christopher Allan Webber | 2014-12-03 | 1 | -0/+4 | |
| | ||||||
* | Attach the base models to sessions and the DatabaseMaster for backwards ↵ | Christopher Allan Webber | 2014-12-03 | 1 | -2/+14 | |
| | | | | | | compatibility Really we should stop relying on that though. | |||||
* | Only conditionally import Session in db/util.py | Christopher Allan Webber | 2014-12-03 | 1 | -1/+5 | |
| | ||||||
* | Move the scoped_session, sessionmaker imports | Christopher Allan Webber | 2014-12-03 | 1 | -1/+1 | |
| | ||||||
* | Some docstrings | Christopher Allan Webber | 2014-12-03 | 1 | -0/+13 | |
| | ||||||
* | Return DatabaseManager or DatabaseMaster depending on DISABLE_GLOBALS | Christopher Allan Webber | 2014-12-03 | 1 | -2/+6 | |
| | | | | They're both similar! One sets up sessions, one grabs sessions from a global object. | |||||
* | Oops, got the boolean backwards :P | Christopher Allan Webber | 2014-12-03 | 1 | -1/+1 | |
| | ||||||
* | Adding DatabaseManager as an alternative to DatabaseMaster | Christopher Allan Webber | 2014-12-03 | 1 | -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 variables | Christopher Allan Webber | 2014-12-03 | 1 | -5/+9 | |
| | ||||||
* | Give our sqlalchemy objects access to their own session | Christopher Allan Webber | 2014-12-03 | 1 | -0/+6 | |
| | ||||||
* | Fix #1040 - Comments should have published attribute | Jessica Tallon | 2014-11-27 | 1 | -1/+4 | |
| | ||||||
* | Fix unicode handling in "gmg addmedia". | Berker Peksag | 2014-11-22 | 1 | -1/+5 | |
| | ||||||
* | Fix #1025 - Make API IDs IRIs | Jessica Tallon | 2014-11-21 | 2 | -12/+35 | |
| | ||||||
* | Fix #1039 - Fix typo in user model 'oublished' to 'published' | Jessica Tallon | 2014-11-20 | 1 | -1/+1 | |
| | ||||||
* | Fix #1023 - Make timestamps in API timezone aware | Jessica Tallon | 2014-11-19 | 2 | -6/+16 | |
| | ||||||
* | Fix User and MediaEntry serialize and add serialize to models which need it | Jessica Tallon | 2014-11-04 | 1 | -2/+17 | |
| | ||||||
* | Fix problem where duplicate slug would cause an update exception | Jessica Tallon | 2014-10-22 | 1 | -15/+18 | |
| | ||||||
* | Fix #984 - Improvements to Activity and ActivityIntermediator | Jessica Tallon | 2014-10-21 | 2 | -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 |