Skip to content

fix: typos#19751

Closed
kumakichi wants to merge 2 commits intoinfluxdata:masterfrom
kumakichi:master
Closed

fix: typos#19751
kumakichi wants to merge 2 commits intoinfluxdata:masterfrom
kumakichi:master

Conversation

@kumakichi
Copy link
Copy Markdown
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

// DashboardsBucket is the bolt bucket dashboards are stored in
var DashboardsBucket = []byte("Dashoard")
var DashboardsBucket = []byte("Dashboard")
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

When(/^drag horizontally to "(.*)" of graph cell named "(.*)"$/, async (fraction, name) => {
await dbdSteps.dragToHorizonatlFractionOfGraphCell(fraction, name);
await dbdSteps.dragToHorizontalFractionOfGraphCell(fraction, name);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code


Then(/^there are "(.*)" label pills in the select label popover$/, async count => {
await dbdsSteps.verifyDasboardAddLabelsPillCount(count);
await dbdsSteps.verifyDashboardAddLabelsPillCount(count);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code


When(/^click the add label button for the dashboard card "(.*)"$/, async name => {
await dbdsSteps.clickDasboardCardAddLabel(name);
await dbdsSteps.clickDashboardCardAddLabel(name);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code


When(/^drag horizontally to "(.*)" of the graph$/, async (fraction) => {
await deSteps.dragToHorizonatalFractionOfGraph(fraction);
await deSteps.dragToHorizontalFractionOfGraph(fraction);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

}

async verifyDasboardAddLabelsPillCount(count){
async verifyDashboardAddLabelsPillCount(count){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

}

async clickDasboardCardAddLabel(name){
async clickDashboardCardAddLabel(name){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

}

async dragToHorizonatalFractionOfGraph(fraction){
async dragToHorizontalFractionOfGraph(fraction){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

};

const writePerfomanceReport = async (filename = performanceRecFile) => {
const writePerformanceReport = async (filename = performanceRecFile) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

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

Choose a reason for hiding this comment

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

code

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (mock)

}

subcriber := &NatsSubscriber{
subscriber := &NatsSubscriber{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (mock)

},
{
name: "bad thredshold",
name: "bad threshold",
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

// Utils
import {checkThresholdsValid} from './checkValidate'
import {isDurationParseable} from 'src/shared/utils/duration'
import {isDurationParsable} from 'src/shared/utils/duration'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code


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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (ui)


// Constants
import {resouceOwner} from 'src/members/dummyData'
import {resourceOwner} from 'src/members/dummyData'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (test)

import {ResourceOwner, User} from '@influxdata/influx'

export const resouceOwner: ResourceOwner[] = [
export const resourceOwner: ResourceOwner[] = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code

ComponentStatus,
} from '@influxdata/clockface'
import {isDurationParseable} from 'src/shared/utils/duration'
import {isDurationParsable} from 'src/shared/utils/duration'
Copy link
Copy Markdown
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
Copy Markdown
Contributor

dgnorton commented Nov 5, 2020

@kumakichi can you rebase this PR to resolve the conflicts?

}

const isRemoveable =
const isRemovable =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (ui)

test('broadcasts edited thresholds only when changes are valid', async () => {
const handleSetThresholdsSpy = jest.fn()
const testShresholds: Color[] = [
const testThresholds: Color[] = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (test)

millisecondsToDuration,
isDurationWithNowParseable,
isDurationParseable,
isDurationWithNowParsable,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code (test)

input.replace(/\s/g, '').replace(/now\(\)-/, '')

export const isDurationWithNowParseable = (lower: string): boolean => {
export const isDurationWithNowParsable = (lower: string): boolean => {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@russorat I'll get this rebased

@danxmoran danxmoran removed their assignment Nov 6, 2020
@danxmoran
Copy link
Copy Markdown
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
Copy Markdown
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