1. 23 6月, 2019 1 次提交
    • S
      Enable Gitaly ref name caching for discussions.json · 30167193
      Stan Hu 提交于
      This eliminates many potential duplicate FindCommit RPCs for the same
      ref, which often occurs in the RelativeLinkFilter#current_commit call.
      On the GitLab 12.0 release post, for example, this would save close to
      400 RPC calls.
      30167193
  2. 21 6月, 2019 11 次提交
  3. 20 6月, 2019 10 次提交
    • S
      Add embedding flag and filter to CPU/Mem · f49dd76a
      Sarah Yasonik 提交于
      This commits adds support for metrics dashboards
      for embedding. If the flag 'embedded' is provided
      to the environments/id/metrics_dashboard endpoint,
      the response will be suitable for embedding in
      issues or other content.
      
      This is a precursor for support for embedding
      metrics in GFM.
      f49dd76a
    • P
      Fixed failing GraphQL file import · cf231aa3
      Phil Hughes 提交于
      cf231aa3
    • B
      Render GFM html in GraphQL · 40680858
      Bob Van Landuyt 提交于
      This adds a `markdown_field` to our types.
      
      Using this helper will render a model's markdown field using the
      existing `MarkupHelper` with the context of the GraphQL query
      available to the helper.
      
      Having the context available to the helper is needed for redacting
      links to resources that the current user is not allowed to see.
      
      Because rendering the HTML can cause queries, the complexity of a
      these fields is raised by 5 above the default.
      
      The markdown field helper can be used as follows:
      
            ```
            markdown_field :note_html, null: false
            ```
      
      This would generate a field that will render the markdown field `note`
      of the model. This could be overridden by adding the `method:`
      argument. Passing a symbol for the method name:
      
            ```
            markdown_field :body_html, null: false, method: :note
            ```
      
      It will have this description by default:
      
      > The GitLab Flavored Markdown rendering of `note`
      
      This could be overridden by passing a `description:` argument.
      
      The type of a `markdown_field` is always `GraphQL::STRING_TYPE`.
      40680858
    • F
      Paginate license management and add license search · 91cf0cb2
      Fernando 提交于
      First pass at license pagination
      
      * Paginate license management client side
      * Refactor license list into seperate component
      
      Add string filtering to license names
      
      * Add search input to query on license name
      
      Add add license button
      
      * Refactor add license button to be a slot
      
      Clean up styles and button state logic
      
      * Clean up alignment
      * Disable button when dorpdown is open
      
      Remove client side alphabetical sorting
      
      * Let the databse return order by date
      
      Refactor list to use row slot
      
      Further abstract pagination list compnent
      
      Finish refactor of paginated list
      
      * Refactor component into generic paginated list component
      * Add additional style tweaks + responsive classes
      
      Run prettier
      
      Update license_management_spec
      
      Run Prettier
      
      Add unit tests for paginated list component
      
      * Refactor template to be valid html (li in ul)
      * Add jest unit tests
      
      Add additional unit tests
      
      * Add unit tests around pagination and search states
      
      Add unit tests for filter props
      
      Pretty print, lint, and add changelog
      
      Update po files
      
      Regernate pot file
      
      Backport EE changes
      
      * Update paginated list component
      * Update specs and snapshot
      
      Add POT file
      
      Update default copy for pagianted list
      
      * update copy for empty and empty search result states
      
      Update pot file
      
      Backport changes from EE merge request
      
      * Paginaed list component and specs
      
      Backport EE changes
      
      Update paginated list snapshot
      
      Update license management docs and images
      
      Backport paginated-list component from EE
      
      Link to gitlab-ui artifacts job
      
      Match gitlab ui build to EE
      
      Update pot file
      
      Backport Paginated list changes
      
      Set gitlab-ui to temp artifact
      
      Add changelog
      91cf0cb2
    • S
      Remove import columns from projects table · 6c0bc9ab
      Stan Hu 提交于
      In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21497, we
      migrated all project import data into a separate table,
      `project_import_data`.  In addition, we also added:
      
      ```
      ignore_column :import_status, :import_jid, :import_error
      ```
      
      In https://gitlab.com/gitlab-com/gl-infra/production/issues/908, we
      observed some of these `import_error` columns consumed megabytes of
      error backtraces and caused slow loading of projects whenever a `SELECT
      * from projects` query loaded the row into memory.
      
      Since we have long migrated away from these columns, we can now drop
      these columns entirely.
      6c0bc9ab
    • M
      Updating CE repo to include new EE users API changes · 8cf85b4b
      Michael Leopard 提交于
      Updated users API documentation
      Moved API level changes to the service level
      8cf85b4b
    • L
      CE backport for changes in EE MR 14017 · dcf811ba
      Luke Duncalfe 提交于
      This backports to CE changes to allow the EE model
      DesignManagement::Repository to override the #attributes_at method to
      provide its own git attributes.
      
      The #attributes_at method was freely available, as it's never called by
      anything in the app. It looks like the code that called it got
      refactored out of existence in ca66a04f. It was still being called in a
      spec
      https://gitlab.com/gitlab-org/gitlab-ce/blob/85b29c1c2fa3b94d7371cf454c485457a0756cb1/spec/services/files/create_service_spec.rb#L40
      which I've left because with the change in Lfs::FileTransformer in fact
      is now again the perfect test!
      
      See EE MR
      https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14017
      
      And these comment threads
      https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178002089
      https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178049984
      dcf811ba
    • Y
      Fix double border in profile page · a2c373f9
      Yoginth 提交于
      a2c373f9
    • B
      Update application settings using correct action · 6b4f93c0
      Brett Walker 提交于
      Updating multiple application settings panels through
      a single action causes the incorrect action to be shown
      when there are errors.  Instead, make each panel action
      handle both updating and display.
      6b4f93c0
    • K
      Remove unnecessary margin in markdown nested lists · e53c001f
      Kuba Kopeć 提交于
      e53c001f
  4. 19 6月, 2019 14 次提交
  5. 18 6月, 2019 4 次提交
    • S
      Revert concurrent pipeline schedule creation · 36b30cf1
      Shinya Maeda 提交于
      This commit reverts the previously introduced concurrent pipeline
      schedule creation which was a viable solution for mitigating
      inconsistent pipeline schedule by Sidekiq Memory Killer.
      36b30cf1
    • N
      Look for new branches more carefully · b2c73fde
      Nick Thomas 提交于
      In certain cases, GitLab can miss a PostReceive invocation the first
      time a branch is pushed. When this happens, the "branch created" hooks
      are not run, which means various features don't work until the branch
      is deleted and pushed again.
      
      This MR changes the `Git::BranchPushService` so it checks the cache of
      existing branches in addition to the `oldrev` reported for the branch.
      If the branch name isn't in the cache, chances are we haven't run the
      service yet (it's what refreshes the cache), so we can go ahead and
      run it, even through `oldrev` is set.
      
      If the cache has been cleared by some other means in the meantime, then
      we'll still fail to run the hooks when we should. Fixing that in the
      general case is a larger problem, and we'd need to devote significant
      engineering effort to it.
      
      There's a chance that we'll run the relevant hooks *multiple times*
      with this change, if there's a race between the branch being created,
      and the `PostReceive` worker being run multiple times, but this can
      already happen, since Sidekiq is "at-least-once" execution of jobs. So,
      this should be safe.
      b2c73fde
    • H
      894bd843
    • R
      Search issuables by iids · b33fb07e
      Riccardo Padovani 提交于
      b33fb07e