Skip to content
Snippets Groups Projects

CE upstream

Merged username-removed-283999 requested to merge ce-to-ee into master

Unmerged paths: (use "git add/rm ..." as appropriate to mark resolution)

both modified:   Gemfile.lock
both modified:   app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6
both modified:   app/assets/javascripts/merge_request_widget.js.es6
both modified:   app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
both modified:   app/assets/javascripts/protected_branches/protected_branch_edit.js.es6
both modified:   app/assets/stylesheets/framework/variables.scss
both added:      app/controllers/concerns/oauth_applications.rb
both modified:   app/controllers/concerns/service_params.rb
both modified:   app/helpers/projects_helper.rb
both modified:   app/helpers/sorting_helper.rb
both modified:   app/models/project.rb
both modified:   app/policies/group_member_policy.rb
both modified:   app/policies/group_policy.rb
both modified:   app/views/projects/merge_requests/widget/_open.html.haml
both modified:   app/views/projects/merge_requests/widget/open/_accept.html.haml
both added:      changelogs/unreleased/25482-fix-api-sudo.yml
both modified:   config/application.rb
both modified:   config/gitlab.yml.example
both modified:   db/schema.rb
both modified:   doc/README.md
deleted by them: features/admin/settings.feature
both modified:   features/steps/shared/paths.rb
both modified:   lib/api/helpers.rb
both modified:   public/500.html
both modified:   public/502.html
both modified:   spec/features/admin/admin_settings_spec.rb
both modified:   spec/javascripts/awards_handler_spec.js
both modified:   spec/lib/gitlab/auth_spec.rb
both modified:   spec/models/project_services/chat_message/pipeline_message_spec.rb
both modified:   spec/requests/api/helpers_spec.rb

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
559 required: true,
560 name: :project_url,
561 type: String,
562 desc: 'Jenkins project URL like http://jenkins.example.com/job/my-project/',
563 },
564 {
565 required: false,
566 name: :pass_unstable,
567 type: Boolean,
568 desc: 'Multi-project setup enabled?',
569 },
570 {
571 required: false,
572 name: :multiproject_enabled,
573 type: Boolean,
574 desc: 'hould unstable builds be treated as passing?'
  • Stan Hu added 1 commit

    added 1 commit

    Compare with previous version

  • mentioned in merge request !977 (merged)

  • Stan Hu mentioned in commit 314c2d51

    mentioned in commit 314c2d51

  • Stan Hu added 2 commits

    added 2 commits

    • 075fc587 - Check if selected object is valid before passing to calback
    • 314c2d51 - Merge branch 'gl-dropdown-fix' into 'ce-to-ee'

    Compare with previous version

  • Maintainer

    @rdavila It looks to me that /spend is not working because the backend is not actually saving the logs to the database. I'm not sure how this worked before? This seems to have fixed things:

    diff --git a/app/models/concerns/time_trackable.rb b/app/models/concerns/time_trackable.rb
    index 6fa2af4..1e80276 100644
    --- a/app/models/concerns/time_trackable.rb
    +++ b/app/models/concerns/time_trackable.rb
    @@ -46,13 +46,15 @@ module TimeTrackable
       private
    
       def reset_spent_time
    -    timelogs.new(time_spent: total_time_spent * -1, user: @time_spent_user)
    +    log = timelogs.new(time_spent: total_time_spent * -1, user: @time_spent_user)
    +    log.save
       end
    
       def add_or_subtract_spent_time
         # Exit if time to subtract exceeds the total time spent.
         return if time_spent < 0 && (time_spent.abs > total_time_spent)
    
    -    timelogs.new(time_spent: time_spent, user: @time_spent_user)
    +    log = timelogs.new(time_spent: time_spent, user: @time_spent_user)
    +    log.save
       end
     end
    ``
  • @stan at some point in the service the issuable is saved and it saves the children that were built too.

    El El lun, 19 de dic. de 2016 a las 01:23, Stan Hu gitlab@mg.gitlab.com escribió:

  • Stan Hu added 2 commits

    added 2 commits

    • 8a3e5d96 - Fix broken specs related to Jenkins service.
    • 4f5ffd84 - Merge branch 'fix-services-spec' into 'ce-to-ee'

    Compare with previous version

  • @stanhu @brycepj and I tested it together, it was working nice and beautiful. I tried a few edge cases too but everything was just fine. It's really weird to see that it didn't worked and needed some changes. Do we have some better insight now?

  • @dbalexandre I'm not sure if this is correct fix of models/project_spec.rb e37bf8d7 Take a look at my fix https://gitlab.com/gitlab-org/gitlab-ee/commit/012e8f56d2bdee01f89d85acef240bdaa8facb53 in my CE->EE merge which you have closed

    Why haven't you just continued working on my MR? Lots of stuff have been fixed there.....

    Edited by Valery Sizov
  • added 1 commit

    • 2d35098c - Fix spec/models/project_spec.rb

    Compare with previous version

  • @stanhu @rdavila @alfredo1 @vsizov Thanks a lot!

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • 25b842d1 - Create records in database when tracking spent time

    Compare with previous version

  • Failing avatar tests is because of move_to_store use. I had to fix several CE tests for this too; will have a look.

  • OK looks like Stan already fixed it. Thanks @stanhu !

  • added 1 commit

    • 208f1f27 - Revert "Create records in database when tracking spent time"

    Compare with previous version

  • added 1 commit

    • 2bfde899 - Quick fix issuable update when only time spent is updated

    Compare with previous version

  • @dbalexandre Pushed 2bfde899 (see the commit message for details)! :fingers_crossed:

  • Maintainer

    @jacobvosmaer-gitlab Can't take the credit here--@rdavila fixed it; I just merged it. :)

  • username-removed-283999 enabled an automatic merge when the build for 2bfde899 succeeds

    enabled an automatic merge when the build for 2bfde899 succeeds

  • mentioned in commit 4e86cbda

  • mentioned in issue #1432

  • By the way, in preparing 8.14.8 I spent a couple of hours* fixing the problem that 2bfde899 fixed (cherry-picking that fixed it). We should document better such fixes.

    • That might be an exaggeration :)
    Edited by username-removed-367626
  • Please register or sign in to reply
    Loading