1. 27 5月, 2021 4 次提交
  2. 26 5月, 2021 1 次提交
  3. 25 5月, 2021 2 次提交
  4. 21 5月, 2021 3 次提交
  5. 20 5月, 2021 4 次提交
    • T
      refactor: introduce MR cache · 1eab197e
      Tomas Vik 提交于
      Added two new methods to the WrappedRepository: `reloadMr()` and
      `getMr()`.
      
      - `reloadMr()` will fetch additional information for the MR (for now
        it's the diff). It will also store this fetched information into a
        cache.
      - `getMr()` expects that `reloadMr()` has been called in the past. It
        retrieves the MR information without making api calls.
      1eab197e
    • T
      refactor: improve testability of WrappedRepository · e53e8981
      Tomas Vik 提交于
      This commit changes the way WrappedRepository exposes the
      GitLabNewService. We used getter which was very hard to mock in tests.
      Instead, we now use regular function (getGitLabService()) which is
      easily replaced in tests.
      
      Additionally, this commit creates a helper function for creating
      WrappedRepository, because it is going to be used in many tests in the
      future.
      e53e8981
    • T
      refactor: expose repository in the TreeView items · 8afdf918
      Tomas Vik 提交于
      This commit replaces the GitLabRepository(GitLabWorkspace) interface
      with the Wrapped repository. The original objects `{ label, uri, error}`
      were constructed by the issuable.ts.
      
      We now use the WrappedRepository and the error state is signaled by a
      new `containsGitLabProject` boolean flag. I.e. if the wrapped repository
      doesn't contain GitLab project, there has been error during fetching it.
      
      Also having access to the wrapped repository from within mr_item_model
      is going to be important in the next commit because it allows us to
      interact with the MR cache.
      8afdf918
    • T
      refactor: don't export getInstanceUrlFromRemotes · 6767d39f
      Tomas Vik 提交于
      This method isn't used outside of the wrapped_repository module.
      6767d39f
  6. 19 5月, 2021 10 次提交
  7. 18 5月, 2021 3 次提交
  8. 14 5月, 2021 2 次提交
  9. 12 5月, 2021 5 次提交
  10. 11 5月, 2021 2 次提交
  11. 08 5月, 2021 1 次提交
  12. 07 5月, 2021 3 次提交