-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix: typos #19751
fix: typos #19751
Conversation
@@ -13,7 +13,7 @@ import ( | |||
var _ chronograf.DashboardsStore = &DashboardsStore{} | |||
|
|||
// DashboardsBucket is the bolt bucket dashboards are stored in | |||
var DashboardsBucket = []byte("Dashoard") | |||
var DashboardsBucket = []byte("Dashboard") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this is dead code or not, but worried it might have larger impacts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glinton I feel like you might be able to answer if this has larger impacts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -246,7 +246,7 @@ When(/^move horizontally to "(.*)" of graph cell named "(.*)"$/, async (fraction | |||
}); | |||
|
|||
When(/^drag horizontally to "(.*)" of graph cell named "(.*)"$/, async (fraction, name) => { | |||
await dbdSteps.dragToHorizonatlFractionOfGraphCell(fraction, name); | |||
await dbdSteps.dragToHorizontalFractionOfGraphCell(fraction, name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -107,7 +107,7 @@ When(/^enter "(.*)" in the popover label selector filter$/, async text => { | |||
}); | |||
|
|||
Then(/^there are "(.*)" label pills in the select label popover$/, async count => { | |||
await dbdsSteps.verifyDasboardAddLabelsPillCount(count); | |||
await dbdsSteps.verifyDashboardAddLabelsPillCount(count); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -127,7 +127,7 @@ Then(/^the dashboard card "(.*)" has the label "(.*)"$/, async (name, label) => | |||
}); | |||
|
|||
When(/^click the add label button for the dashboard card "(.*)"$/, async name => { | |||
await dbdsSteps.clickDasboardCardAddLabel(name); | |||
await dbdsSteps.clickDashboardCardAddLabel(name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -42,7 +42,7 @@ When(/^move horizontally to "(.*)" of the graph$/, async (fraction) => { | |||
}); | |||
|
|||
When(/^drag horizontally to "(.*)" of the graph$/, async (fraction) => { | |||
await deSteps.dragToHorizonatalFractionOfGraph(fraction); | |||
await deSteps.dragToHorizontalFractionOfGraph(fraction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -132,7 +132,7 @@ class dashboardsSteps extends influxSteps { | |||
await this.typeTextAndWait(await this.dbdsPage.getAddLabelsPopoverFilter(), text); | |||
} | |||
|
|||
async verifyDasboardAddLabelsPillCount(count){ | |||
async verifyDashboardAddLabelsPillCount(count){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -155,7 +155,7 @@ class dashboardsSteps extends influxSteps { | |||
await this.assertVisible(await this.dbdsPage.getDashboardCardLabelPill(name, label)); | |||
} | |||
|
|||
async clickDasboardCardAddLabel(name){ | |||
async clickDashboardCardAddLabel(name){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -153,7 +153,7 @@ class dataExplorerSteps extends influxSteps { | |||
}); | |||
} | |||
|
|||
async dragToHorizonatalFractionOfGraph(fraction){ | |||
async dragToHorizontalFractionOfGraph(fraction){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -111,7 +111,7 @@ const writePerformanceLog = async () => { | |||
console.log() | |||
}; | |||
|
|||
const writePerfomanceReport = async (filename = performanceRecFile) => { | |||
const writePerformanceReport = async (filename = performanceRecFile) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
// see https://github.com/influxdata/influxdb/pull/19082 for details | ||
func TestEndpointService_cummulativeSecrets(t *testing.T) { | ||
func TestEndpointService_cumulativeSecrets(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -28,9 +28,9 @@ type DashboardService struct { | |||
GetDashboardCellViewCalls SafeCount | |||
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (mock)
@@ -34,11 +34,11 @@ func NewNats() (nats.Publisher, nats.Subscriber) { | |||
server: server, | |||
} | |||
|
|||
subcriber := &NatsSubscriber{ | |||
subscriber := &NatsSubscriber{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (mock)
@@ -141,7 +141,7 @@ func TestValidCheck(t *testing.T) { | |||
}, | |||
}, | |||
{ | |||
name: "bad thredshold", | |||
name: "bad threshold", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (test)
// SessionAuthorizionKind defines the type of authorizer | ||
const SessionAuthorizionKind = "session" | ||
// SessionAuthorizationKind defines the type of authorizer | ||
const SessionAuthorizationKind = "session" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -4,7 +4,7 @@ import {PostCheck} from 'src/client' | |||
|
|||
// Utils | |||
import {checkThresholdsValid} from './checkValidate' | |||
import {isDurationParseable} from 'src/shared/utils/duration' | |||
import {isDurationParsable} from 'src/shared/utils/duration' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -1,7 +1,7 @@ | |||
import {CustomTimeRange, TimeRange, DurationTimeRange} from 'src/types/queries' | |||
|
|||
import {SELECTABLE_TIME_RANGES} from 'src/shared/constants/timeRanges' | |||
import {isDurationWithNowParseable} from 'src/shared/utils/duration' | |||
import {isDurationWithNowParsable} from 'src/shared/utils/duration' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (ui)
@@ -6,11 +6,11 @@ import {shallow} from 'enzyme' | |||
import MemberList from 'src/members/components/MemberList' | |||
|
|||
// Constants | |||
import {resouceOwner} from 'src/members/dummyData' | |||
import {resourceOwner} from 'src/members/dummyData' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (test)
@@ -1,6 +1,6 @@ | |||
import {ResourceOwner, User} from '@influxdata/influx' | |||
|
|||
export const resouceOwner: ResourceOwner[] = [ | |||
export const resourceOwner: ResourceOwner[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
@@ -8,7 +8,7 @@ import { | |||
ClickOutside, | |||
ComponentStatus, | |||
} from '@influxdata/clockface' | |||
import {isDurationParseable} from 'src/shared/utils/duration' | |||
import {isDurationParsable} from 'src/shared/utils/duration' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (ui)
@kumakichi can you rebase this PR to resolve the conflicts? |
@@ -60,7 +60,7 @@ const ThresholdSetting: FunctionComponent<Props> = ({ | |||
label = 'Value is >=' | |||
} | |||
|
|||
const isRemoveable = | |||
const isRemovable = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (ui)
@@ -113,14 +113,14 @@ describe('ThresholdSettings', () => { | |||
|
|||
test('broadcasts edited thresholds only when changes are valid', async () => { | |||
const handleSetThresholdsSpy = jest.fn() | |||
const testShresholds: Color[] = [ | |||
const testThresholds: Color[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (test)
@@ -3,8 +3,8 @@ import { | |||
durationToMilliseconds, | |||
areDurationsEqual, | |||
millisecondsToDuration, | |||
isDurationWithNowParseable, | |||
isDurationParseable, | |||
isDurationWithNowParsable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (test)
@@ -7,7 +7,7 @@ import {TIME_RANGE_FORMAT} from 'src/shared/constants/timeRanges' | |||
export const removeSpacesAndNow = (input: string): string => | |||
input.replace(/\s/g, '').replace(/now\(\)-/, '') | |||
|
|||
export const isDurationWithNowParseable = (lower: string): boolean => { | |||
export const isDurationWithNowParsable = (lower: string): boolean => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code (ui)
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