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

346 Коммитов

Автор SHA1 Сообщение Дата
Leo McArdle b8b9fa6c26
Merge branch 'main' into webpack 2021-12-16 12:44:14 +00:00
Leo McArdle e25c549972 fix webpack imports in mocha tests
https://github.com/mozilla/sumo-project/issues/895
2021-12-16 11:23:17 +00:00
Tasos Katsoulas 6d5a5dfade Rename old references to main branch 2021-11-24 12:25:51 +02:00
Leo McArdle 3134dec758
Merge branch 'master' into webpack 2021-10-18 13:56:24 +01:00
Leo McArdle 7526e25aee add a form for premium products which submits a ticket to zendesk 2021-09-03 14:41:21 +01:00
Leo McArdle a5d506f2bc
Merge branch 'master' into webpack 2021-08-04 12:11:20 +01:00
Leo McArdle 4f0f4dcbf2
update docs to match our new frontend stack (#4860)
https://github.com/mozilla/sumo-project/issues/885
2021-08-04 11:52:54 +01:00
Tasos Katsoulas 2ef9d706a2
Cleanup DMS and secrets 2021-07-14 17:28:23 +03:00
Leo McArdle 93b859f0ea
add updated docs for how to enable elevated browser permissions (#4467)
* add updated docs for how to enable elevated browser permissions

* add clause explaining what the permissions do
2021-06-10 14:28:40 +03:00
Leo McArdle 245cb9dd3e
add advanced search documentation (#4800) 2021-05-28 17:48:17 +01:00
Tasos Katsoulas 37720f2faa Remove monkeypatching for ES7. 2021-05-28 13:44:49 +03:00
Tasos Katsoulas 3ebcbd5382 Remove ES2 code-base. 2021-05-26 18:09:31 +03:00
Tasos Katsoulas ddca6c5517 Drop advanced search functionality. 2021-04-28 11:30:21 +03:00
Tasos Katsoulas 89adc9f89a Remove e2e tests. 2021-04-06 15:23:19 +03:00
Leo McArdle 35d51fc368
establish guideline for use of html in {% trans %} blocks (#4729)
switch to this style in users/auth.html
2021-03-26 08:25:28 +00:00
Tasos Katsoulas 8d323c9432 Remove references of customercare throughout the project. 2021-03-23 17:14:45 +02:00
Leo McArdle 36865f04d4
allow logging in with only a username in local dev (#4710)
https://github.com/mozilla/sumo-project/issues/583
2021-03-11 13:10:58 +00:00
Leo McArdle 2428573b49
add support for synonyms and character mappings to search (#4666)
- store synonyms in files
- add reload synonyms option to es7_init
- use non-oss kibana and elasticsearch images to get the reload analyzer api
- add command to create an elastic cloud bundle out of synonym files
- protect specific stop-word containing phrases from tokenization with char mappings
- add docs

https://github.com/mozilla/sumo-project/issues/721
https://github.com/mozilla/sumo-project/issues/748
2021-03-01 18:01:44 +00:00
Leo McArdle a5855b3de3
modify django-pipeline config to apply babel to select files (#4682)
update babel to latest version

https://github.com/mozilla/sumo-project/issues/768
2021-02-17 14:41:53 +00:00
Leo McArdle 4051ed93f3
add out of order snippet to search v2 dev tips (#4677) 2021-02-15 14:45:40 +00:00
Leo McArdle ff046cf2de
update instant search testing docs to point at prod (#4673) 2021-02-11 10:30:15 +00:00
Leo McArdle d4a842616d
seperate bulk-count es7_reindex option into sql and elastic ones (#4657)
set defaults which shouldn't cause timeouts on prod

https://github.com/mozilla/sumo-project/issues/742
2021-02-02 14:49:42 +00:00
Tasos Katsoulas 95dad4fb2b Enable ES7 console logging for local dev. 2021-02-01 11:03:46 +02:00
Leo McArdle fca46e08b6
add docs explaining how to enable search v2 in instant search on staging (#4623) 2020-12-14 11:37:16 +00:00
Leo McArdle bda0e2e493
Merge remote-tracking branch 'origin/master' into elasticsearch-v7 2020-12-10 10:58:55 +00:00
Leo McArdle ec0d7ffa2a
amend docs based on feedback from contributors 2020-12-07 18:01:40 +00:00
Leo McArdle 11c671ba85
Merge branch 'master' into elasticsearch-v7 2020-11-02 13:37:36 +00:00
Leo McArdle 8acafbf017
add answer_content to question document (#4573)
improve docs and comments
2020-10-29 10:58:31 +00:00
Leo McArdle 27978f0aff
use timezone-aware datetimes in search v2 (#4548) 2020-10-23 14:16:03 +01:00
Leo McArdle 25eb7120c5
enable django debug toolbar when USE_DEBUG_TOOLBAR=True (#4561) 2020-10-23 11:42:41 +01:00
Leo McArdle c79c278ea8
disable dynamic mapping and add docs for updating live index (#4559) 2020-10-22 10:44:27 +01:00
Leo McArdle 03b00c454a
small revisions to indexing performance optimisations (#4549)
add tests to ensure aggregations return the correct result
fix tests by:
 - only doing live indexing if ES_LIVE_INDEX=True
 - reverting removal of SEARCH_CACHE_PERIOD in d7d8af1
2020-10-16 15:12:11 +01:00
Tasos Katsoulas b3978ea277
Merge pull request #4533 from LeoMcA/elasticsearch-v7-index-perf
improve indexing performance even more
2020-10-08 18:11:00 +03:00
Leo McArdle 4f3fce639d
add get_queryset to SumoDocument to allow subclasses to optimise bulk indexing
implement it on the following documents:
(time to index 10000 / sql queries executed per 100)

QuestionDocument:
before: 0m26.192s / 201
after:  0m12.801s / 2

AnswerDocument:
before: 0m51.871s / 501
after:  0m14.140s / 3

ProfileDocument:
before: 0m34.018s / 301
after:  0m11.356s / 3

ForumDocument:
before: 0m13.332s / 101
after:  0m6.579s  / 1
2020-10-02 14:31:11 +01:00
Vipul 9b7d46b570
[docs] mention complete command (#4521)
* [docs] mention complete command

New user, who is setting-up development environment may get confused,
where they should run commands related to `manage.py` script. So it
would be nice idea to mention complete commands, whenever it could be
possible.

First, we have to make sure user gets properly exit from web's bash
shell in "Get search working" section by running `exit` command.

* [docs] change format of 'Get search working' section

Change format of 'Get search working' section, to make it consistent
with reset of the document.

* [docs] switch to https URL

Its always a good idea to prefer https over non-https URL.
2020-09-16 16:36:35 +03:00
Vipul Kumar 91645ed37e
[Fix] set pip's timeout time
If user has low bandwidth, they may get a timeout error while
downloading Python packages from PyPi repository. This happens because
default timeout of pip is set to 60 seconds, which is very less for
large batch process; and it can be changed using "PIP_DEFAULT_TIMEOUT"
environment variable or by passing --default-timeout as an argument to
pip command[1].

[1]: https://pip.pypa.io/en/stable/user_guide/#environment-variables

Docker's "ARG" instruction allows us to pass variable's value at build
time using the `--build-arg <varname>=<value>` flag to `docker
build`[2][3] and `docker-compose build`[4] command. Default value of
"PIP_DEFAULT_TIMEOUT" variable is still set to 60 seconds because bogus
value may increase production built time which we want to fail pretty
fast, if we're not able to fetch something from PyPi. We can set it to 5
mins by running `docker build --build-arg PIP_DEFAULT_TIMEOUT=300` and
`docker-compose build --build-arg PIP_DEFAULT_TIMEOUT=300` for `docker`
and `docker-compose` command respectively.

[2]: https://vsupalov.com/docker-build-time-env-values/
[3]: https://docs.docker.com/engine/reference/builder/#arg
[4]: https://docs.docker.com/compose/reference/build/

Now we can change default timeout value of pip, by pass PIP_TIMEOUT as
an argument[1]. For example, if we want to set timeout value to 5
minutes, run `make build PIP_TIMEOUT=300` or `make build-ci
PIP_TIMEOUT=300` command; default value of PIP_TIMEOUT is 60 which also
the default timeout value of pip, itself.

[5]: https://stackoverflow.com/a/2826178

We only need to use 'PIP_TIMEOUT' variable, where 'base' image is
building because only 'base' image is fetching a lots of Python packages
from PyPi.

And add instruction about, how user can change default timeout value of
pip in the documentation.

Resolves: #4511
2020-08-29 06:50:48 +00:00
Leo McArdle d003b76c75
add mailcatcher container and docs (#4435) 2020-07-17 18:54:05 +01:00
Leo McArdle 44b85201fb update docs 2020-07-16 11:46:42 +01:00
Tasos Katsoulas e1354a0929 Update a few packages. 2020-06-01 19:13:46 +03:00
Tasos Katsoulas 9b4e14d841 Upgrade to python 3.8. 2020-06-01 19:12:47 +03:00
Ben Spaulding eb274de12b Upgrade to Celery 4.4 2020-06-01 12:53:32 +03:00
Ben Spaulding 80565e6faf Use pip-compile-multi to manage dependencies
This makes dependency management much easier as we continue to upgrade
packages for Celery 4 and Django 2.2.
2020-06-01 12:52:57 +03:00
Ben Spaulding 060a4b2408 Update some docs regarding strings. 2020-05-29 16:46:45 +03:00
Ben Spaulding 7a9979b781 Remove django-celery dependency
It is not Django 2.2 compatible, and it is not needed by celery
any more anyway.

mozilla/sumo-project#136
2020-05-29 16:29:53 +03:00
Tasos Katsoulas 4bae2d397a Bump docker image and update doc refs. 2020-05-27 16:09:03 +03:00
Ben Spaulding eaf07f5e46 2to3 unicode fix. 2020-05-27 15:41:53 +03:00
Leo McArdle 7a1d6765c0
update docs to reflect working dennis command (#4339) 2020-04-22 16:41:55 +01:00
Tasos Katsoulas f2d7e0192e Remove references to the troubleshooting addon. 2020-03-13 16:07:25 +02:00
Tasos Katsoulas 93cf3bf64f
Remove gulp from the project. 2019-11-28 22:17:32 +02:00
Tasos Katsoulas 22230f7a86
Remove bower from the project. 2019-11-27 16:49:52 +02:00