Skip to content

[7.x] [Uptime] Update snapshot counts (#48035)#52137

Merged
justinkambic merged 1 commit intoelastic:7.xfrom
justinkambic:backport/7.x/pr-48035
Dec 4, 2019
Merged

[7.x] [Uptime] Update snapshot counts (#48035)#52137
justinkambic merged 1 commit intoelastic:7.xfrom
justinkambic:backport/7.x/pr-48035

Conversation

@justinkambic
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* Add snapshot count function that uses monitor iterator class.

* Add js-doc comment.

* Add snapshot count route.

* Start adding snapshot state management.

* Commit changes that were missed in previous.

* Finish implementing snapshot count redux code.

* Add basePath setter and type to ui state.

* Dispatch basePath set action on app render.

* Replace GQL-powered Snapshot export with Redux/Rest-powered version.

* Extract presentational element to dedicated component.

* Update broken test.

* Rename action.

* Add comments to clarify adapter function.

* Remove obsolete code.

* Add ui state field to store for tracking when app refreshes.

* Make snapshot component refresh on global refresh via redux state.

* Remove obsolete @ts-igore.

* Alphabetize imports.

* Port functional test fixture to REST test.

* Delete snapshot GQL query.

* Update API test fixtures to match new snapshot count REST response shape.

* Update Snapshot count type check to be stricter.

* Add tests for Snapshot API call.

* Rename new test file from tsx to ts, it has no JSX.

* Add tests for snapshot reducer.

* Add tests for UI reducer.

* Add tests for selectors.

* Delete unused test file.

* Move snapshot getter and map/reduce logic to dedicated helper function.

* Add test for snapshot helper function.

* Export type from module.

* Rename outdated snapshot file.

* Add action creator for fetch success.

* Reorganize ui actions file.

* Update snapshot effect to put error when input params are not valid.

* Simplify typing code for a function.

* Simplify snapshot count reduction.

* Rename a function.

* Rewrite a function to increase code clarity.

* Remove duplicated interface.

* Add very high ceiling for snapshot count iteration.

* Update broken test assertion.
@justinkambic justinkambic added the backport This PR is a backport of another PR label Dec 3, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@justinkambic justinkambic added Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.6.0 labels Dec 4, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/uptime (Team:uptime)

@justinkambic justinkambic merged commit 97d2fa6 into elastic:7.x Dec 4, 2019
@justinkambic justinkambic deleted the backport/7.x/pr-48035 branch December 4, 2019 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants