1. 30 7月, 2019 6 次提交
  2. 29 7月, 2019 3 次提交
  3. 26 7月, 2019 4 次提交
    • K
      Extract SanitizeNodeLink and apply to WikiLinkFilter · acc694ea
      Kerri Miller 提交于
      The SanitizationFilter was running before the WikiFilter. Since
      WikiFilter can modify links, we could see links that _should_ be stopped
      by SanatizationFilter being rendered on the page. I (kerrizor) had
      previously addressed the bug in: https://gitlab.com/gitlab-org/gitlab-ee/commit/7bc971915bbeadb950bb0e1f13510bf3038229a4
      However, an additional exploit was discovered after that was merged.
      Working through the issue, we couldn't simply shuffle the order of
      filters, due to some implicit assumptions about the order of filters, so
      instead we've extracted the logic that sanitizes a Nokogiri-generated
      Node object, and applied it to the WikiLinkFilter as well.
      
      On moving filters around:
      Once we start moving around filters, we get cascading failures; fix one,
      another one crops up. Many of the existing filters in the WikiPipeline
      chain seem to assume that other filters have already done their work,
      and thus operate on a "transform anything that's left" basis;
      WikiFilter, for instance, assumes any link it finds in the markdown
      should be prepended with the wiki_base_path.. but if it does that, it
      also turns `href="@user"` into `href="/path/to/wiki/@user"`, which the
      UserReferenceFilter doesn't see as a user reference it needs to
      transform into a user profile link. This is true for all the reference
      filters in the WikiPipeline.
      acc694ea
    • D
      Fix error rendering submodules in MR diffs when there is no .gitmodules · cfef1e8e
      Douwe Maan 提交于
      Without this change, we get a NoMethodError on nil
      cfef1e8e
    • T
      Fix cannot modify frozen string · d9db8d85
      Thong Kuah 提交于
      Note that Performance/UnfreezeString recommends unary plus over
      "".dup, but unary plus has lower precedence so we have to use
      parenthesis
      d9db8d85
    • T
      f540ffce
  4. 25 7月, 2019 7 次提交
  5. 24 7月, 2019 4 次提交
  6. 23 7月, 2019 7 次提交
    • N
      Remove dead MySQL code · 4aa76ddd
      Nick Thomas 提交于
      None of this code can be reached any more, so it can all be removed
      4aa76ddd
    • S
      Validate the existence of archived traces before removing live trace · c2e0e689
      Shinya Maeda 提交于
      Often live traces are removed even though the archived trace
      doesn't exist. This commit checkes the existence strictly.
      c2e0e689
    • M
      Add code review remarks · 5ce4236b
      Małgorzata Ksionek 提交于
      Add cr remarks
      
      Improve specs according to the review
      
      Fix schema
      
      Add cr remarks
      
      Fix naming
      
      Add cr remarks
      5ce4236b
    • M
      Add basic project extraction · 1b102f5d
      Małgorzata Ksionek 提交于
      To allow project filtering
      
      Prepare summary for accepting multiple groups
      
      Modify deploys group summary class
      
      Add filtering by project name in issues summary
      
      Fix rubocop offences
      
      Add changelog entry
      
      Change name to id in project filtering
      
      Fix rebase problem
      
      Add project extraction
      1b102f5d
    • K
      Bring backward compatibility for request profiles · 3a4cb6d6
      Kamil Trzciński 提交于
      It seems that we missed the backward compatibility support
      for profiles in the existing folder.
      
      This commit also fixes some specs to be idempotent
      and work in a temporary directory which not always
      seems to be the case.
      
      This commit also brings the profile_spec.rb which seems
      to be missing.
      3a4cb6d6
    • A
      Refactor usage data counters specs · 996cf4b6
      Alex Kalderimis 提交于
      This makes these tests available for other implementations
      996cf4b6
    • S
      Use persistent Redis cluster for Workhorse pub/sub notifications · 583c12ac
      Stan Hu 提交于
      Previously, in Omnibus, Workhorse expected to listen via the Redis
      shared state cluster for the `workhorse:notifications` publish/subscribe
      channel, but the Rails code was using the Sidekiq queue cluster for
      this. To fix this inconsistency, we make the Rails code use the
      persistent cluster, since we don't want Workhorse to be looking at
      anything Sidekiq-related.
      583c12ac
  7. 22 7月, 2019 4 次提交
  8. 21 7月, 2019 1 次提交
    • A
      Count wiki page creation · 73207586
      Alex Kalderimis 提交于
      This adds a counter to count page creation, which is reflected in the
      usage-data we collect.
      
      The number created is stored in Redis, avoiding DB access.
      73207586
  9. 20 7月, 2019 3 次提交
  10. 19 7月, 2019 1 次提交
    • B
      Adjust redis cache metrics · 442f5991
      Ben Kochie 提交于
      * Remove `controller` and `action` labels from duration histogram.
      * Create a new simple counter for `controller` and `action`.
      * Adjust histogram buckets to observe smaller response times.
      442f5991