-
Notifications
You must be signed in to change notification settings - Fork 135
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(data-store): add support for entityPrefix #725
Conversation
@@ -50,6 +50,7 @@ function createSchema(generator: TJS.SchemaGenerator, symbol: string) { | |||
schemaStr = schemaStr.replace(/Where\<(.*)\>/gm, 'Where-$1') | |||
schemaStr = schemaStr.replace(/Order\<(.*)\>/gm, 'Order-$1') | |||
schemaStr = schemaStr.replace(/FindArgs\<(.*)\>/gm, 'FindArgs-$1') | |||
schemaStr = schemaStr.replace(/https \:\/\//gm, 'https://') |
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.
Somewhere in the api-extractor toolchain there is a bug that introduces a space between https
and ://
.
This is a workaround.
Codecov Report
@@ Coverage Diff @@
## next #725 +/- ##
===========================================
+ Coverage 67.58% 79.03% +11.45%
===========================================
Files 62 85 +23
Lines 1530 2609 +1079
Branches 247 447 +200
===========================================
+ Hits 1034 2062 +1028
- Misses 400 545 +145
+ Partials 96 2 -94 |
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.
Line 90 in createPrivateKeyStorage needs the prefix
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.
Looks good
great catch! |
fixes #724
I use the
Entity
metadata that TypeORM provides (which includes theentityPrefix
configured on the connection) to decide on the database table names for migrations.I merged the pre-migration database fixtures into a single db and added another fixture to test migrations when
entityPrefix
is used.This PR also contains some doc fixes for some core types and a workaround for a bug in the api-extractor toolchain that introduces some whitespace in
{@link URLs}
.Also, the default
infuraProjectId
used in testing is updated.