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

fix: pubsub schema fixes #1743

Merged
merged 6 commits into from
Jun 12, 2024
Merged

fix: pubsub schema fixes #1743

merged 6 commits into from
Jun 12, 2024

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Jun 12, 2024

includes fixes for the following cases:

  • fix panic when validating if a call is valid if the call was to an inbuilt type (which has no package)
  • fix issue finding a topic's name when declaring a subscription
    • the topic's var has a nil .Obj field, possibly because it was defined in a different file. Added a map from variable declaration position to the schema.Topic, and used that instead
  • fix issue disambiguating between an illegal direct verb call (eg: external.DoSomething(ctx), and an allowed field access (eg: external.Data{}.Name)

@matt2e matt2e requested a review from alecthomas as a code owner June 12, 2024 01:15
@matt2e matt2e requested review from a team and deniseli and removed request for a team June 12, 2024 01:15
@ftl-robot ftl-robot mentioned this pull request Jun 12, 2024
@@ -286,9 +286,6 @@ func TestExtractModuleSchemaNamedTypes(t *testing.T) {
t.SkipNow()
}
assert.NoError(t, prebuildTestModule(t, "testdata/named", "testdata/namedext"))
if testing.Short() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were redundant as they are repeated a few lines earlier

@matt2e matt2e force-pushed the matt2e/pubsub-schema-fixes branch from b7528e9 to c30eb93 Compare June 12, 2024 01:21
@matt2e matt2e merged commit b4357a2 into main Jun 12, 2024
39 checks passed
@matt2e matt2e deleted the matt2e/pubsub-schema-fixes branch June 12, 2024 01:29
@deniseli deniseli added the approved Marks an already closed PR as approved label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Marks an already closed PR as approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants