BigW Consortium Gitlab

  1. 07 Sep, 2017 1 commit
  2. 03 Aug, 2017 1 commit
    • Add workaround for UPDATE with subquery when using MySQL · a488fc0a
      Toon Claes authored
      When trying to run an UPDATE, this query is ran:
      
      ```sql
      UPDATE `todos`
      INNER JOIN `projects` ON `projects`.`id` = `todos`.`project_id`
      SET `todos`.`state` = 'done'
      WHERE `todos`.`user_id` = 4
        AND (`todos`.`state` IN ('pending'))
        AND (EXISTS
               (SELECT 1
                FROM `project_authorizations`
                WHERE `project_authorizations`.`user_id` = 4
                  AND (project_authorizations.project_id = projects.id))
             OR projects.visibility_level IN (10,
                                              20))
        AND `projects`.`id` IN
          (SELECT `todos`.`project_id`
           FROM `todos`
           WHERE `todos`.`user_id` = 4
             AND (`todos`.`state` IN ('pending')))
        AND (`todos`.`state` != 'done')
      ```
      
      But MySQL does not like the subquery used to filter on
      `projects.id IN (SELECT ...`
      
      Because the subquery queries from the same table:
      
      > Error: You can’t specify target table ‘todos’ for update in FROM clause
      
      So as workaround, wrap it in another subquery, where the original
      subquery is aliased using the `AS` statement.
      
      Mostly inspired by https://stackoverflow.com/a/43610081/89376
  3. 28 Jun, 2017 2 commits
  4. 02 Jun, 2017 1 commit
  5. 06 Apr, 2017 1 commit
    • ProjectsFinder should handle more options · b996a82f
      Jacopo authored
      Extended ProjectFinder in order to handle the following options:
       - current_user - which user use
       - project_ids_relation: int[] - project ids to use
       - params:
         -  trending: boolean
         -  non_public: boolean
         -  starred: boolean
         -  sort: string
         -  visibility_level: int
         -  tags: string[]
         -  personal: boolean
         -  search: string
         -  non_archived: boolean
      
      GroupProjectsFinder now inherits from ProjectsFinder.
      Changed the code in order to use the new available options.
  6. 21 Mar, 2017 1 commit
  7. 20 Mar, 2017 1 commit
  8. 23 Feb, 2017 2 commits
  9. 30 Aug, 2016 1 commit
  10. 19 Aug, 2016 1 commit
  11. 15 Aug, 2016 2 commits
  12. 12 Aug, 2016 1 commit
    • 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>
  13. 12 Jul, 2016 2 commits
  14. 01 Jul, 2016 1 commit
  15. 17 Jun, 2016 1 commit
  16. 16 Jun, 2016 2 commits
  17. 14 Jun, 2016 1 commit
  18. 03 Jun, 2016 2 commits
  19. 02 Jun, 2016 5 commits
  20. 17 May, 2016 1 commit
    • Create a todo on failing MR build · 6b834f2c
      Sean McGivern authored
      When a build fails for a commit, create a todo for the author of the
      merge request that commit is the HEAD of. If the commit isn't the HEAD
      commit of any MR, don't do anything. If there already is a todo for that
      user and MR, don't do anything.
      
      Current limitations:
      - This isn't configurable by project.
      - The author of a merge request might not be the person who pushed the
        breaking commit.
  21. 20 Feb, 2016 2 commits