Skip to content
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

Add GeneralReports.generate_reports() function #665

Merged
merged 1 commit into from
Mar 8, 2019

Conversation

zurk
Copy link
Contributor

@zurk zurk commented Mar 6, 2019

First PR for the issue: #658
PR priority: low.

There are a lot of things to improve in our report generation system. When my main issue was blocked I refactor 1 thing: possibility to generate as many reports as you want with GeneralReport class. Before it was hardcoded to train, test and model reports.

Logic is unchanged. Just one minor thing: Model report generated only in aggregate mode.
make report-quality logic completely the same.

def wrapped_capture_quality_report(*args, **kwargs):
if getattr(report, name) is not None:
raise RuntimeError("%s should be called only one time." % func.__name__)
def wrapped_capture_quality_reports(*args, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One day we should remove this function patching at all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also do not like it.
If we found any way to access comments from lookout-sdk without parsing logs we can easily remove this decorator.

@vmarkovtsev vmarkovtsev merged commit df9d1b2 into src-d:master Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants