Permalink
Switch branches/tags
Nothing to show
Commits on May 11, 2018
  1. Merge pull request #74 from SebDieBln/FixWrongVariableName

    rjollos committed May 11, 2018
    Bugfix: Used wrong variable name.
  2. Revert "Mark as not maintained"

    rjollos committed May 11, 2018
    The plugin is being maintained now under the trac-hacks
    organization.
    
    This reverts commit 7026a9f.
  3. Make compatible with Trac 1.2

    rjollos committed Sep 30, 2017
  4. Conform to PEP8

    rjollos committed Sep 29, 2017
Commits on May 4, 2018
  1. Mark as not maintained

    nb committed May 4, 2018
Commits on Dec 16, 2017
  1. Bugfix: Used wrong variable name.

    Sebastian Dietrich
    Sebastian Dietrich committed Dec 13, 2017
Commits on Jul 24, 2015
  1. Handle `SubscriptionModule` being disabled

    schwuk committed Jul 24, 2015
    Only fire `subscription.fetch()` if `subscriptionView` has been bound to
    an element.
Commits on Jul 14, 2015
  1. Merge pull request #57 from schwuk/fix_56_url_not_found

    schwuk committed Jul 14, 2015
    Fixes #56 by not hardcoding the `subscription` URL
Commits on Jul 13, 2015
Commits on Apr 11, 2015
  1. Merge pull request #45 from schwuk/subscriptions-ui

    schwuk committed Apr 11, 2015
    Add (minimal) UI for subscriptions
Commits on Oct 3, 2014
  1. Fixed #48 by including text template files

    schwuk committed Oct 3, 2014
    Explicity include text template files - used by email notifications - in
    package.
  2. Fix indentation.

    schwuk committed Oct 3, 2014
  3. Replaced 404 response with 204 (empty)

    schwuk committed Sep 1, 2014
    For subscriptions that do not yet exist, return a 204 `NO CONTENT`
    response instead of a 404 `NOT FOUND`. Backbone handles empty reponses
    correctly, and the 204 code will not trigger a jQuery `ajaxError` event.
  4. Added (minimal) UI for subscriptions

    schwuk committed Aug 24, 2014
    Added `SubscriptionModule` to handle subscriptions views:
    
     * Inject a (disabled) button into `changeset`, `browser`, and
     `attachment` pages.
     * Handle `GET`, `POST`, and `PUT` requests for subscriptions, accepting
     and returning only JSON content
    
    Added `Subscription.for_request()` to get or create a subscription from
    a request.
    
    Added Backbone `Subscription` model and `SubscriptionView` view to
    handle UI interaction.
    
    Modified email template to let users know how to unsubscribe.
Commits on Sep 29, 2014
  1. Remove the line-comment template

    nb committed Sep 29, 2014
    Wasn’t used anywhere
  2. Move page-level comments to the bottom

    nb committed Sep 29, 2014
    If they’re at the top and somebody goes to the page just to look at the
    file and not at the comments, a huge discussion at the top can be very
    distracting.
    
    We assume that people will go to pages more often to see the
    files/diffs/commits than to look at comments.
  3. Visual improvements of comments display

    nb committed Sep 29, 2014
    * Comments now start from the beginning of the row – helps with recognizing
    when comments start
    * Lighter colors
    * Paddings and margins have better harmony
    * Highlighted comments are using less harsh colors than yellow
  4. Mock req when converting wiki to HTML

    nb committed Aug 20, 2014
    Some parts of the conversion code tries to use permissions or other
    parts of the request, which aren’t always present (for example when we
    convert wiki text on the console)
Commits on Aug 22, 2014
  1. Merge pull request #44 from schwuk/comment-subscriptions

    nb committed Aug 22, 2014
    Extract comment subscriptions as their own module
Commits on Aug 20, 2014
  1. Dropped `role` from `Subscription`

    schwuk committed Aug 20, 2014
    Removed `role` attribute from `Subscription` as it was providing no
    real additional value.
    
    All notifications are now sent **to** subscribers, and no longer copied.
    
    Changed some `debug` logging to be `info`.
  2. Address review comments #2

    schwuk committed Aug 20, 2014
    Test for `basestring` instead of `str` and `unicode`.
    
    Clearer logging.
    
    Don't explicitly convert `Subscription` to a `str` for logging.
  3. Address review points

    schwuk committed Aug 20, 2014
    Re-capitalise SQL keywords.
    
    Improve `Subscription.select()` to handle `unicode` values.
    
    Add `Susbcription.__str__()` to provide a string represention of a
    subscription.
    
    Refactor `Subscription._from_dict()` method to use `select()` as a
    single source for select queries and `__str__()` to improve logging.
Commits on Aug 15, 2014
  1. Refactored `CodeCommentNotifyEmail` to use subscriptions

    schwuk committed Aug 15, 2014
    Added a `for_comment` query helper.
    
    Changed the notification scheme so that resource authors **always**
    receive a "to" notification.
    
    Changed the `notify` column to be a boolean.
    
    Changed the `for_*` signatures to accept an optional `notify` flag.
    
    Changed the `select` signature to accept an optional `notify` flag, and
    the method to include the flag in the query.
    
    Changed the `select` method to handle `dict`, `list, and `bool` query
    arguments.
  2. Flesh out `Subscription` model methods

    schwuk committed Aug 15, 2014
    Added `select`, `update`, and `delete` methods to `Subscription` to handle all
    CRUD operations.
    
    Changed the signatures on `from_attachment`, `from_changeset`, and
    `from_comment` to let the `user`, `role`, and `notify` values be overridden.
    
    Added `for_attachment` and `for_changeset` methods to shortcut queries for
    those resource types.
    
    Added `attachment_deleted`, `attachment_reparented`, and `changeset_modified`
    event handlers.
Commits on Aug 14, 2014
  1. Added `from_attachment()` method

    schwuk committed Aug 14, 2014
    Use Attachment objects instead of manually querying the database. (We
    still need the initial manual query as there's no way to get all
    attachments.)
  2. Add model for Subscription

    schwuk committed Aug 14, 2014
  3. Added trac-admin command to seed subscriptions

    schwuk committed Aug 14, 2014
    Circular dependencies prevented the database upgrade from _nicely_
    handling the creation of subscriptions for existing resources, so all
    logic and code has been moved to a new `subscription` module. Various
    routines for creating subscriptions have been extracted into standalone
    methods, and the code refactored to use objects instead of direct
    database queries.
  4. Populate subscriptions for existing comments

    schwuk committed Aug 11, 2014
    Create subscriptions for attachments and revisions using helper
    
    Added `notify` column to flag subscriptions as active (always) or inactive (never)
    
    Added id column to subscription table
    
    Changed column `usertype` to `role`
Commits on Aug 9, 2014
  1. Schema for subscriptions

    schwuk committed Aug 8, 2014
    Create table for subscriptions.
    
    Populate table with subscriptions for attachments and revisions.
    
    Subscriptions will support multiple repositories and Git, even though
    code comments themselves don't currently (#13 and #14).
Commits on Aug 7, 2014
  1. Added todo list.

    schwuk committed Aug 7, 2014
  2. Merge pull request #42 from schwuk/notifications

    nb committed Aug 7, 2014
    Send notifications when comments are created
    
    For now send them only to other participants of the thread, but this builds some infrastructure for sending them to more users.