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

fix: typos #19751

Closed
wants to merge 2 commits into from
Closed

fix: typos #19751

wants to merge 2 commits into from

Conversation

kumakichi
Copy link
Contributor

@kumakichi kumakichi commented Oct 15, 2020

fix some typos

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Well-formatted commit messages
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Feature flagged (if modified API)
  • Documentation updated or issue created (provide link to issue/pr)
  • Signed CLA (if not already signed)

@kumakichi kumakichi requested a review from a team as a code owner October 15, 2020 08:48
@@ -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")
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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.

@russorat russorat requested review from psteinbachs and removed request for a team November 5, 2020 20:13
@@ -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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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){
Copy link
Contributor

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){
Copy link
Contributor

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){
Copy link
Contributor

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) => {
Copy link
Contributor

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) {
Copy link
Contributor

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)
Copy link
Contributor

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{
Copy link
Contributor

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",
Copy link
Contributor

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"
Copy link
Contributor

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'
Copy link
Contributor

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'
Copy link
Contributor

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'
Copy link
Contributor

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[] = [
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

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

code (ui)

@dgnorton
Copy link
Contributor

dgnorton commented Nov 5, 2020

@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 =
Copy link
Contributor

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[] = [
Copy link
Contributor

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,
Copy link
Contributor

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 => {
Copy link
Contributor

Choose a reason for hiding this comment

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

code (ui)

@russorat
Copy link
Contributor

russorat commented Nov 5, 2020

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.

@danxmoran danxmoran self-assigned this Nov 6, 2020
@danxmoran
Copy link
Contributor

@russorat I'll get this rebased

@danxmoran danxmoran removed their assignment Nov 6, 2020
@danxmoran
Copy link
Contributor

Looks like GitHub is going to force me to open a fresh PR to pushed the rebased changes. Holding off for now.

@danxmoran danxmoran self-assigned this Nov 11, 2020
@danxmoran danxmoran mentioned this pull request Nov 11, 2020
8 tasks
@danxmoran
Copy link
Contributor

Closing in favor of the rebased version #19987

@danxmoran danxmoran closed this Nov 11, 2020
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.

6 participants