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: add module update events #3600

Merged
merged 1 commit into from
Dec 3, 2024
Merged

feat: add module update events #3600

merged 1 commit into from
Dec 3, 2024

Conversation

alecthomas
Copy link
Collaborator

This pattern allows us to update the runtime metadata for a module through the SchemaService.

This was referenced Dec 3, 2024
@alecthomas alecthomas force-pushed the aat/schema-module-events branch from 634c73d to d3c8303 Compare December 3, 2024 04:01
return nil, fmt.Errorf("could not get schemas: %w", err)
}
for deployment, module := range schemas {
if module.Name != req.Msg.Module {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should use the deployment key at some point, but we don't have it in the schema runtime data yet.

@alecthomas alecthomas force-pushed the aat/schema-module-events branch from d3c8303 to 7089658 Compare December 3, 2024 23:15
import (
"bytes"
"testing"
// func TestRedact(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently everything gets stored in the schema, so we're not redacting anything.

@alecthomas alecthomas force-pushed the aat/schema-module-events branch from 7089658 to 6199a1a Compare December 3, 2024 23:22
This pattern allows us to update the runtime metadata for a module
through the SchemaService.
@alecthomas alecthomas force-pushed the aat/schema-module-events branch from 6199a1a to 394d485 Compare December 3, 2024 23:24
@alecthomas alecthomas marked this pull request as ready for review December 3, 2024 23:42
@alecthomas alecthomas requested review from a team as code owners December 3, 2024 23:42
@alecthomas alecthomas requested review from worstell and wesbillman and removed request for a team December 3, 2024 23:42
@alecthomas alecthomas merged commit 8387b88 into main Dec 3, 2024
95 checks passed
@alecthomas alecthomas deleted the aat/schema-module-events branch December 3, 2024 23:46
alecthomas added a commit that referenced this pull request Dec 4, 2024
This pattern allows us to update the runtime metadata for a module
through the SchemaService.
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.

1 participant