-
Notifications
You must be signed in to change notification settings - Fork 37
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
Group #5 #36
base: main
Are you sure you want to change the base?
Group #5 #36
Conversation
|
||
HtmlUtil._suite_action(wiki_page, string_io, html_data, action="SetUp") | ||
|
||
string_io.writelines([html_data.page_data.get_content()]) |
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.
Unsure if this writelines
needs to be executed here
class HtmlProcessData: | ||
page_data: PageData | ||
page_crawler: PageCrawlerImpl | ||
path_parser: PathParser | ||
|
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.
An additional class of HTML parameters may not be necessary
|
||
|
||
class HtmlUtil: | ||
@staticmethod | ||
def _suite_action( |
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.
This name may not be proper to understand what the function is doing
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, I would say that this refactor does not necessarily improve the readability, it only gets rid of the code duplication
) | ||
|
||
if suite_action is not None: | ||
page_path: WikiPagePath = wiki_page.get_page_crawler().get_full_path( |
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 factor out these few lines into their own function to improve readability, for example "write_page" or similar
Code refactoring from Group5