Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

DB simplification #83

Merged
merged 2 commits into from
Jun 13, 2018
Merged

DB simplification #83

merged 2 commits into from
Jun 13, 2018

Conversation

veruu
Copy link
Contributor

@veruu veruu commented Jun 12, 2018

#50 contains removal of get_series_result from Patchwork logic, but since no DB is passed to the function checking it in the first place the pull is good to be separate.

This should start the fixes for issue #80

@coveralls
Copy link

coveralls commented Jun 12, 2018

Pull Request Test Coverage Report for Build 238

  • 1 of 4 (25.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-1.8%) to 52.946%

Changes Missing Coverage Covered Lines Changed/Added Lines %
sktm/init.py 0 1 0.0%
sktm/db.py 1 3 33.33%
Files with Coverage Reduction New Missed Lines %
sktm/db.py 2 97.56%
Totals Coverage Status
Change from base Build 236: -1.8%
Covered Lines: 638
Relevant Lines: 1205

💛 - Coveralls

veruu added 2 commits June 13, 2018 17:12
The function was previously used to check test results for Patchwork2
instances but it's not used anymore. Remove it, together with its tests.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Data are inserted into the table, only to never be read. Results are
supposed to be reported to Patchwork and emails so there's no need to
keep the table. We still save tested patches to check for last tested
patch, but we don't need associated data.

Removal of the table allows us to simplify commit_patchtest method
(renamed to commit_tested) and delete it's test since no data is
committed in the method.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Copy link
Contributor

@major major left a comment

Choose a reason for hiding this comment

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

Clean removal of unused code. Looks good.

@major major merged commit 0e8723b into cki-project:master Jun 13, 2018
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.

3 participants