Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move LoadingCountService into a subset of HttpService #31800

Merged
merged 3 commits into from
Feb 25, 2019

Conversation

rudolf
Copy link
Contributor

@rudolf rudolf commented Feb 22, 2019

Summary

Instead of having a service dedicated to this (LoadingCountService), keeping track of loading counts is now part of the public HttpService.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@@ -59,16 +59,15 @@ const MockUiSettingsClient = mockClass('./ui_settings_client', UiSettingsClient,
// Load the service
import { UiSettingsService } from './ui_settings_service';

const loadingCountStartContract = {
loadingCountStartContract: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem like loadingCountStartContract: true did anything, so I removed it.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rudolf rudolf added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Feb 22, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@epixa epixa self-requested a review February 22, 2019 19:20
@epixa epixa added v8.0.0 v7.2.0 non-issue Indicates to automation that a pull request should not appear in the release notes labels Feb 22, 2019
Copy link
Contributor

@epixa epixa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think ultimately we'll want to remove the addLoaderCount public API and deal with the counter entirely internal to the HTTP service, but we can only really do that when all HTTP requests are running through this service, and we're not anywhere close to there yet.

@@ -1,38 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional nit IMHO it's crucial to keep git story clean in a big project because often we need to find when and why something was added in the codebase. so I'd use git mv here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@restrry I totally agree. I think this is a limitation in the github PR changes view. The commit (5f171bd) shows the rename, but because a subsequent commit rewrote so much of the file, the summary view makes it appear as if a new file was created.

@rudolf rudolf force-pushed the move-loadingcount-to-http-service branch from 2d4ab0a to 0fae1d8 Compare February 25, 2019 08:44
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rudolf rudolf merged commit a7c4d70 into elastic:master Feb 25, 2019
rudolf added a commit to rudolf/kibana that referenced this pull request Feb 25, 2019
* LoadingCountService is now a subset of HttpService

Will rename loading_count_service.ts in a separate commit.

* Rename files/folders from loading_count -> http

* Reorganize public HttpService tests
@rudolf rudolf deleted the move-loadingcount-to-http-service branch February 25, 2019 11:20
rudolf added a commit that referenced this pull request Feb 25, 2019
* LoadingCountService is now a subset of HttpService

Will rename loading_count_service.ts in a separate commit.

* Rename files/folders from loading_count -> http

* Reorganize public HttpService tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform non-issue Indicates to automation that a pull request should not appear in the release notes review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants