-
Notifications
You must be signed in to change notification settings - Fork 189
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
Making parser service work #2846
Conversation
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.
I think the dockerization can be done in a separate PR, we want to focus on migrating all the changes from the legacy backend into the parser service, which is already a big task. The testing can be done on a separate PR, as well.
Can you rebase for the lock file changes? |
10a134d
to
2e9060a
Compare
2e9060a
to
d7002a8
Compare
959d7e2
to
aee3536
Compare
aee3536
to
a354fdf
Compare
35ca830
to
7c73ef4
Compare
7c73ef4
to
0fdbb49
Compare
src/api/parser/package.json
Outdated
"normalize-url": "6.0.1", | ||
"rss-parser": "3.12.0", | ||
"sanitize-html": "2.5.3", | ||
"set-interval-async": "2.0.3" |
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.
Can we get rid of this and use https://nodejs.org/api/timers.html#timerspromisessetintervaldelay-value-options?
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.
Using setInterval
and clearInterval
from timers/promise
works, I removed the package
@@ -0,0 +1,64 @@ | |||
// Mock storage for our es data |
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.
@rclee91 @JiaHua-Zou ping?
0fdbb49
to
c3ab2ab
Compare
c3ab2ab
to
88d9329
Compare
@TueeNguyen want to rebase this so it picks up the changes we made last night? |
88d9329
to
48ad5ae
Compare
48ad5ae
to
afe9b72
Compare
afe9b72
to
32310f6
Compare
- Update README.md - Revert some docker, config changes - Removed unncessary files (hash.js, redis.js, elastic.js) - Change imports to use Satellite's (hash, redis, elastic, logger) - Add remove-empty-anchor to html/index.js - Remove some dependencies in package.json - Update lock file
32310f6
to
6518596
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.
OK, I'm tempted to take this, and let us move forward on tests.
Great work, and than you for not giving up easily.
a: ['href'], | ||
}, | ||
allowedIframeHostnames: [ | ||
'www.youtube.com', |
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 have a PR in flight right now that alters this file, let's not forget to update this too or later (@HyperTHD).
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.
I'll remember
Thanks everyone, I can write tests for it now :D |
Issue This PR Addresses
Fixes #2111
This is a big change so I'd rather have it looked at early
Type of Change
Description
Steps to test the PR
pnpm install
in rootpnpm services:start redis elasticsearch traefik posts
npm run dev
and go tolocalhost:8000
or look at the terminal logNotes: I have not tested this for Youtube feeds, will edit this with test result
Next steps
Should I open small issues for these steps?
Checklist