Skip to content

Fix ILIKE parameters quoted params #2375

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

Merged

Conversation

antgonza
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Oct 25, 2017

Codecov Report

Merging #2375 into release-candidate will increase coverage by <.01%.
The diff coverage is 97.5%.

Impacted file tree graph

@@                  Coverage Diff                  @@
##           release-candidate    #2375      +/-   ##
=====================================================
+ Coverage              93.76%   93.77%   +<.01%     
=====================================================
  Files                    163      163              
  Lines                  18647    18668      +21     
=====================================================
+ Hits                   17485    17505      +20     
- Misses                  1162     1163       +1
Impacted Files Coverage Δ
qiita_db/test/test_processing_job.py 99.81% <100%> (ø) ⬆️
qiita_db/processing_job.py 92.6% <94.11%> (-0.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbde992...bee4a9b. Read the comment docs.

Copy link
Contributor

@josenavas josenavas left a comment

Choose a reason for hiding this comment

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

Just a couple of comments.

params = [command.id] + params
TTRN.add(sql, params)
else:
TTRN.add(sql.format(""), [command.id])
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mind adding a comment here on why there is a need for a call to format with an empty string? I had to read the 3 or 4 times until I realized why it was needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

k, will add.

@@ -948,5 +953,27 @@ def test_remove_error(self):
tester.remove(tester.graph.edges()[0][0])


@qiita_test_checker()
class ProcessingJobDuplicated(TestCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a specific reason why you've created a different class here? That triggers a new reset of the DB, it will be great if we can avoid a reset of DB unless strictly necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

As we are setting all the jobs to error the other tests are failing. I think we have 2 options: A. reset back but it seemed ugly to me or B. have it as a different class so the reset happens, this seemed better to me

Copy link
Contributor

Choose a reason for hiding this comment

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

Nah, it's okay - I just wanted to make sure that there was an actual reason to create the class.

@josenavas josenavas merged commit 242741d into qiita-spots:release-candidate Oct 25, 2017
@antgonza antgonza deleted the fix-ilike-parameters branch February 17, 2018 15:04
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