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

[client] Diff "resolved" reports of remote to local #3129

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Jan 11, 2021

  1. Analyze a project to "reports" dir.
  2. Store it in run named "hello"
  3. CodeChecker cmd diff -b reports -n hello --resolved

This scenario shows all reports which is a bad behavior.

When server side fetches a set of reports from database, it uses a filter
object. If "reportHash" filter attribute is empty list, it means that no
report hash was selected for diffing, i.e. it takes all reports into
account.

"-o", "json"]

out = self.run_cmd(diff_cmd)
self.assertEqual(json.loads(out), [])
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix linter errors.

1. Analyze a project to "reports" dir.
2. Store it in run named "hello"
3. CodeChecker cmd diff -b reports -n hello --resolved

This scenario shows all reports which is a bad behavior.

When server side fetches a set of reports from database, it uses a filter
object. If "reportHash" filter attribute is empty list, it means that no
report hash was selected for diffing, i.e. it takes all reports into
account.
Copy link
Contributor

@csordasmarton csordasmarton left a comment

Choose a reason for hiding this comment

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

LGTM!

@csordasmarton csordasmarton merged commit 64ccd97 into Ericsson:master Jan 12, 2021
@bruntib bruntib deleted the empty_base_diff branch January 13, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants