Francesco Lodolo
1f7b2929d6
Use isort to format Python imports ( #3251 )
2024-06-05 06:09:35 +02:00
Francesco Lodolo
d650739031
Replace black, flake8, pyupgrade with ruff for Python linting and formatting ( #3248 )
2024-06-03 19:08:47 +02:00
Harmit Goswami
a19ec1fb0f
Upgraded @codemirror dependencies to latest versions ( #3250 )
...
Co-authored-by: Harmit Goswami <hgoswami@MacBook-Pro.local>
2024-05-31 17:32:55 +02:00
Matjaž Horvat
e0f9029b79
Add equal weight to the No, thanks button on the Email consent page ( #3242 )
2024-05-30 22:15:55 +02:00
Harmit Goswami
d9679bb494
Upgraded Chart.js to version 4.4.2 ( #3233 )
...
* Upgraded Chart.js to v4.4.2
* Got chart legends to appear again, with incorrect CSS
* Fixed major chart legend styling issues
* Added cubic interpolation and gradients back
* Removed chart variable assignments that caused linting errors
* Changed to local import for Chart.js, Moment.js, and Chart-adapter-Moment.js
* Loaded Chart.js through Django pipeline instead of base.html
* Fixed major styling bugs for locale/insights charts
* Fixed linting issue in insights_tab
* Fixed major styling issues for insights charts
* Fixed linting errors
* Fixed profile chart styling, clipping issues for all graphs
* Fixed formatting issue in Profile.js
* Fixed styling issues for tooltips on all charts
* Fixed tooltip label styling, disabled graphs bug
* fixed rander issue for insights and date formatting
* linting fixes
* Refactored HTML Legend logic
* linting fixes
* fixed display bug for insights charts
* Changed moment.js to date-fns.js
* Fixed tooltip import for date-fns and alt-click legned bug
* Improved line visibility on insights chart, standardized thousands seperator for all locales
* Implemented review comments, refactored labelColor for tooltips
* Refactored logic for changing tooltip label colors
* Refactored htmlLegendPlugin logic for better code readability
* Simplified anonymous function calls for setLabelColor
---------
Co-authored-by: Harmit Goswami <hgoswami@LH7VKLQY46.local>
Co-authored-by: Harmit Goswami <hgoswami@MacBook-Pro.local>
2024-05-30 22:13:51 +02:00
Matjaž Horvat
a3e5252f94
Implement email unsubscribe page ( #3237 )
...
This patch adds a unique user identifier to existing and new users, and uses it to create personalized unsubscribe links.
2024-05-30 08:40:54 +02:00
dependabot[bot]
fadf6976b6
--- ( #3235 )
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-22 12:24:51 +02:00
Matjaž Horvat
7f78be7d7f
Create email consent page ( #3231 )
...
- Adds Email consent screen as per the spec for existing and new users.
- Prevent random test failures
2024-05-20 15:19:12 +02:00
ayanaar
071829c820
Fix LLM machinery source issue in database ( #3230 )
2024-05-15 20:05:52 +02:00
Matjaž Horvat
890be4a534
Add new tour card for email communications ( #3229 )
2024-05-14 22:34:37 +02:00
Eemeli Aro
3a33989d1a
Drop bin/mozilla-en-US.py ( #3218 )
2024-05-14 15:17:35 +02:00
Harmit Goswami
d6d79f6afc
Added Tags search field to both Project and Localization dashboards ( #3215 )
...
Co-authored-by: Harmit Goswami <hgoswami@LH7VKLQY46.local>
2024-05-14 10:30:33 +02:00
Matjaž Horvat
adfcf08ca8
Add ability to opt in to Email communication ( #3212 )
2024-05-14 10:19:08 +02:00
Harmit Goswami
98d017e52d
Added proposed styling changes for r-to-l languages ( #3210 )
...
Co-authored-by: Harmit Goswami <hgoswami@LH7VKLQY46.local>
2024-05-10 18:05:44 +02:00
Francesco Lodolo
d8d273a43e
Automation: Use token for Codecov ( #3209 )
2024-05-10 10:31:28 +02:00
Harmit Goswami
1ee7ee1107
Resolved fixable warnings when running pytest ( #3206 )
...
Co-authored-by: Harmit Goswami <hgoswami@LH7VKLQY46.local>
2024-05-09 17:44:22 +02:00
Matjaž Horvat
c5bc26d5ea
Fix bad import ( #3205 )
2024-05-08 14:01:41 +02:00
Matjaž Horvat
b486a4676d
Do not search in comments ( #3202 )
2024-05-07 19:41:54 +02:00
dependabot[bot]
1bef23accf
Bump jinja2 from 3.1.3 to 3.1.4 in /docs ( #3201 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 22:50:45 +02:00
Francesco Lodolo
397a571302
Remove hack for zh-CN and browser.startup.homepage ( #3199 )
2024-05-06 10:26:47 +02:00
Eemeli Aro
4c19adac77
A light refactor of pontoon/sync/ code ( #3186 )
...
* Split git/hg/svn functions into separate modules
* Move repo modules under pontoon/sync/repositories/
* Split out VCSConfiguration & DownloadTOMLParser from pontoon.sync.vcs.models
* Split up pontoon.sync.vcs.models as .project, .resource & .translation
2024-04-30 16:00:43 +03:00
Matjaž Horvat
3244c475af
Remove unused environment variable from app.json ( #3197 )
2024-04-30 13:16:30 +02:00
Matjaž Horvat
70d888e8cc
Disable tooltip in LLM Dropdown ( #3193 )
2024-04-29 18:18:10 +02:00
Matjaž Horvat
2d2aab9039
LLM-Assisted Translations Frontend (rebased again) ( #3191 )
...
Co-authored-by: Ayanaa Rahman <ayanaa.rahman@mail.utoronto.ca>
2024-04-29 16:37:56 +02:00
Eemeli Aro
c79fe74a11
Split up pontoon/base/models.py into multiple files ( #3187 )
...
* Rename pontoon/base/models.py -> pontoon/base/models/__init__.py
* Split out AggregatedStats, ChangedEntityLocale, Comment & PermissionChangelog
* Split out Locale, LocaleCodeHistory & LocaleQuerySet
* Split out Priority, Project, ProjectSlugHistory & ProjectQuerySet
* Split out Repository & repository_url_validator
* Split out ProjectLocale & ProjectLocaleQuerySet
* Split out Resource & ResourceQuerySet
* Split out UserProfile
* Split out User monkeypatching
* Split out Entity, EntityQuerySet & get_word_count
* Split out Translation & TranslationQuerySet
* Split out TranslationMemoryEntry & TranslationMemoryEntryQuerySet
* Split out TranslatedResource & TranslatedResourceQuerySet
* Split out ExternalResource
2024-04-25 12:52:16 +02:00
Francesco Lodolo
4b6e839447
Update workflows and docker to Python 3.11 ( #3188 )
...
* Use Python 3.11
* Run pyupgrade with Python 3.11+
* Update pyupgrade to latest version
* Update Celery and python-dateutil
Celery is not compatible with Python 3.11, leading to test failures. Need to update also python-dateutil to install the latest version.
2024-04-25 12:31:24 +02:00
Eemeli Aro
545036caa7
Use more dependable file names in pontoon.localizations test ( #3189 )
2024-04-25 12:26:26 +02:00
Matjaž Horvat
3d51fba96c
Upgrade Django to 4.2.11 ( #3183 )
...
* pytest.yield_fixture is a deprecated alias for pytest.fixture
* Update Django dev dependencies
* Update bleach
* Upgrade existing dependencies within the given constraints of the input files
* Fix jinja after update
* Update pip-tools
* Update django-* libraries
* Upgrade graphene-django
* Upgrade Django to 4.0
* Drop pytz
* ALLOWED_HOSTS must be a list
* Upgrade Django to 4.1
* Add workaround for the Raygun AttributeError
See:
https://github.com/MindscapeHQ/raygun4py/issues/108
* Avoid ValueError when instance doesn't have a primary key value but relationship is used.
See:
7ba6ebe914
* Upgrade Django to 4.2.11
* Drop pytz as a direct requirement
2024-04-24 21:31:23 +02:00
Matjaž Horvat
bc889c1cad
Prevent JS error in Project Admin ( #3185 )
2024-04-23 15:22:52 +02:00
Matjaž Horvat
78bc9de847
Drop version from docker-compose.yml, because it is obsolete ( #3184 )
...
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
2024-04-23 10:56:18 +02:00
Matjaž Horvat
e3b2e20a97
Update compare-locales to 9.0.3 ( #3182 )
2024-04-18 15:08:05 +02:00
Eemeli Aro
722c1d36c9
During sync, fall back to reporting all files as changed if the hg/git/svn cli command fails ( #3179 )
2024-04-18 11:02:02 +02:00
Matjaž Horvat
b0bfcc2954
Do not make requests to non-configured Machinery services ( #3181 )
...
Translate view makes requests to Google Translate and Microsoft Translator backend code even if API keys are not set.
While the requests to external services are not made in this case, we should still prevent the redundant call to Pontoon backend.
2024-04-17 22:56:28 +02:00
Matjaž Horvat
bfc3f8e0d6
Make sure cache data is refreshed by deleting it before making a request which will populate it again ( #3176 )
2024-04-16 21:01:43 +02:00
Bryan Olsson
8c4aaf2fc6
Add specs for Email consent opt-in and Unsubscribe page ( #3110 )
2024-04-15 14:08:51 +02:00
dependabot[bot]
3dcc637ef9
Bump idna from 3.6 to 3.7 in /docs ( #3175 )
...
Bumps [idna](https://github.com/kjd/idna ) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases )
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst )
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7 )
---
updated-dependencies:
- dependency-name: idna
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 12:17:03 +02:00
Matjaž Horvat
04aff94796
Replace cache_page with low-level cache API calls ( #3174 )
...
By using low-level cache API we makes it explicit what exactly is cached and what cache key is used.
2024-04-15 12:14:11 +02:00
Matjaž Horvat
5f27b7ff3e
Fix CSP error caused by Google Analytics upgrade ( #3173 )
2024-04-09 20:30:04 +02:00
Matjaž Horvat
7f97f68b5b
Upgrade tracker code for Google Analytics 4 ( #3172 )
...
Also update corresponding CSP settings
2024-04-09 19:10:26 +02:00
Eemeli Aro
06d0ed5b32
Use postgres:15 instead of custom postgres:13.4 build for dev env ( #3170 )
2024-04-09 16:41:26 +02:00
Matjaž Horvat
80c83c0979
Keep cache warm ( #3168 )
...
We cache data for some of the views (e.g. Contributors) for a day. Some of them don't get a lot of visits, not even one per day, meaning that the visitors of these pages often hit the cold cache.
This command refreshes data in the cache every day, because it changes often. The command is designed to run daily.
2024-04-08 10:30:22 +02:00
Eemeli Aro
ae10a5d2e5
Drop the custom tr_tr collation ( #3169 )
2024-04-06 00:50:45 +03:00
Eemeli Aro
e996d94cfa
Drop support for the .lang format ( #3163 )
...
* Fix remaining failing test
---------
Co-authored-by: Matjaž Horvat <matjaz.horvat@gmail.com>
2024-04-04 19:54:44 +02:00
Bryan Olsson
de25e2db00
Add specs for Notification Center ( #3143 )
2024-04-03 23:19:15 +02:00
Matjaž Horvat
14290cd897
Disable loading animation on Project Admin page load ( #3166 )
2024-04-03 15:19:33 +02:00
Eemeli Aro
6cd5b3e968
Do not use an inner container for CI backend tests ( #3164 )
...
* Drop test setup with tr_tr collation creation
* Use postgres 15
2024-04-03 16:17:42 +03:00
Matjaž Horvat
ee29b881b2
Project Admin page optimizations ( #3160 )
...
* Save newly added ProjectLocale objects in bulk
* Reduce notifications.count() DB calls from 3 to 1. This change also benefits other (non-Translate) views.
* Retrieve project locales asynchronously to speed up loading of the page
* Minor ride along enhancements
2024-04-03 13:53:59 +02:00
Eemeli Aro
5d991876ae
Include "name" in concordance search result sorting order ( #3161 )
2024-04-03 00:16:55 +03:00
Cedric Amaya
0c7943f7af
Fix #2896 , #3131 - Profile Status ( #3152 )
...
Fix #2896 - Add a banner to the profile's avatar with the message "Account disabled by an administrator" if the user.is_active = False.
Fix #3131 - Ads the ability for admins to enable/disable users from their profiles.
2024-04-02 13:12:15 +02:00
Matjaž Horvat
a24a3653e6
Update to python 3.10.14 ( #3156 )
2024-03-28 20:19:02 +01:00