Conversation
|
|
||
| // DashboardsBucket is the bolt bucket dashboards are stored in | ||
| var DashboardsBucket = []byte("Dashoard") | ||
| var DashboardsBucket = []byte("Dashboard") |
There was a problem hiding this comment.
not sure if this is dead code or not, but worried it might have larger impacts.
There was a problem hiding this comment.
@glinton I feel like you might be able to answer if this has larger impacts
There was a problem hiding this comment.
last i knew it was still being used and changing it would cause old dashboards to go missing. if it's worth it to update this spelling, a migration would need to be written
There was a problem hiding this comment.
The only place i found this to be used was in cmd/chronograf-migrator, I think this particular change should be reverted since chronograf still stores dashboards in that misspelled bucket.
If cmd/chronograf-migrator is not the preferred method to migrate from v1, then all this code could be removed.
|
|
||
| When(/^drag horizontally to "(.*)" of graph cell named "(.*)"$/, async (fraction, name) => { | ||
| await dbdSteps.dragToHorizonatlFractionOfGraphCell(fraction, name); | ||
| await dbdSteps.dragToHorizontalFractionOfGraphCell(fraction, name); |
|
|
||
| Then(/^there are "(.*)" label pills in the select label popover$/, async count => { | ||
| await dbdsSteps.verifyDasboardAddLabelsPillCount(count); | ||
| await dbdsSteps.verifyDashboardAddLabelsPillCount(count); |
|
|
||
| When(/^click the add label button for the dashboard card "(.*)"$/, async name => { | ||
| await dbdsSteps.clickDasboardCardAddLabel(name); | ||
| await dbdsSteps.clickDashboardCardAddLabel(name); |
|
|
||
| When(/^drag horizontally to "(.*)" of the graph$/, async (fraction) => { | ||
| await deSteps.dragToHorizonatalFractionOfGraph(fraction); | ||
| await deSteps.dragToHorizontalFractionOfGraph(fraction); |
| } | ||
|
|
||
| async verifyDasboardAddLabelsPillCount(count){ | ||
| async verifyDashboardAddLabelsPillCount(count){ |
| } | ||
|
|
||
| async clickDasboardCardAddLabel(name){ | ||
| async clickDashboardCardAddLabel(name){ |
| } | ||
|
|
||
| async dragToHorizonatalFractionOfGraph(fraction){ | ||
| async dragToHorizontalFractionOfGraph(fraction){ |
| }; | ||
|
|
||
| const writePerfomanceReport = async (filename = performanceRecFile) => { | ||
| const writePerformanceReport = async (filename = performanceRecFile) => { |
| // TestEndpointService_cumulativeSecrets tests that secrets are cumulatively added/updated and removed upon delete | ||
| // see https://github.com/influxdata/influxdb/pull/19082 for details | ||
| func TestEndpointService_cummulativeSecrets(t *testing.T) { | ||
| func TestEndpointService_cumulativeSecrets(t *testing.T) { |
| UpdateDashboardCellViewF func(ctx context.Context, dashboardID platform.ID, cellID platform.ID, upd platform.ViewUpdate) (*platform.View, error) | ||
| UpdateDashboardCellViewCalls SafeCount | ||
| UpdateDashboardCellF func(ctx context.Context, dashbaordID platform.ID, cellID platform.ID, upd platform.CellUpdate) (*platform.Cell, error) | ||
| UpdateDashboardCellF func(ctx context.Context, dashboardID platform.ID, cellID platform.ID, upd platform.CellUpdate) (*platform.Cell, error) |
| } | ||
|
|
||
| subcriber := &NatsSubscriber{ | ||
| subscriber := &NatsSubscriber{ |
| }, | ||
| { | ||
| name: "bad thredshold", | ||
| name: "bad threshold", |
| // SessionAuthorizionKind defines the type of authorizer | ||
| const SessionAuthorizionKind = "session" | ||
| // SessionAuthorizationKind defines the type of authorizer | ||
| const SessionAuthorizationKind = "session" |
| // Utils | ||
| import {checkThresholdsValid} from './checkValidate' | ||
| import {isDurationParseable} from 'src/shared/utils/duration' | ||
| import {isDurationParsable} from 'src/shared/utils/duration' |
|
|
||
| import {SELECTABLE_TIME_RANGES} from 'src/shared/constants/timeRanges' | ||
| import {isDurationWithNowParseable} from 'src/shared/utils/duration' | ||
| import {isDurationWithNowParsable} from 'src/shared/utils/duration' |
|
|
||
| // Constants | ||
| import {resouceOwner} from 'src/members/dummyData' | ||
| import {resourceOwner} from 'src/members/dummyData' |
| import {ResourceOwner, User} from '@influxdata/influx' | ||
|
|
||
| export const resouceOwner: ResourceOwner[] = [ | ||
| export const resourceOwner: ResourceOwner[] = [ |
| ComponentStatus, | ||
| } from '@influxdata/clockface' | ||
| import {isDurationParseable} from 'src/shared/utils/duration' | ||
| import {isDurationParsable} from 'src/shared/utils/duration' |
|
@kumakichi can you rebase this PR to resolve the conflicts? |
| } | ||
|
|
||
| const isRemoveable = | ||
| const isRemovable = |
| test('broadcasts edited thresholds only when changes are valid', async () => { | ||
| const handleSetThresholdsSpy = jest.fn() | ||
| const testShresholds: Color[] = [ | ||
| const testThresholds: Color[] = [ |
| millisecondsToDuration, | ||
| isDurationWithNowParseable, | ||
| isDurationParseable, | ||
| isDurationWithNowParsable, |
| input.replace(/\s/g, '').replace(/now\(\)-/, '') | ||
|
|
||
| export const isDurationWithNowParseable = (lower: string): boolean => { | ||
| export const isDurationWithNowParsable = (lower: string): boolean => { |
|
Thanks! reviewed and commented on any areas where the typos were code and not comments or strings. Finding eng team members to take a look as well. |
|
@russorat I'll get this rebased |
|
Looks like GitHub is going to force me to open a fresh PR to pushed the rebased changes. Holding off for now. |
|
Closing in favor of the rebased version #19987 |
fix some typos