1. 28 4月, 2017 1 次提交
  2. 27 4月, 2017 2 次提交
  3. 26 4月, 2017 1 次提交
  4. 24 4月, 2017 2 次提交
    • T
      Properly expire cache for **all** MRs of a pipeline · ccb9beee
      Toon Claes 提交于
      Turn ExpirePipelineCacheService into Worker so it can fetch all the
      merge requests for which the pipeline runs or did run against.
      ccb9beee
    • T
      Move records to the ghost user in a transaction. · 133f00be
      Timothy Andrew 提交于
      - While deleting a user, some of the user's associated records are moved to the
        ghost user so they aren't deleted. The user is blocked before these records
        are moved, to prevent the user from creating new records while the migration
        is happening, and so preventing a data race.
      
      - Previously, if the migration failed, the user would _remain_ blocked, which is
        not the expected behavior. On the other hand, we can't just stick the block +
        migration into a transaction, because we want the block to be committed before
        the migration starts (for the data race reason mentioned above).
      
      - One solution (implemented in this commit) is to block the user in a parent
        transaction, migrate the associated records in a nested sub-transaction, and
        then unblock the user in the parent transaction if the sub-transaction fails.
      133f00be
  5. 20 4月, 2017 2 次提交
  6. 19 4月, 2017 3 次提交
  7. 18 4月, 2017 3 次提交
  8. 16 4月, 2017 1 次提交
  9. 14 4月, 2017 10 次提交
  10. 13 4月, 2017 1 次提交
  11. 10 4月, 2017 1 次提交
  12. 07 4月, 2017 7 次提交
  13. 06 4月, 2017 6 次提交
    • S
      Fixed strcture for db change · 3d1bc4a4
      Shinya Maeda 提交于
      3d1bc4a4
    • S
      basic components · 37d6d1e4
      Shinya Maeda 提交于
      37d6d1e4
    • T
      Move a user's award emoji to the ghost user · 3e1a1242
      Timothy Andrew 提交于
      ... when the user is destroyed.
      
      1. Normally, for a given awardable and award emoji name, a user is only allowed
         to create a single award emoji.
      
      2. This validation needs to be removed for ghost users, since:
      
         - User A and User B have created award emoji - with the same name and against
           the same awardable
         - User A is deleted. Their award emoji is moved to the ghost user
         - User B is deleted. Their award emoji needs to be moved to the ghost user.
           However, this breaks the uniqueness validation, since the ghost user is
           only allowed to have one award emoji of a given name for a given awardable
      3e1a1242
    • T
      Move a user's abuse reports to the ghost user · 68298754
      Timothy Andrew 提交于
      ... when the user is destroyed.
      
      To clarify, this regards abuse reports that the to-be-deleted user has _reported_.
      68298754
    • T
      Move a user's notes to the ghost user · 97cbf7c2
      Timothy Andrew 提交于
      ... when the user is destroyed.
      97cbf7c2
    • T
      Move a user's merge requests to the ghost user. · 72580f07
      Timothy Andrew 提交于
      1. When the user is deleted.
      
      2. Refactor out code relating to "migrating records to the ghost user" into a
         `MigrateToGhostUser` concern, which is tested using a shared example.
      72580f07