Skip to content

Store user state in nats-kv - #1443

Merged
rhafer merged 19 commits into
opencloud-eu:mainfrom
dragonchaser:store-user-state-in-system-storage
Oct 8, 2025
Merged

rhafer merged 19 commits into
opencloud-eu:mainfrom
dragonchaser:store-user-state-in-system-storage

Conversation

@dragonchaser

@dragonchaser dragonchaser commented Sep 2, 2025 •

Copy link
Copy Markdown
Member

We have added the ability to store the userstate in the nats-kv store.

refs #1286

@dragonchaser dragonchaser changed the title Store user state in system storage Store user state in nats-kv Sep 2, 2025
@dragonchaser
dragonchaser marked this pull request as ready for review September 2, 2025 14:12
@dragonchaser
dragonchaser requested a review from rhafer September 2, 2025 14:14

@rhafer rhafer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure you pushed the right thing here? This looks weird. See my comments.

Comment thread services/graph/pkg/config/config.go Resolved
Comment thread services/graph/pkg/service/v0/option.go Resolved
Comment thread services/graph/pkg/config/config.go Resolved
Comment thread services/graph/pkg/config/config.go Resolved
Comment thread services/graph/pkg/config/config.go Resolved
@dragonchaser
dragonchaser force-pushed the store-user-state-in-system-storage branch 7 times, most recently from e9b4bbd to 9322e0c Compare September 29, 2025 10:38
@v-scharf
v-scharf force-pushed the store-user-state-in-system-storage branch from 9322e0c to e2e7dde Compare September 29, 2025 10:43
@dragonchaser
dragonchaser force-pushed the store-user-state-in-system-storage branch 3 times, most recently from e0d007e to 3104727 Compare October 1, 2025 12:25
dragonchaser and others added 13 commits October 2, 2025 16:33
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>

# Conflicts:
#	services/graph/pkg/service/v0/service.go
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Florian Schade <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Florian Schade <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
@dragonchaser
dragonchaser force-pushed the store-user-state-in-system-storage branch from 3104727 to 2973041 Compare October 2, 2025 14:34
Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Jörn Dreyer <[email protected]>

Signed-off-by: Christian Richter <[email protected]>
@dragonchaser
dragonchaser requested a review from rhafer October 6, 2025 05:13
Signed-off-by: Christian Richter <[email protected]>

@rhafer rhafer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've some concerns regarding the usage of the legacy jetstream API. I think we should use the new APIs for new code we introduce (see my inline comments).

Also it seems you forgot to add the nats mocks to the PR, please add them (or the adequate ones for the newer API).

Comment thread services/graph/pkg/command/server.go Resolved
Comment thread services/graph/pkg/command/server.go Resolved
Comment thread services/graph/pkg/config/config.go Resolved
Comment thread services/graph/pkg/command/server.go Resolved
Signed-off-by: Christian Richter <[email protected]>
@fschade

fschade commented Oct 8, 2025

Copy link
Copy Markdown
Member

i took it over as good as i can till @dragonchaser is back,
THX @rhafer for the detailed review!

@fschade
fschade requested a review from rhafer October 8, 2025 09:45

@rhafer rhafer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @fschade for jumping in. Looks good to me now. Let's see what the ci thinks of it.

…r wrapping, make use of store auth options, use a dedicated jetstream package
@fschade
fschade force-pushed the store-user-state-in-system-storage branch from 1606076 to f0db515 Compare October 8, 2025 12:03
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Oct 8, 2025
@fschade fschade moved this from Qualification to In Progress in OpenCloud Team Board Oct 8, 2025
@rhafer
rhafer merged commit c0244fc into opencloud-eu:main Oct 8, 2025
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenCloud Team Board Oct 8, 2025
@dragonchaser
dragonchaser deleted the store-user-state-in-system-storage branch October 9, 2025 07:15
@micbar micbar mentioned this pull request Oct 27, 2025
17 of 18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants