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

Rename the StateStore interface #70

Merged
merged 3 commits into from
Oct 31, 2019
Merged

Rename the StateStore interface #70

merged 3 commits into from
Oct 31, 2019

Conversation

sayboras
Copy link
Member

@sayboras sayboras commented Oct 29, 2019

Description

Fixes #67

Issue reference

As mentioned in #67, we would like to rename interface state.StateStore to just state.Store.

I also noticed that there is inconsistency in naming for different store implementation such as cosmodb and redis compared to others (e.g. etcd, cassandra, consul etc). Hence, I have done some refactor as well. This might be breaking change, so would love to hear your inputs.

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@sayboras sayboras changed the title Feature/rename store Rename the StateStore interface Oct 29, 2019
// StateStore is a CosmosDB state store
type StateStore struct {
// CosmosDB is a CosmosDB state store
type CosmosDB struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

package name is cosmosdb and you renamed StateStore to CosmosDB. cosmosdb.CosmosDB doesn't look good to me. Do you have the better idea for this ? maybe StateStore would be better.. cc/ @yaron2

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh i take a look on other implementation (eg etcd), and would like to make it consistent. Will be easier for consumer

Copy link
Contributor

Choose a reason for hiding this comment

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

@sayboras , can we just have the changes for renaming the statestore interface only ?
The reason is that we have issue open to rename the package names , in that effort we will taking the name changes in specific PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

@shalabhms good point. once interface is renamed, we have to change in dapr as well. for renaming the actual struct, it would be great to create the separate pr per component implementation.

Copy link
Member Author

@sayboras sayboras Oct 30, 2019

Choose a reason for hiding this comment

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

@shalabhms @youngbupark noted and thanks guys, I have updated PR, kindly help to take another look

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.

To rename StateStore interface in state package
4 participants