Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

staticanalysis/bot: For Coverity analysis when calling is_publishable also use the method defined in the base class. #2098

Merged
merged 1 commit into from
May 13, 2019

Conversation

abpostelnicu
Copy link
Contributor

In order to avoid bugs like this we should also call the base method of is_publishable.

@abpostelnicu abpostelnicu requested a review from La0 May 13, 2019 14:00
@abpostelnicu abpostelnicu self-assigned this May 13, 2019
Copy link
Contributor

@La0 La0 left a comment

Choose a reason for hiding this comment

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

To do that, you simply need to remove is_publishable from CoverityIssue. The parent class implementation will call validates: update its inner logic to match the current version and it will work.

Also the comment on is_publishable says it overrides the parent... then use it 😃

@abpostelnicu abpostelnicu force-pushed the cov_in_patch branch 2 times, most recently from c3e0c8d to 9dcd25e Compare May 13, 2019 15:24
Copy link
Contributor

@La0 La0 left a comment

Choose a reason for hiding this comment

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

Patch look good, but there is an issue about the new unit test: the publishable status is changed by your PR !

… also use the method defined in the base class.
@La0 La0 merged commit d243a08 into mozilla:master May 13, 2019
@abpostelnicu abpostelnicu deleted the cov_in_patch branch May 13, 2019 16:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants