-
Notifications
You must be signed in to change notification settings - Fork 102
Extract parsing into its own service class #553
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #553 +/- ##
==========================================
+ Coverage 32.26% 40.65% +8.39%
==========================================
Files 32 42 +10
Lines 1621 1852 +231
==========================================
+ Hits 523 753 +230
- Misses 1098 1099 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
6b7feb6 to
4660ebb
Compare
|
@seyfeb I tried here to start the codebase refractory and pull some functionality into its own service. I know this is quite a bigger pack of changes which makes it hard to check line by line. What do you think, how should we proceed here? First writing tests for all changes involved here or building the tests later? I tried to make it possible to test the code but did not write the tests yet. If we want to do this with everything tested, I would have to solve #537 first, I assume. Any further remarks? |
|
I’m not sure either. We might get some regressions when doing this without tests, so this might be a good moment to start writing tests. However, I’m not sure if, with our limited time to work on this, it might just be okay to deal with them later and first get the better structure in the code and hope for the best (keeping in mind to add tests once we have #537). |
|
OK, then we wait for #537, rebase to have these changes, and try to implement some tests afterward. I converted to draft to make this obvious. |
|
Closes #740 |
4660ebb to
74f199a
Compare
74f199a to
dbe1ee0
Compare
|
OK, I added tests for all new classes except for the Also, no integration tests were written so far. This is related to the fact that no clear idea of what sites should be taken as examples for these tests. |
09013d1 to
aa2bbb5
Compare
aa2bbb5 to
66cac34
Compare
66cac34 to
2146636
Compare
22e492d to
eb2624c
Compare
075a5f1 to
50a6caa
Compare
seyfeb
left a comment
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 tested this with a recipe and it worked as expected. I did not go through all the test cases though..
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
This has shown one bug that was fixed as a byproduct. Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Co-authored-by: Sebastian Fey <[email protected]> Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Co-authored-by: Sebastian Fey <[email protected]> Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
d55dfc6 to
8651abd
Compare
|
I am going to merge this now. This will allow breaking the work into smaller chunks that can be handled more easily. Especially adding more test and integration tests can be done separately. See also #1017. |
This PR should reduce the complexity of the RecipeService and pull out some of the functionality in smaller chunks that might also simplify debugging.
For now, the
recipeParseHtml()method is only deprecated but should be removed soon.