-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
🔨 (db) migrate Pageview to knex #3139
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
486942e
to
ce49d9f
Compare
a834c76
to
435d84a
Compare
a35b059
to
009d6fb
Compare
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
009d6fb
to
8c71da0
Compare
b16610f
to
4451b04
Compare
c538a40
to
92444de
Compare
7c53658
to
58817f4
Compare
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.
So weird to review muy own changes...
Looks good to me! I made two minor comments :)
baker/algolia/indexToAlgolia.tsx
Outdated
@@ -196,7 +196,7 @@ function generateGdocRecords( | |||
|
|||
// Generate records for countries, WP posts (not including posts that have been succeeded by Gdocs equivalents), and Gdocs | |||
const getPagesRecords = async (knex: Knex<any, any[]>) => { | |||
const pageviews = await Pageview.getViewsByUrlObj() | |||
const pageviews = await getAnalyticsPageviewsByUrlObj(db.knexInstance()) |
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.
We create a new instance, although a knex instance is passed in.
@@ -112,7 +112,7 @@ function getNullishJSONValueAsPlaintext(value: string): string { | |||
} | |||
|
|||
const getExplorerRecords = async (): Promise<ExplorerRecord[]> => { | |||
const pageviews = await Pageview.getViewsByUrlObj() | |||
const pageviews = await getAnalyticsPageviewsByUrlObj(db.knexInstance()) |
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.
Maybe it would be good to pass knex in here as well?
58817f4
to
59914dc
Compare
59914dc
to
afa89e1
Compare
Pageview
TypeORM class obsolete by switching db access to knexdb
folder@coderabbitai ignore