Skip to content
Snippets Groups Projects
  1. Sep 13, 2019
  2. Jul 25, 2019
  3. Jul 12, 2019
  4. Dec 19, 2018
  5. Nov 07, 2018
    • Stan Hu's avatar
      Prevent attr_encrypted models from being overriden · 8fd2c8b1
      Stan Hu authored
      Fix failing spec in spec/controllers/admin/hooks_controller_spec.rb
      
      attr_encrypted expects models to have their attribute methods defined,
      or it will override them with standard Ruby accessors. Migration specs
      that rolled back the state of the database after columns were migrated
      to encrypted values were interfering with these definitions. To ensure
      that the SystemHook specs pass, we need to call
      `SystemHook.define_attribute_methods` to ensure that attr_encrypted sees
      the right methods that reflect the latest state of the database.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/8234
      8fd2c8b1
  6. Sep 24, 2018
  7. Jun 14, 2018
  8. May 08, 2018
  9. Apr 23, 2018
  10. Mar 29, 2018
  11. Feb 12, 2018
  12. Feb 08, 2018
  13. Feb 07, 2018
  14. Sep 11, 2017
  15. Aug 28, 2017
  16. Aug 17, 2017
  17. Aug 16, 2017
  18. Aug 07, 2017
    • Lin Jen-Shin's avatar
      Reset only migration models · 4d7c072d
      Lin Jen-Shin authored
      So that we could make sure migration tests could run even if
      geo is not setup in EE.
      
      This is because we have a model like this:
      
      ``` ruby
      class Geo::BaseRegistry < ActiveRecord::Base
        def self.connection
          raise 'Geo secondary database is not configured' unless Gitlab::Geo.geo_database_configured?
      
          super
        end
      end
      ```
      4d7c072d
  19. Jun 05, 2017
  20. May 26, 2017
Loading