зеркало из https://github.com/mozilla/treeherder.git
Bug 1555864 - Fix bugfiler's use of bugzilla's product/component search (#5020)
Bugfiler used an undocumented bugzilla api to search for product/component pairs, and bugzilla recently moved the api endpoint, breaking the bug filer. This patch points to the correct endpoint.
This commit is contained in:
Родитель
4ef87442b0
Коммит
2e5c8deb5f
|
@ -54,7 +54,7 @@ describe('BugFiler', () => {
|
|||
);
|
||||
|
||||
fetchMock.mock(
|
||||
`${bzBaseUrl}rest/prod_comp_search/firefox%20::%20search?limit=5`,
|
||||
`${bzBaseUrl}rest/prod_comp_search/find/firefox%20::%20search?limit=5`,
|
||||
{
|
||||
products: [
|
||||
{ product: 'Firefox' },
|
||||
|
|
|
@ -233,7 +233,7 @@ export class BugFilerClass extends React.Component {
|
|||
|
||||
if (productSearch) {
|
||||
const resp = await fetch(
|
||||
`${bzBaseUrl}rest/prod_comp_search/${productSearch}?limit=5`,
|
||||
`${bzBaseUrl}rest/prod_comp_search/find/${productSearch}?limit=5`,
|
||||
);
|
||||
const data = await resp.json();
|
||||
const products = data.products.filter(
|
||||
|
|
Загрузка…
Ссылка в новой задаче