-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Rearchitecture MWOffliner HTML/CSS/JS scraping (part #1) #1839
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1839 +/- ##
==========================================
+ Coverage 71.24% 71.53% +0.29%
==========================================
Files 30 34 +4
Lines 2671 2737 +66
Branches 595 606 +11
==========================================
+ Hits 1903 1958 +55
- Misses 659 667 +8
- Partials 109 112 +3
☔ View full report in Codecov by Sentry. |
f22dea4
to
c5e4ae7
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.
@DonAlexandro I had really little time to look at your work still. I'm pretty convinced by your approach around URL and I like many things around that part. Therefore I think we could merge your work arounds URLs pretty quickly. For the rest, this is more complex and I'll have a look tomorrow morning. Could you please isolate all the URL stuff in a dedicated PR, so we can polish and merge?
c5e4ae7
to
a5ef1bf
Compare
a31595d
to
4be0b61
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.
Overall looks OK, I applied some fixes related to MCS decommission and unit test tweaks on top of PR #1854
08b8dff
to
6a00b54
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.
At a first look, this PR does not tacle #1830:
- I see almost no architectural changes beside the creation of the URL helper. Lot of code has been moved around, so I might miss something.
- Point "No clear separation between the pieces of code dedicated to specific API end-points" is not fixed
- Point "No common interface to use in the same way a module dealing with end-point number 1 or end-point number 2 " is not implemented
- Subticket Remove MWCapabilities #1357 is not done at all
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.
My two cents
@@ -0,0 +1,3 @@ | |||
export abstract class Renderer { | |||
abstract render(renderOpts: any): Promise<any> |
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 should have a strict interface renderOpts: any
this is really too error prone.
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.
Fixed
3c1020f
to
e368436
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.
Still many oddities which looks strange to me. We definitly need to take a moment together.
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.
Do we have open tickets that this PR fixes fully? If "yes" description should be updated with Fixes #xyz
.
478c1f7
to
d949fd8
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.
Finally LGTM
Github issue
Fixes partly #1830
Overview
16.05.2023
15.05.2023
12.05.2023
11.05.2023
21.08.2023