Граф коммитов

85 Коммитов

Автор SHA1 Сообщение Дата
Paul Craciunoiu 0a14f00d7e [bug 620712] Drop TikiWiki tables. 2010-12-21 13:17:16 -08:00
Erik Rose af6c15d572 [bug 617464] Move remaining MyISAM tables to InnoDB and add a test that keeps them that way.
Also make sure all newly created tables are UTF-8.
2010-12-13 18:53:52 -08:00
Paul Craciunoiu 87e18d9cda [617452] Migrate Live Chat helpers. 2010-12-09 15:53:10 -08:00
Erik Rose 8c1c78d04c [616284] Make auto-created redirects unlocalizable.
As for the other deleted comment, we decided to implement the locale fallback instead of doing that.
2010-12-06 11:23:10 -08:00
James Socol ebaca5ebc3 Make profile/nick/display name optional. 2010-12-03 11:48:37 -05:00
Ricky Rosario a10cdef003 Implemented user account activation via confirmation email. [bug 614703] 2010-12-02 12:13:20 -05:00
Paul Craciunoiu a523e8084c [614049] Profile model! Included: one test and test helper. 2010-12-01 15:22:54 -08:00
Ricky Rosario 7213950d4b New users app for login, logout, and redirect (and more to come). [bug 613986, bug 614002, bug 612750, bug 612749]
* Includes a SHA-256 auth backend.
2010-11-24 12:16:15 -05:00
Fred Wenzel 7158f9c7fe Store replies to customer care in the database. Bug 612931. 2010-11-19 16:25:04 -08:00
Paul Craciunoiu c549430282 [613518] Approvers from Tiki => Reviewers in Kitsune. 2010-11-19 14:28:59 -08:00
James Socol 532e1e3fd6 Clean up the charset and engine on wiki_helpfulvote. 2010-11-18 15:11:54 -05:00
Paul Craciunoiu 20cad3ed87 Add gallery permissions and content type. 2010-11-16 11:50:39 -08:00
James Socol 66adc20d85 KBForums tables should be utf8/InnoDB. [bug 611688] 2010-11-15 14:46:05 -05:00
James Socol 9c7e416d44 Related documents. [bug 604121]
This has two parts:
 * A RelatedDocument model/table that's used to store document relatedness.
 * A cron job that populates the table as efficiently as it can.

The cron can run hourly/daily/whatever makes sense. (Maybe during a KB sprint
we can crank it up and normally we can turn it back down.)

The cron does need to run on the master because it does an INSERT...SELECT.
2010-11-04 18:36:45 -04:00
Erik Rose b5f5136aec Add a test that notices repeated version numbers in the DB migration filenames that could screw up schematic's assumptions. Bump the version of every migration since 42 to conform. 2010-11-03 15:33:37 -07:00
Paul Craciunoiu 6c20d6c15e [596116] Unicode in filenames now supported in upload app. And more.
* Convert latin1 tables to utf8 (also give them an explicit collation)
* Add settings for max filename length and validate the form against them.
* Add form validation messages.
* Uploading images through ajax now works (iframe access was denied).
* Alter all filename fields in the db to increase the max_length.
* Organize upload tests better.
2010-11-03 14:23:17 -07:00
Paul Craciunoiu e7cfe390f2 [605275] Unique metadata for wiki documents.
Documents now can't have the same metadata multiple times, e.g. multiple (item_id, document_id) entries.
2010-11-02 09:10:31 -07:00
James Socol f7025b4b57 Put the is_localizable index on the right field [bug 607490] 2010-10-28 11:30:05 -04:00
Ricky Rosario 6f26978456 Implemented Document Helpful/Not Helpful voting [bug 606193] 2010-10-25 22:14:48 -04:00
Paul Craciunoiu c47c08d46e [599006] Add is_localizable field and UI behavior for it.
* Hide "Allow translations" for documents with existing translations since you can't disallow them.
* Disable the "Localize" side tab if document is not localizable.
* Add Document.save checks for disallowing children if self is not localizable.
* Also politely check and break if trying to disallow children on a document which already has some.
2010-10-22 18:28:05 -07:00
James Socol 4aa9140cea Say hello to KB discussion. [bug 602958]
Adds a `kbforums` app, which is a clone of the `forums` app with a few
tweaks:

