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

fix xlsx report for diff #644

Merged
merged 9 commits into from
Dec 23, 2024
Merged

fix xlsx report for diff #644

merged 9 commits into from
Dec 23, 2024

Conversation

babenek
Copy link
Contributor

@babenek babenek commented Dec 22, 2024

Description

Please include a summary of the change and which is fixed.

  • Add deprecation for main scan function
  • Fix Bug for xlsx of diff
  • Modify report names of json for diff (py3.8 pathlib does not support stem manipulation)
  • Update tests for diff report verification
  • Use prefix .added instead name ends _added for JSON diff reports

How has this been tested?

Please describe the tests that you ran to verify your changes.

  • UnitTest
  • Benchmark

@babenek babenek marked this pull request as ready for review December 22, 2024 09:41
@babenek babenek requested a review from a team as a code owner December 22, 2024 09:41
Comment on lines 276 to 284
json_filename: Optional[str] = None,
xlsx_filename: Optional[str] = None) -> int:
"""Scan content_provider data, print results or save them to json_filename is not None

Args:
args: arguments of the application
content_provider: FilesProvider instance to scan data from
json_filename: json type report file path or None
xlsx_filename: xlsx type report file path or None
json_filename: (Deprecated) json type report file path or None
xlsx_filename: (Deprecated) xlsx type report file path or None
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems json_filename and xlsx_filename can be removed from scan()..
Could you please consider to remove those two parameters?

@@ -270,20 +271,30 @@ def get_json_filenames(json_filename: str):
return added_json_filename, deleted_json_filename
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems there get_json_filenames() doesn't seem to be used anywhere..
Could you please remove this function?

@babenek babenek requested a review from csh519 December 23, 2024 12:50
Copy link
Collaborator

@csh519 csh519 left a comment

Choose a reason for hiding this comment

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

Thank you for fix the bug of xlsx file diff.

LGTM 👍

Copy link
Contributor

@kmnls kmnls left a comment

Choose a reason for hiding this comment

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

Agree

@babenek babenek merged commit f5f9656 into Samsung:main Dec 23, 2024
32 checks passed
@babenek babenek deleted the xlsxreport branch December 23, 2024 14:28
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.

3 participants