aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up federation code and add tests to cover more of the APIsJessica Tallon2014-08-181-10/+3
|
* Fix a python2.6 compatibility issue. Removing a dict comprehension.Christopher Allan Webber2014-08-181-1/+2
| | | | This commit sponsored by Christopher Beppler. Thanks!
* Always remove the session when running check_db_up_to_date()Christopher Allan Webber2014-08-151-5/+10
| | | | This commit sponsored by Francois Marier. Thank you!
* Elrond keeps pointing out places I should "is not None" at :)Christopher Allan Webber2014-08-081-2/+2
|
* Okay, we don't know that indexes are falsey, so let's make it clearer. Yeek!Christopher Allan Webber2014-08-081-1/+1
|
* this negation needs parens.Christopher Allan Webber2014-08-081-1/+1
|
* Pull the indexes out of the dictionary directlyChristopher Allan Webber2014-08-081-8/+11
| | | | Instead of checking for their keys and pulling them out later, that is.
* If the constraint already exists, roll back to a sane state.Christopher Allan Webber2014-08-081-1/+1
|
* Explaining why we're committing mid-migrationChristopher Allan Webber2014-08-081-0/+4
|
* Only add the constraint if we need to. Catch an exception if we don't.Christopher Allan Webber2014-08-071-6/+10
| | | | Also, updating the comment about sqlite being crazy :)
* Document both migrations, comment out old migrationChristopher Allan Webber2014-08-071-9/+35
|
* Add a new migration which removes/fixes the old migrationChristopher Allan Webber2014-08-072-1/+51
| | | | | | | The previous migration, as it turns out, was not needed, and there were many inconsistencies put in place by adding it. See issue #920. This commit sponsored by Gergő Tisza. Thank you!
* Fix #927 - Clean up federation code after Elrond's reviewJessica Tallon2014-07-301-1/+11
| | | | | | | | - Add json_error and use inplace of json_response where appropriate. - Add garbage_collection to config spec file. - Fix bugs in both garbage collection task and test - Handle /api/whoami when no user logged in and a test for such a case. - Validate ID is correct and user has comment privilege to comment.
* Fix #923 - add allow_admin to user_has_privilege decoratorJessica Tallon2014-07-291-14/+15
|
* Add __unicode__ representation to Notification and MediaCommentMixinTryggvi Bjorgvinsson2014-07-252-1/+16
| | | | | | Instead of having __repr__ return a unicode object which it should not do, we use the __unicode__ method to allow use of Notification and MediaCommentMixin objects in unicode strings.
* Fix by thallian: use correct datetime.strptimeChristopher Allan Webber2014-07-241-1/+1
| | | | datetime.dateime already imported, so....
* Switch from slug to ID and clean up style to conform to PEP-8Jessica Tallon2014-07-221-2/+2
|
* Add unseralize for API objectsJessica Tallon2014-07-221-0/+31
|
* Add test for API object endpointJessica Tallon2014-07-221-0/+11
|
* Add more tests for federation APIsJessica Tallon2014-07-221-3/+12
|
* Fix issue where create_uuid doesn't exist nor usedJessica Tallon2014-07-221-1/+2
|
* Refactors api uploading to media managersxray72242014-07-221-12/+10
|
* Add basic comment support and flesh out some other endpointsJessica Tallon2014-07-221-8/+1
|
* Add static pump_io to API and fix problem where null appeared in profileJessica Tallon2014-07-221-2/+13
|
* Support some webfinger API's and real profile and /api/user/<user>/xray72242014-07-221-1/+1
|
* Support for the comments endpointxray72242014-07-221-2/+10
|
* Fixes problem where full URL was being used inplace of hostxray72242014-07-221-1/+1
|
* Use the the slug as the UUID instead of a newly generated UUIDxray72242014-07-221-6/+1
|
* Add image URL's (thumb & full)Jessica Tallon2014-07-222-0/+17
|
* Fixes where User id in API would return url rather than hostJessica Tallon2014-07-221-1/+1
|
* Adds comments for the MediaEntry apiJessica Tallon2014-07-221-5/+16
|
* Changes serialization to .serialize method on object - MediaEntryJessica Tallon2014-07-221-0/+43
|
* Make sure new media has a new uuid added onJessica Tallon2014-07-222-7/+10
|
* Adds migration on MediaEntry to add uuidJessica Tallon2014-07-222-2/+1
|
* Starts the user (profile) endpoint and lays groundwork for inbox and feed ↵Jessica Tallon2014-07-221-1/+25
| | | | endpoint
* Adds seralize on userJessica Tallon2014-07-221-0/+10
|
* Use unicode for logging commentsTryggvi Bjorgvinsson2014-07-182-2/+2
| | | | | | | | | | | | | The comment problems detailed in issue 791 are related to logging of comments creation. The log tries to format unicode comments into an ascii string (that is the unicode comment content). This also creates problems with mark seen functionality since that also logs the comments which breaks and you end up with a lot of international comments in your message queue. This commit makes both log messages unicode as well as the representation of the comment.
* Fix #894 - index User.username fieldJessica Tallon2014-07-172-2/+16
| | | | This commit sponsored by Emily O'Leary. Thank you!
* Removing legacy mongo-related docstringChristopher Allan Webber2014-06-231-33/+0
|
* Adding comments in the migration explaining a bit what's going on.Christopher Allan Webber2014-06-111-0/+2
| | | | This commit sponsored by Philip Horger. Thank you!
* Explicitly set the column names to "user" and "privilege"Christopher Allan Webber2014-06-112-2/+6
|
* Switch "user_id" to "privilege" and "privilege_id" to "user".Christopher Allan Webber2014-06-102-19/+25
| | | | | | | | | This builds on the previous code Natalie wrote, but makes some changes: - More direct alterations for non-sqlite code - In both cases, I've made it so that we switched the field names from privilege_id and user_id to user and privilege respectively. This way we can do the name swap, but in one case it's "easy": just changing the name. (In the sqlite case it's still tricky though.)
* Merge remote-tracking branch 'refs/remotes/tilly-q/ticket-874' into mergetestChristopher Allan Webber2014-06-102-4/+48
|\ | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * Made the columns properly referenced in models and migrations.tilly-Q2014-04-232-14/+9
| |
| * Renamed the columns on core__privileges_users table so that they are unique andtilly-Q2014-04-222-2/+47
| | | | | | | | will not cause any more problems.
* | Set a default value to MediaEntry.media_metadatatilly-Q2014-05-142-2/+4
| |
* | Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin into metadatatilly-Q2014-05-131-0/+6
|\| | | | | | | | | Conflicts: mediagoblin/gmg_commands/__init__.py
| * Issue #686: Create User.url_for_self() method.Berker Peksag2014-04-101-0/+6
| | | | | | | | | | *Note from cwebber on merge of this branch:* Thanks also to Sturm who provided an early version of this patch.
* | Changed the name of the metadata columntilly-Q2014-04-212-2/+2
| |
* | Moved the metadata column to MediaEntry rather than MediaFiletilly-Q2014-04-212-5/+5
| |