generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
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: inject topics/subscriptions in go #3394
Open
worstell
wants to merge
2
commits into
main
Choose a base branch
from
worstell/20241114-pubsub-injection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
from
November 15, 2024 01:23
e747065
to
2d24683
Compare
Base automatically changed from
worstell/20241114-publisher-metadata
to
main
November 18, 2024 17:49
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
2 times, most recently
from
November 19, 2024 19:25
31ba8b6
to
0f01e0c
Compare
worstell
changed the base branch from
main
to
worstell/20241119-deterministic-order-for-verb-resources
November 19, 2024 19:25
worstell
force-pushed
the
worstell/20241119-deterministic-order-for-verb-resources
branch
2 times, most recently
from
November 19, 2024 20:58
10b9386
to
366f26b
Compare
Base automatically changed from
worstell/20241119-deterministic-order-for-verb-resources
to
main
November 19, 2024 23:46
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
3 times, most recently
from
November 19, 2024 23:58
8e1ee84
to
65f6b88
Compare
worstell
commented
Nov 19, 2024
@@ -565,7 +567,8 @@ func testErrorReporting(t *testing.T) { | |||
`146:6-45: enum discriminator "TypeEnum3" cannot contain exported methods`, | |||
`149:6-35: enum discriminator "NoMethodsTypeEnum" must define at least one method`, | |||
`161:3-14: unexpected token "d"`, | |||
`168:2-62: can not publish directly to topics in other modules`, | |||
// todo: do we want this? why do we support exporting topics if so? | |||
//`168:2-62: can not publish directly to topics in other modules`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this check be removed?
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
2 times, most recently
from
November 20, 2024 21:10
cc3d236
to
29f4e24
Compare
worstell
commented
Nov 20, 2024
@@ -438,67 +438,6 @@ func getDSNFromSecret(ftl internal.FTL, module, name string) (string, error) { | |||
return dsn, nil | |||
} | |||
|
|||
// WithSubscriber adds a subscriber during a test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be reimplementing test helpers with a different strategy separately
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
5 times, most recently
from
November 21, 2024 20:51
97232ae
to
b446f7e
Compare
worstell
changed the title
wip: feat: inject topics/subscriptions in go
feat: inject topics/subscriptions in go
Nov 21, 2024
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
from
November 21, 2024 20:59
45afd0b
to
26ea38c
Compare
worstell
requested review from
stuartwdouglas and
wesbillman
and removed request for
a team
November 21, 2024 20:59
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
from
November 21, 2024 21:07
750c3ee
to
4caba3c
Compare
worstell
force-pushed
the
worstell/20241114-pubsub-injection
branch
from
November 21, 2024 21:10
99f183e
to
c094dc2
Compare
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.
go:
type MyTopic = ftl.TopicHandle[MyEvent]
schema:
topic myTopic foo.MyEvent
go:
type MySubscription = ftl.SubscriptionHandle[MyTopic, MySinkClient, MyEvent]
schema:
subscription mySubscription foo.MyEvent