Skip to content
Snippets Groups Projects
  1. Mar 19, 2020
  2. Feb 27, 2020
  3. Jan 29, 2020
  4. Jan 14, 2020
  5. Jan 07, 2020
  6. Nov 18, 2019
  7. Oct 26, 2019
  8. Oct 22, 2019
  9. Sep 17, 2019
  10. Jun 05, 2019
  11. Apr 01, 2019
    • João Cunha's avatar
      Dry up and remove responsibilities · 5aade0b0
      João Cunha authored and Grzegorz Bizon's avatar Grzegorz Bizon committed
      - Dry create_service.rb and update_service.rb duplicated code
      - Remove known list of applications responsibility from services
      - Refactor the complex builders->builder call from base_service.rb
      5aade0b0
  12. Mar 05, 2019
    • João Cunha's avatar
      Creates Clusterss::ApplciationsController update endpoint · f8234d9a
      João Cunha authored and Jacques Erasmus's avatar Jacques Erasmus committed
      - Creates new route
      - Creates new controller action
      - Creates call stack:
        Clusterss::ApplciationsController calls -->
        Clusters::Applications::UpdateService calls -->
        Clusters::Applications::ScheduleUpdateService calls -->
        ClusterUpdateAppWorker calls -->
        Clusters::Applications::PatchService -->
        ClusterWaitForAppInstallationWorker
      
      DRY req params
      
      Adds gcp_cluster:cluster_update_app queue
      
      Schedule_update_service is uneeded
      
      Extract common logic to a parent class (UpdateService will need it)
      
      Introduce new UpdateService
      
      Fix rescue class namespace
      
      Fix RuboCop offenses
      
      Adds BaseService for create and update services
      
      Remove request_handler code duplication
      
      Fixes update command
      
      Move update_command to ApplicationCore so all apps can use it
      
      Adds tests for Knative update_command
      
      Adds specs for PatchService
      
      Raise error if update receives an unistalled app
      
      Adds update_service spec
      
      Fix RuboCop offense
      
      Use subject in favor of go
      
      Adds update endpoint specs for project namespace
      
      Adds update endpoint specs for group namespace
      f8234d9a
  13. Feb 26, 2019
    • João Cunha's avatar
      Get rid of ScheduleInstallationService · 4c974f50
      João Cunha authored
      - deletes schedule_installation_service.rb
      - moves schedule_installation_service.rb logic to create_service.rb
      - moves specs as well
      
      Removes code duplication
      
      Remove unecessary spec block
      
      Abide review suggestions
      
      Test installable applications which are not associated to a cluster
      
      Fix a typo
      
      Removes duplciated expectation
      
      Reuse variable instead of redefining
      
      Remove method in favor of a local scoped lambda
      
      Improve 'failing service' shared examples
      
      Test the increase of status count
      
      Remove duplicated test
      
      Enable fronzen literal
      4c974f50
  14. Dec 07, 2018
  15. Nov 22, 2018
  16. Nov 08, 2018
  17. Nov 03, 2018
  18. Oct 30, 2018
  19. Oct 25, 2018
  20. Oct 14, 2018
    • Thong Kuah's avatar
      Remove un-used inheritance from service · 504cbb27
      Thong Kuah authored
      Remove the inheritance from ::BaseService which is causing us to inherit
      the initializer that has project as the first arg, as we will not have
      access to project with forthcoming group clusters.
      
      Also call install service from create service - 1 less thing to re-use
      
      Extract TestRequest code into a spec helper. Given that we need
      different behaviour for Rails 5.0 (and again in Rails 5.1!), it's handy
      to have that branching behaviour in one place
      504cbb27
    • Thong Kuah's avatar
      Move non-controller code into dedicated service · cc1ccbf8
      Thong Kuah authored
      This should help with code re-use when we create applications for group
      level cluster next.
      
      Change `find_or_initialize_by` to explicitly find or build the right
      association based on the application name. The benefit here is that we
      use the associations on @cluster rather than querying from the other
      side of the association.
      cc1ccbf8
Loading