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

68 Коммитов

Автор SHA1 Сообщение Дата
Emil Ghitta a25dd431d4
- Updating yml file (#5802)
- Adding playwright framework
2023-12-04 09:04:17 -08:00
Ryan Johnson 11c1284e2c
update django to 4.2.7 2023-12-02 21:34:57 -08:00
Mathieu Leplatre 34f094f583
Enable endpoints and logging from our Dockerflow standard (#5794)
* Enable endpoints and logging from our Dockerflow standard
2023-11-29 11:11:30 +02:00
Tasos Katsoulas f9be3e6639 Initial mkdocs scaffolding 2023-11-23 15:58:52 +02:00
Ryan Johnson 28238acfbd
flip the switch to postgres (#5609)
* switch database to postgres

* modify kitsune/dashboards/readouts.py to work with postgres

* modify dashboards/models.py to work with postgres

* modify cache_most_unhelpful_kb_articles.py to work with postgres

* modify wiki/views.py to work with postgres

* modify kpi/api.py to work with postgres

* modify auto_archive_old_questions.py to work with postgres

* ignore email when falsy in FXAAuthBackend.update_user

* fix NotificationsTests.test_solution_notification

* account for postgres ordering of num_visits

* fix question num_votes_past_week when no votes

* fix order_by within the fix_current_revisions command

* improve performance of usernames API

* ensure null values are ordered as expected (1464)

* ensure postgres uses index for helpful votes query (1485)

* ensure announcement query uses timestamp indexes (1492)

* ensure HelpfulVote.created queries use DB index (1492)

* ensure forums.Post.created queries use DB index (1492)

* ensure Question.created queries use DB index (1492)

* ensure QuestionVote.created queries use DB index (1492)

* ensure Question.updated queries use DB index (1492)

* ensure Answer.created/Revision.created queries use DB index (1492)

* limit expensive KPI queries to the last 365 days
2023-11-09 13:33:32 -08:00
Tasos Katsoulas 80b975c531 Revert "Update libraries (#5747)"
This reverts commit 2d58912085.
2023-11-08 15:33:30 +02:00
Tasos Katsoulas 727b9860c6
Revert "update all libraries" 2023-11-08 15:32:29 +02:00
Ryan Johnson 6449e0b848
update all libraries 2023-11-06 15:18:44 -08:00
Tasos Katsoulas 2d58912085
Update libraries (#5747)
* Update libraries

* Update Pillow constant

* remove zope-interface from pyproject.toml

---------

Co-authored-by: Ryan Johnson <rjohnson@mozilla.com>
2023-11-06 08:53:13 -08:00
dependabot[bot] 3a32da0f06
Bump django from 4.1.12 to 4.1.13
Bumps [django](https://github.com/django/django) from 4.1.12 to 4.1.13.
- [Commits](https://github.com/django/django/compare/4.1.12...4.1.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 21:46:27 +00:00
dependabot[bot] 9ac8d745e6
Bump werkzeug from 2.2.3 to 3.0.1
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 2.2.3 to 3.0.1.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/2.2.3...3.0.1)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 19:19:44 +00:00
Ryan Johnson 3659ca0ba3
update to django 4.1.12 2023-10-16 14:33:14 -07:00
André Honeiser c9d058405a
sentry_sdk maintenance (#5674)
* chore: don't send traces and profiles to sentry

* chore: update sentry_sdk to 1.32.0

---------

Co-authored-by: Ryan Johnson <rjohnson@mozilla.com>
2023-10-13 08:27:32 -07:00
dependabot[bot] 22f210fc56
Bump gevent from 22.10.2 to 23.9.1
Bumps [gevent](https://github.com/gevent/gevent) from 22.10.2 to 23.9.1.
- [Release notes](https://github.com/gevent/gevent/releases)
- [Changelog](https://github.com/gevent/gevent/blob/master/docs/changelog_pre.rst)
- [Commits](https://github.com/gevent/gevent/compare/22.10.2...23.9.1)

---
updated-dependencies:
- dependency-name: gevent
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 19:17:49 +00:00
emilghittasv 2daeb17da2 - Added pytest-rerunfailures (to rerun test failures) and pytest-check (for soft asserts)
- Updated the base_page.py file
- Updated the test_utilities.py file. Now reading test data from json, loading GH secrets & implemented the fxa verification code fetching mechanism.
- Updated docker-compose.yml to contain selenoid instead of Selenium Grid.
- Added browsers.json for Firefox and Chrome Selenoid containers management.
- Added different flows for test usage: aaq_flo
(for AAQ submission flow), add_kb_article_flow.py (for KB articles submission), auth_flow.py (for SUMO auth flow), messaging_system_flow.py (flow for sending user messages), edit_profile_data_flow.py (for user data edit and fields clearence)
- Updated and created new messages and pages.
- Added test data
- Added a couple of tests to include coverage over contribute pages, footer section, homepage, top navbar, messaging system & user page tests
- Updated the conftest.py file. Also added functionality to create and attach screenshots to report for failed tests
- Updated pytest.ini to update markers
- Update workflow to have tests trigger at 8:00 AM UTC+3. Each Monday, Wednesday and Friday.
2023-09-20 14:41:54 +03:00
Ryan Johnson b586aa8fa0
provide django-email-bandit as an email option for testing 2023-09-05 16:39:19 -07:00
dependabot[bot] 2aafb1f852
Bump django from 4.1.9 to 4.1.10
Bumps [django](https://github.com/django/django) from 4.1.9 to 4.1.10.
- [Commits](https://github.com/django/django/compare/4.1.9...4.1.10)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 00:11:11 +00:00
Ryan Johnson 697c6e4020 update Django to 4.1.9 2023-05-04 09:49:35 -07:00
Ryan Johnson 5cc8ec6cc8 remove unrelated package upgrades 2023-04-19 11:38:10 -07:00
Tasos Katsoulas e83dec8180 Sync poetry lock after rebasing
- remove poetry from requirements
2023-04-11 13:47:22 +03:00
emilghittasv 4691b58956 Obtain docker's IP
- Added the docker package dependency.
2023-04-11 13:40:46 +03:00
emilghitta 7c63c738dd Added the base of our Selenium UI framework:
- Added the core classes (Base Page & Test Utilities).
- Added the messages classes for Homepage and Contribute page.
- Added the pages classes for (Contribute & Homepage pages and Footer & Top Navbar sections).
- Added the conftest.py file.
- Added a simple test file as a "POC" which contains two tests (test_homepage.py).
- Integrated the logging mechanism with the HTML reporting.
- Added the pytest.ini file and defined our markers.
- Added the following dependencies to poetry: pytest selenium webdriver-manager pytest-html pytest-xdist
- Added .pytest_cache/, geckodriver.log and chromedriver.log to be ignored by git.
2023-04-11 13:37:14 +03:00
dependabot[bot] e2759b40f7
Bump redis from 4.5.3 to 4.5.4 (#5427)
Bumps [redis](https://github.com/redis/redis-py) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v4.5.3...v4.5.4)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 08:39:47 -07:00
dependabot[bot] a3a1181c1a
Bump redis from 4.5.1 to 4.5.3 (#5423)
Bumps [redis](https://github.com/redis/redis-py) from 4.5.1 to 4.5.3.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v4.5.1...v4.5.3)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 15:13:48 -07:00
dependabot[bot] 548d679f3e
Bump werkzeug from 2.2.2 to 2.2.3 (#5402)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/2.2.2...2.2.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 16:53:46 -08:00
dependabot[bot] 767661e553
Bump django from 4.1.6 to 4.1.7 (#5401)
Bumps [django](https://github.com/django/django) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/4.1.6...4.1.7)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 13:27:13 -08:00
Ryan Johnson c96a84b110
add latest python updates (#5386)
* add latest python updates

* update pre-commit in circleci config to match poetry
2023-02-03 09:32:00 -08:00
Tasos Katsoulas ccb24faad3 Upgrade black. 2023-02-03 16:44:33 +02:00
Ryan Johnson a36fd49f24
restore poetry python version constraint (#5384) 2023-02-02 16:56:20 -08:00
Ryan Johnson ba2f95a95d
update all dependencies (#5382)
* update all non-dev deps except bleach & py-wikimarkup

* remove pip from deps & update version in Dockerfile

* update poetry to the latest version

* replace pytz with built-in code

* remove pytz package

* move to Python 3.11

* update to just-released pip 23.0

* update bleach and py-wikimarkup

* update all dev dependencies

* update to django 4.1.6 (released today)

* remove python as a dependency of itself
2023-02-02 08:48:18 -08:00
André Honeiser 2706560797
feature(csp|gcs): make gcs backends possible, update csp for gcp 2022-12-06 16:00:23 +01:00
Smith Ellis 42c792e7c9 Django4
* update required dependencies (django-taggit, django-statici18n,
    django-activity-stream, apscheduler)
* update django-activity-stream and fix deprecated signals
* django.utils.http urlquote change to urllib.parse quote
* replace every ugettext, ungettext, ugettext_lazy with gettext,
    ngettext and gettext_lazy
* replace url() with re_path()
* force_text changed to force_str
* smart_text changed to smart_str
* middleware classes now require get_request - added/updated as needed
2022-12-06 15:36:59 +00:00
Smith Ellis 18571dd771 Remove django-adminplus
Removee adminplus refs in monkeypatch
Remove kadmin and adminplus from settings
purge kadmin folder/files
2022-11-22 13:39:07 +00:00
Smith Ellis 8137bcc83f bump oidc to 3 2022-11-15 19:06:14 -05:00
Ryan Johnson a3a62afb5e
replace django-authority with django-guardian (#5279) 2022-11-14 09:41:05 -08:00
dependabot[bot] b4b6a87c32
Bump django from 3.2.15 to 3.2.16
Bumps [django](https://github.com/django/django) from 3.2.15 to 3.2.16.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.15...3.2.16)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 11:17:41 +00:00
Tasos Katsoulas 5fbd32fa25
Bump django-cors-headers 2022-10-14 16:54:18 +03:00
Tasos Katsoulas a652dd876f
Add graphene-django in kitsune 2022-10-14 16:54:18 +03:00
Tasos Katsoulas f670157e58
Bump pip and poetry 2022-10-14 16:54:16 +03:00
Ryan Johnson ae74861fd6 replace oauth2client with google-auth 2022-10-13 16:43:41 -07:00
Ryan Johnson 66e868593d
set minimum jinja2 and django-jinja versions (#5255) 2022-10-13 16:21:37 -07:00
smith 569f2f4b61
[1012] Puente removal (#5207)
* Remove puente

- add babel.py
- add merge and extract management commands
- add Babel to poetry requirements
- alter settings.TEMPLATES to use NAME instead of fallback

* Puente Removal

* simplify the configuration of the extraction options

* simplify the merge command

* update babel and remove puente

* adjustments to initialization during merge

* eye candy for successful extraction message

Co-authored-by: Ryan Johnson <rjohnson@mozilla.com>
2022-10-13 12:54:51 -07:00
Tasos Katsoulas b5c56e1c4e
Bump protobuf to 3.19.5 2022-09-26 12:35:32 +03:00
Tasos Katsoulas af654b12a8
Update oauthlib. 2022-09-26 12:33:54 +03:00
Tasos Katsoulas a7b89c66c8
Remove django-pipeline 2022-09-26 12:18:14 +03:00
Ryan Johnson 2fec30aeed
add pylint-django to our dev dependencies (#5223) 2022-09-13 14:54:49 -07:00
dependabot[bot] 19a83dee0d
Bump django from 3.2.14 to 3.2.15
Bumps [django](https://github.com/django/django) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.14...3.2.15)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 16:18:28 +00:00
dependabot[bot] 4c165062fd
Bump lxml from 4.8.0 to 4.9.1
Bumps [lxml](https://github.com/lxml/lxml) from 4.8.0 to 4.9.1.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.8.0...lxml-4.9.1)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 21:34:09 +00:00
Tasos Katsoulas 70bb596e92
Bump dennis to version 1.1 2022-07-06 11:18:15 +03:00
dependabot[bot] fc32005003
Bump django from 3.2.13 to 3.2.14
Bumps [django](https://github.com/django/django) from 3.2.13 to 3.2.14.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.13...3.2.14)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 22:50:30 +00:00