* The top-level `Forum` model is replaced by `wiki.models.Document`.
* The permissions have been simplified. There are no per-document forum
  permissions.
* The `Document` does not track its `last_post`.
* `Post.author` has been renamed to `Post.creator` following our ad hoc
  standard.
* The ability to override `Post.created` and `Post.updated`, only used
  in the data migration, is gone.
* Moving threads is gone. This needs more thought, and moving to the
  `forums` app is non-trivial.
2010-10-20 10:50:18 -04:00
James Socol 23c860974b Removing out of date/misleading docs. 2010-10-07 18:21:42 -04:00
Paul Craciunoiu e664ef5c3d [600747] Video hook and render with Flash fallback.
* Videos are identified by title and locale
* Depends on an update in py-wikimarkup which adds support for <video> and <source> tags (py-wikimarkup commit cc06e6d264622891b6b018e8670c9ef4bb12d618)
* Attaches all the _hook_*s to the WikiParser class, because they need a contextual locale.
* Adds locale support for any of the hooks that do document lookup.
* Uses SWFobject JS lib to support flash fallback for video.
* Adds a migration for unique ('locale', 'title') on gallery_video and gallery_image
* Adds a WIKI_VIDEO_WIDTH|HEIGHT constant that may be used as MAX_WIDTH|HEIGHT in the future, once we get video thumbnails.
2010-10-07 15:07:19 -07:00
James Socol ad296456c1 Update migration number. 2010-10-05 18:54:55 -04:00
James Socol 21defa5439 Fixes from feedback. 2010-10-05 18:48:15 -04:00
Ricky Rosario 0c6ce69486 Added locale support to EventWatch. [bug 599022] 2010-10-04 14:21:20 -04:00
Alex Buchanan 2d3a07e9fc Customer Care, bug 599808, include unique key in tweet table migration 2010-09-28 16:45:21 -07:00
Ricky Rosario 8a85a71eb2 Added `ready for review` notification [bug 599022]
* Includes a change to the notifications app to allow watching a model (all instances), instead of just a single instance.
2010-09-28 17:46:59 -04:00
Ricky Rosario e25f34fd63 Fixed migration number that was missed in merge 2010-09-28 11:20:24 -04:00
Alex Buchanan cc2c1143c5 Fix Customer Care migrations 2010-09-27 15:59:00 -07:00
Alex Buchanan f919dbde27 Customer Care templates 2010-09-27 15:59:00 -07:00
Fred Wenzel 3d9d460a99 Customer Care. Canned responses, incl. initial data. Bug 591942. 2010-09-27 15:58:57 -07:00
Fred Wenzel 78f55c9b91 Customer Care is born. Tweet collection included! 2010-09-27 15:57:41 -07:00
Ricky Rosario 49a7c6fbe3 [bug 595220] Made revision significance field optional. It is only set on approval now. 2010-09-24 13:59:36 -04:00
Paul Craciunoiu 57f3f568f5 [592674] Media gallery uploads backend
* Raise FixtureMissingError in test helpers, e.g. on creating media gallery image and wiki revision, instead of creating testuser
* Add ImageUploadForm and VideoUploadForm
* Simplify gallery app's urls.py
* Adds a bunch of gallery utils to create and upload media
* Adds two views up_media_async, del_media_async
* Rename upload_images to upload_imageattachments
* Define a more generic upload_media function to be used by the gallery app
* Document some of our coding conventions
* Add a migration for the video model
* Define a MAX_FILESIZE for video uploads (16 megabytes), overwritable in settings_local.py
2010-09-15 15:23:58 -07:00
Paul Craciunoiu b36fe8e362 [589027] Template hook and custom syntax support
* Templates are simply documents with title.startswith('Template:')
* Template args are not wiki parsed
* Document.save() keeps is_template in sync with document.title
* Add a migration for the new is_template column
* Turn {note}{/note} into <div class="note"></div>, and similarly for {warning}
* Turn {menu This is a menu item} into <span class="menu">This is a menu item</span>
* Turn {key X} into <span class="key">X</span>
* Expand {key ctrl+alt+X} into <span class="key">ctrl + <span class="key">alt</span> + <span class="key">X</span>
* Allow for inline templates (there is a check for templates containing newlines in hook_template)
2010-09-15 13:44:23 -07:00
Ricky Rosario 77a3003763 The Review Revision view/template [bug 593041] 2010-09-07 17:35:45 -04:00
Paul Craciunoiu 28061e093f [592670] Media gallery models: a gallery app
Includes:
* migrations for the models
* a shared abstract model Media for the concrete Image and Video models
* restricting locale choices in the gallery and wiki models
* some check.py complaints and cleanup
* a documentation section for production regarding upload paths
2010-09-07 13:16:21 -07:00
James Socol 1dc5d2c2e7 [bug 583427] Removing old fixtures and content types. 2010-09-03 14:28:29 -04:00
Paul Craciunoiu 28997476c5 [592100] Adding slug for documents and use it for internal links
* Also checks for existence of document in parser._getWikiLink
* Add JS support for slug. Uses django's URLify function combined with their jQuery plugin, prepopulate
* Add migration 35 to add the slug column to the model
* Using django's urlquote/urlencode and removing our related sumo tests
2010-09-02 13:37:32 -07:00
James Socol 9930bf85fb Stop Answer.get_absolute_url() from making any DB queries. 2010-09-01 12:25:39 -04:00
Ricky Rosario ab68a83859 [bug 589257] Content type and permissions for wiki models 2010-08-26 15:36:55 -04:00
Erik Rose a690cccd49 Update and renumber migration 32 (nee 31) to jibe with edits to models. Oops!
If you already ran 31-wiki-app, drop the wiki_document and wiki_revision tables before running 32-wiki-app.

