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

feat(ui): adding the ability to view just the output section #15674

Merged
merged 25 commits into from
Nov 6, 2019

Conversation

drdelambre
Copy link
Contributor

Closes #14924

Added a popup on a route, activated by a button, to help users view just the parts of the telegraf config required for migrating to V2.

Kapture 2019-10-30 at 17 31 50

Alex Boatwright added 11 commits October 30, 2019 15:14
Merge branch 'master' of github.com:influxdata/influxdb into alex_templated_snippets
Merge branch 'master' of github.com:influxdata/influxdb into alex_templated_snippets
Merge branch 'alex_templated_snippets' of github.com:influxdata/influxdb into alex_feat_new_overlay
@drdelambre drdelambre changed the base branch from alex_templated_snippets to master October 31, 2019 21:59
@@ -1,5 +1,8 @@
import {Organization} from '../../src/types'

// a generous commitment to delivering this page in a loaded state
const PAGE_LOAD_SLA = 10000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this just unbreaks the test locally for me

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, gives it more time to load

.should('have.length', 0)
.then(() => {
cy.contains('Create Configuration')
cy.getByTestID('table-row').should('have.length', 0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i just moved this test outside of the then

Alex Boatwright added 3 commits November 6, 2019 10:37
Merge branch 'master' of github.com:influxdata/influxdb into alex_feat_new_overlay
@@ -18,6 +21,7 @@ describe('Checks', () => {
cy.visit(`${orgs}/${id}${alerting}`)
})
})
cy.get('[data-testid="resource-list--body"]', {timeout: PAGE_LOAD_SLA})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wait for a test agnostic load event to signal that the tests are ready to run

@@ -76,6 +117,7 @@ describe('Collectors', () => {
})

cy.reload()
cy.get('[data-testid="resource-list--body"]', {timeout: PAGE_LOAD_SLA})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

always gotta wait for that page to be ready 😬

cy.getByTestID('bucket-sorter')
.click()
.then(() => {
bucketz.sort()
// NOTE: this then is just here to let me scope this variable (alex)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

or else it's mutation falls outside of the magic promise chain

Copy link
Contributor

@zoesteinkamp zoesteinkamp left a comment

Choose a reason for hiding this comment

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

This looks fine as far as i can tell. Lots going on, looks like this can be exported if it needs to be

@@ -1,5 +1,8 @@
import {Organization} from '../../src/types'

// a generous commitment to delivering this page in a loaded state
const PAGE_LOAD_SLA = 10000
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, gives it more time to load

@drdelambre drdelambre merged commit a0b17a6 into master Nov 6, 2019
@drdelambre drdelambre deleted the alex_feat_new_overlay branch November 8, 2019 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to view the influxdb_v2 output for telegraf
2 participants