Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
jgraham 32029361c8 Bug 1283859 - Fix quoting of MATCH ... AGAINST in bugscache search (#1914)
It appears that the intent of this code is to to a phrase match of the
search string against the bug summary for relevance matching. However
the code incorrectly tried to quote the string and as a result failed
to handle special characters in the AGAINST clause (e.g. + - ~ >
etc.). This change simply removes any existing quote characters from
the string and places the entire thing in quotes. Per the MySQL
documentations:

 > A phrase that is enclosed within double quote (") characters
   matches only rows that contain the phrase literally, as it was
   typed
2016-10-11 18:27:56 +01:00
William Lachance ef6833891f Bug 1289574 - Handle various edge cases when importing bugs
* UTF-8 characters in summary
* Summary exceeds 255 characters
2016-07-27 16:00:23 -04:00
Ed Morley 886022e024 Bug 1240809 - Switch BzAPIBugProcess to using fetch_json 2016-05-27 11:46:26 +01:00
Cameron Dawson 6ce43bf034 Bug 1177519 - Back end changes for autoclassification work 2016-04-19 19:16:07 +01:00
Mauro Doglio 8f167ba49f Bug 1219922 - Stop using the refdata test fixture
I haven't found the exact reason why the tests were failing but it must
be a test isolation problem because they were passing individually.
I debugged this issue disabling the tests backwards starting from the
first failure and I found out that test_bz_api_process was the offender.
The test itself is not doing anything wrong but the refdata fixture
used to setup the test seems to be the root cause..
I replaced the two method calls with their orm counterpart and the
problem disappeared.
2015-10-30 13:49:24 +00:00
Ed Morley 90ba77e596 Bug 1192801 - Remove per-file MPL boilerplate since it's unnecessary
The MPL 2.0 terms state that as long as a LICENSE file is present, the
per-file header text is not required. See "Exhibit A" at the end of:
https://www.mozilla.org/MPL/2.0/
2015-08-18 23:32:11 +01:00
Ed Morley 1c00ccfcc7 Bug 1192661 - Clean up Python import order
Created using |isort -p tests -rc .| and a couple of manual tweaks.

The order is:
* futures
* std library
* third party packages
* local imports
* relative local imports
...with each group ordered with "import x" before "from x import y", and
then alphabetically.
2015-08-10 18:33:49 +01:00
Ed Morley 5e0f36ae91 Bug 1133482 - Always ensure files are closed after being open()ed 2015-03-03 17:13:34 +00:00
Ed Morley f5c0b53e0c Bug 1059814 - Whitespace pep8 fixes
Generated using:
autopep8 --in-place --recursive .

Before:
$ pep8 | wc -l
1686

After:
$ pep8 | wc -l
57

A later autopep8 run will be performed using --aggressive, which makes
non-whitespace changes too.
2015-02-15 14:52:31 +00:00
Ed Morley 05cf876d4a Bug 1078239 - Fix bug suggestions for recently modified, resolved bugs
We divide bug suggestions for a search term into 'open_recent' and
'all_others'. The former is supposed to be group #1 below, and the
latter groups 2-4, with the summation of the two groups corresponding
to every bug whose summary matches the search term.

1) Open + recently modified
2) Open + not recently modified
3) Resolved + recently modified
4) Resolved + not recently modified

However prior to this patch group #3 was not being returned at all, when
it should have been included in all_others.
2014-11-10 15:51:06 +00:00
Mauro Doglio 0d5b02daf5 Merge pull request #279 from tojonmz/add-headers
Bug 1090689 - Add MPL2.0 headers to the repo
2014-11-10 14:46:25 +00:00
Ed Morley 0d586fd2f1 Bug 1072377 - Add another test for truncated test name bug searches 2014-11-10 13:50:02 +00:00
Ed Morley 93e0c98999 Bug 1091643 - Add tests for SQL LIKE escaping of search_term
Test that we are treating the search term literally in the LIKE
statement, and so have correctly escaped any underscores, percent signs
or escape symbols.
2014-11-10 13:50:02 +00:00
Ed Morley b2ffa4d61f Bug 1091643 - Add test for truncated test name bug searches 2014-11-10 13:50:01 +00:00
Jonathan French dbb4d11e09 Bug 1090689 - Add MPL2.0 headers to the repo 2014-11-03 13:06:03 -05:00
Jonathan Eads 5ee8880971 added explicit disconnect 2014-06-02 13:48:58 -07:00
mdoglio 693c81a2bb fix the way bug suggestions are stored and retrieved 2013-12-05 16:26:20 +01:00
mdoglio 5eea00d5b8 add bugscache ingestion and bugs suggestions artifacts 2013-11-21 14:31:57 +00:00
mdoglio c48ba29d06 merging updates 2013-11-21 14:29:19 +00:00