fix: State add flush and fix migration bug#1039
Merged
yevgenypats merged 2 commits intomainfrom Jul 1, 2023
Merged
Conversation
yevgenypats
commented
Jul 1, 2023
| return val, nil | ||
| } | ||
| return "", fmt.Errorf("key not found") | ||
| return "", nil |
Contributor
Author
There was a problem hiding this comment.
I decided to return "" if not found but we can later on make this an option which the user can decide if they want to use "" or NotFoundErr
disq
reviewed
Jul 1, 2023
| type Client interface { | ||
| SetKey(ctx context.Context, key string, value string) error | ||
| GetKey(ctx context.Context, key string) (string, error) | ||
| Flush(ctx context.Context) error |
Contributor
Author
There was a problem hiding this comment.
It is not flushing the content every Set otherwise data is not written back. It is already implemented on the state implementation but just wasn't exposed
kodiakhq bot
pushed a commit
that referenced
this pull request
Jul 1, 2023
🤖 I have created a release *beep* *boop* --- ## [4.4.1-rc1](v4.4.0-rc1...v4.4.1-rc1) (2023-07-01) ### Bug Fixes * **deps:** Update github.com/apache/arrow/go/v13 digest to 5a06b2e ([#1032](#1032)) ([d369262](d369262)) * **deps:** Update golang.org/x/exp digest to 97b1e66 ([#1033](#1033)) ([791e60a](791e60a)) * **deps:** Update google.golang.org/genproto/googleapis/rpc digest to 9506855 ([#1034](#1034)) ([6999d11](6999d11)) * **deps:** Update module github.com/goccy/go-json to v0.10.2 ([#1035](#1035)) ([521eb13](521eb13)) * **deps:** Update module github.com/klauspost/compress to v1.16.6 ([#1036](#1036)) ([76bfc85](76bfc85)) * **serve:** Confusing message ([#1031](#1031)) ([ee873c9](ee873c9)) * State add flush and fix migration bug ([#1039](#1039)) ([8c10291](8c10291)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a bug in state backend where table weren't created.
I also tested it with cloudquery/cloudquery#11855 which seems to work with minor modifications (will open a PR shortly to the CLI PR)