Also:
* Index OS and FF version values, since we'll want to filter by those for document listings.
* Move content_parsed property to Document (which makes more sense), and comment it out. Whoever needs it can uncomment and test it.
* Change table types to InnoDB and charset to utf8.
2010-08-26 15:36:52 -04:00
Erik Rose 0298e71116 Start wiki app and add skeletal models.
Still plenty to do, but we should be able to collaborate on the rest as we implement.
2010-08-26 15:36:51 -04:00
Erik Rose 67a4192d12 [583106] Introduce 2 new permissions--view_in_forum and post_in_forum--making it possible to have hidden-to-the-public and read-only forums.
A forum not having one of the new permissions defined on it via django-authority is considered to grant that permission to the world. (The auth backends we're using have no concept of granting a permission to the world.)
2010-08-16 17:42:40 -07:00
Ricky Rosario 5536aca929 [bug 570427] Threads can be moved to different forums now 2010-08-10 18:25:44 -07:00
Paul Craciunoiu fe5acbcd0a [584937] Flags are not deleted for deleted objects.
Also:
* cleans up a TODO for edit question in the flagged_question.html template.
* checks if content_object is set before attempting to show it. Downside is that we won't find integrity errors if they occur otherwise, but those shouldn't occur in the first place.
2010-08-09 11:57:22 -07:00
Ricky Rosario c814e090b3 Added flagit.can_moderate permission (bug 585198) 2010-08-07 10:11:47 -04:00
Paul Craciunoiu 01bf4d901a [584885] Don't preserve old ids and reply to Tiki threads with new link. Add migration to lock threads from forum 6. 2010-08-06 10:33:21 -07:00
James Socol d6f7159cb6 [bug 584716] Multiple tags should be an intersection, not a union. 2010-08-05 14:32:06 -04:00