BigW Consortium Gitlab

  1. 20 Oct, 2016 2 commits
  2. 12 Aug, 2016 3 commits
    • Simplify the slash commands DSL to store action blocks instead of creating methods · f393f2dd
      Rémy Coutable authored
      Other improvements:
      - Ensure slash commands autocomplete doesn't break when noteable_type is not given
      - Slash commands: improve autocomplete behavior and /due command
      - We don't display slash commands for note edit forms.
      - Add tests for reply by email with slash commands
      - Be sure to execute slash commands after the note creation in Notes::CreateService
      Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
    • Make slash commands contextual · 65349c22
      Rémy Coutable authored
      - Return only slash commands that make sense for the current noteable
      - Allow slash commands decription to be dynamic
      
      Other improvements:
      
      - Add permission checks in slash commands definition
      - Use IssuesFinder and MergeRequestsFinder
      - Use next if instead of a unless block, and use splat operator instead of flatten
      Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
    • Support slash commands in noteable description and notes · 0eea8c88
      Rémy Coutable authored
      Some important things to note:
      
      - commands are removed from noteable.description / note.note
      - commands are translated to params so that they are treated as normal
        params in noteable Creation services
      - the logic is not in the models but in the Creation services, which is
        the right place for advanced logic that has nothing to do with what
        models should be responsible of!
      - UI/JS needs to be updated to handle notes which consist of commands
        only
      - the `/merge` command is not handled yet
      
      Other improvements:
      
      - Don't process commands in commit notes and display a flash is note is only commands
      - Add autocomplete for slash commands
      - Add description and params to slash command DSL methods
      - Ensure replying by email with a commands-only note works
      - Use :subscription_event instead of calling noteable.subscribe
      - Support :todo_event in IssuableBaseService
      Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
  3. 25 Mar, 2016 2 commits
    • Improve and finish the fallback to the In-Reply-To and References header for the… · 9f218fc1
      Rémy Coutable authored
      Improve and finish the fallback to the In-Reply-To and References header for the reply-by-email feature
      
      A few things to note:
      - The IncomingEmail feature is now enabled even without a
        correctly-formatted sub-address
      - Message-ID for new thread mail are kept the same so that subsequent
        notifications to this thread are grouped in the thread by the email
        service that receives the notification
        (i.e. In-Reply-To of the answer == Message-ID of the first thread message)
      - To maximize our chance to be able to retrieve the reply key, we look
        for it in the In-Reply-To header and the References header
      - The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]"
      - Improve docs thanks to Axil
  4. 20 Aug, 2015 1 commit