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(e2e_client): Fixes some typings in the e2e satellite client #1222

Merged

Conversation

davidmartos96
Copy link
Contributor

@davidmartos96 davidmartos96 commented May 3, 2024

I've looked into why Lux didn't catch this. It appears to be because it was matching the same string that appears async in stdout via a SatOpLog. So I've tweaked the expectation so that it is more strict.

Another minor issue we found in the e2e client is the prisma definition for the enums table. We generate the Dart e2e client from the schema file, and the Enums model didn't include a @@map, so the generated table name was uppercase. But the e2e test creates the enums table as lowercase.

There appears to be other typing issues in the client, but I'm not sure how to resolve.

image

image

cc @kevin-dp

@kevin-dp kevin-dp changed the base branch from main to kevindp/update-e2e-client May 14, 2024 09:01
@kevin-dp kevin-dp merged commit 483bcb5 into electric-sql:kevindp/update-e2e-client May 14, 2024
4 checks passed
kevin-dp pushed a commit that referenced this pull request May 14, 2024
I've looked into why Lux didn't catch this. It appears to be because it
was matching the same string that appears async in stdout via a
SatOpLog. So I've tweaked the expectation so that it is more strict.

Another minor issue we found in the e2e client is the prisma definition
for the enums table. We generate the Dart e2e client from the schema
file, and the Enums model didn't include a `@@map`, so the generated
table name was uppercase. But the e2e test creates the enums table as
lowercase.

There appears to be other typing issues in the client, but I'm not sure
how to resolve.


![image](https://github.com/electric-sql/electric/assets/22084723/8185536b-af2b-45b4-a1cf-b32fed1b82b5)


![image](https://github.com/electric-sql/electric/assets/22084723/347f0c8f-b7bd-449f-b381-b2c0b9272a7d)

cc @kevin-dp
@davidmartos96 davidmartos96 deleted the fix_types_e2e branch May 14, 2024 15:29
kevin-dp pushed a commit that referenced this pull request May 16, 2024
I've looked into why Lux didn't catch this. It appears to be because it
was matching the same string that appears async in stdout via a
SatOpLog. So I've tweaked the expectation so that it is more strict.

Another minor issue we found in the e2e client is the prisma definition
for the enums table. We generate the Dart e2e client from the schema
file, and the Enums model didn't include a `@@map`, so the generated
table name was uppercase. But the e2e test creates the enums table as
lowercase.

There appears to be other typing issues in the client, but I'm not sure
how to resolve.


![image](https://github.com/electric-sql/electric/assets/22084723/8185536b-af2b-45b4-a1cf-b32fed1b82b5)


![image](https://github.com/electric-sql/electric/assets/22084723/347f0c8f-b7bd-449f-b381-b2c0b9272a7d)

cc @kevin-dp
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.

None yet

2 participants