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): Add option to generate read / write token #13601

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

ischolten
Copy link
Contributor

@ischolten ischolten commented Apr 24, 2019

Closes #12848

Briefly describe your proposed changes:

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

Copy link
Contributor

@ebb-tide ebb-tide left a comment

Choose a reason for hiding this comment

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

just a q here and there

</Form.Element>
<Form.Element label="">
<GetResources resource={ResourceTypes.Buckets}>
<SpinnerContainer
Copy link
Contributor

Choose a reason for hiding this comment

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

I think GetResources should handle loading state for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah youre so right!


private handleSelectBucket(
bucketName: string,
bucketNames: string[]
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe this var could be called selectedBuckets? Might this function be better as a util?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea ill rename and make util

}
}

export default SelectableBucket
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe.. delectableBucket?

@@ -38,7 +39,7 @@ class TokenRow extends PureComponent<Props> {
<EditableName
onUpdate={this.handleUpdateName}
name={description}
noNameString="DEFAULT_BUCKET_NAME"
noNameString={DEFAULT_TOKEN_NAME}
Copy link
Contributor

Choose a reason for hiding this comment

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

ooh nice!

@@ -90,6 +90,7 @@ type NewDefaultDashboard = Pick<
export const DEFAULT_CELL_NAME = 'Name this Cell'
export const DEFAULT_DASHBOARD_NAME = 'Name this Dashboard'
export const DEFAULT_BUCKET_NAME = 'Name this Bucket'
export const DEFAULT_TOKEN_NAME = 'Describe this Token'
Copy link
Contributor

Choose a reason for hiding this comment

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

why describe here instead of Name this token?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tokens dont have names, just descriptions. the variable should be renamed to reflect that

@ischolten ischolten force-pushed the feat/buckets-token branch 2 times, most recently from e3acbf0 to d99a1e1 Compare April 24, 2019 17:53
@ischolten ischolten merged commit ad0b089 into master Apr 24, 2019
@ischolten ischolten deleted the feat/buckets-token branch April 24, 2019 18:19
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 a way for the user to create a Read/Write Token to read/write to one or many buckets
2 participants