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

85 Коммитов

Автор SHA1 Сообщение Дата
Andrew Williamson 9ffd8c12a7
switch from black to ruff format (#21384)
* switch from black to ruff format

* Update Makefile-docker
2023-11-02 14:35:10 +00:00
Mathieu Pillard 7730f6f3bb
Drop Django 3.2 tests (#20693) 2023-05-15 14:51:24 +02:00
Andrew Williamson 7d8648662a
switch from flake8 to ruff (#20652)
* switch from flake8 to ruff

* drop .gitignore exclude paths from ruff config

* change black to use .gitignore too
2023-05-10 10:14:51 +01:00
Andrew Williamson e8d549c6c2
Enable django4.2 deployment (#20612)
* allow django41 installation via make; add CI matrix

* ManifestStaticFilesStorage with sourceMappingURL

* test against django4.2rc1

* import django.core.files.File directly

* handle django4.2 being precise with timeuntil

* bump django4.2 to release

* fix reviewer tools css/js

* don't downgrade django3.2

* prettier fix

* handle timesince being more picky (again)

* default to django42
2023-04-26 09:44:31 +01:00
Mathieu Pillard 5c0e7a3c88
Merge deployment and development Dockerfiles (#20480)
* Merge deployment and development Dockerfiles
* Stop using root to install dependencies
* Run make commands from os with --user olympia
2023-03-23 15:46:56 +01:00
Mathieu Pillard 80a559610d
Fix build by replacing usage of npm bin, which is gone from npm 9.x (#20323)
* Fix build by replacing usage of npm bin, which is gone from npm 9.x

* Also fix lint command
2023-02-09 13:09:13 +01:00
Mathieu Pillard 3f83f99131
Remove old update service (#20086)
* Remove old update service

* Remove more code/docs associated with services/

* Add some missing pytest.mark.django_db that the autouse fixture was hiding...

* Remove extra import

* Add a comment documenting what the update URL typically looks like
2022-12-12 12:45:11 +01:00
Mathieu Pillard e9843c2709
Support ranges and networks in IP admin search (#19674)
* Support ranges and networks in IP admin search
2022-09-12 11:11:44 +02:00
Mathieu Pillard 97f9d82cbc
Remove unused/obsolete JavaScript (#18755)
* Remove unused/obsolete JavaScript

Could do more, but that's a good chunk already...

* Remove files no longer referenced

* Remove obsolete calls to removed functions
2022-02-09 13:54:49 +01:00
renovate[bot] 09bd4ad1d4
Update dependency jquery-ui to v1.13.0 (#18072)
* Update dependency jquery-ui to v1.13.0

* updated copied lib files for jqueryui 1.13

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
2021-10-19 12:22:22 +01:00
Andrew Williamson 1157e9c2cd
drop django2.2 compat (#17515)
* drop django22 CI & support in Dockerfile/Makefile

* rm obsolete fallbacks

* drop django-jsonfield-backport
2021-07-20 10:03:10 +01:00
Andrew Williamson 4b4b8b2407
default local dev to django3.2; deploy to addons-dev with 3.2 (#17452) 2021-07-08 10:31:48 +01:00
William Durand 13dcd75c97
Remove category_totals cron (#16592) 2021-02-22 19:49:40 +01:00
Andrew Williamson 11ee4e99cf
django32 tests ci (#16436)
* let our tests run with django3.2

* PositiveAutoField fixes

* versions/test_models.py test fix

* TransField fix

* cache fixes

* use django.utils.html.escape to workaround &# encoding changing to hex

* deactive failing jobs on circleci

* django 2.2.18
2021-02-03 19:01:02 +00:00
Mathieu Pillard ee65e075e5
Disable PEP 517 for pip editable install of our package as it's failing (#16148)
* Disable PEP 517 for pip editable install of our package as it's failing

* Add comment
2020-12-10 16:46:53 +01:00
William Durand e61d8b0de7
"Black" all the things! (#16123) 2020-12-09 19:24:56 +01:00
Andrew Williamson 13a164a3cd
use curlylint (and existing fix template problems) (#15558)
* use curlylint (and existing fix template problems)

* refactor submit/done template
2020-09-29 10:56:33 +01:00
William Durand c2e92e7482
Introduce Prettier (#15131) 2020-08-03 14:55:07 +02:00
William Durand 1d37fe4122
Fix dates in stats export links (csv/json) (#15086) 2020-07-30 14:00:07 +02:00
Andrew Williamson 5fdf333e3a
shorter makefile recipes for common tasks 2020-05-15 14:53:13 +01:00
dbxnr 0c845636a9 Remove code for ui tests 2020-01-13 23:15:17 +00:00
jrbenny35 13dba0d358 Add reindex after addon creating for ui-tests. 2019-12-17 11:28:38 -06:00
Christopher Grebs b9ac5f4413
Run dockerfile commands with correct user. (#12579)
This updates various things…

* make use o `--user` argument of pip and `$PYTHONUSERBASE` to install python libraries in the correct places where the `olympia` user has permissions
* Add a new `rootshell` command

Fixes #12366

* Correct if statement

* Use separate tag for easier testing

* Try running directly with user olympia

* Small cleanup

* Add docs

* Fix comment

* Add 'rootshell' command

* Build circleci for local dev

* Fix pip execution by using 'python -m' to fetch the correct pip

* Pick up upstream user/group for builds and implement PYTHONUSERBASE and PIP_USER

* Correctly pass USER_ID and GROUP_ID to Dockerfile when building

* Small cleanups

* Build our test branch

* Fall back to manual uploads for testing

* Cleanup

* Revert back to :latest tag
2019-10-22 11:24:05 +02:00
Christopher Grebs 3f454bd39b
Update supervisor to 4.0.4
Fixes #11165
2019-10-07 06:34:26 +02:00
Andrew Williamson d7ae3e5797
Merge pull request #12349 from eviljeff/12333-switch-to-django-migrations
switch to django migrations
2019-09-30 11:08:57 +01:00
William Durand ecab073da1
Fix `make` when running it inside a Docker container (#12345) 2019-09-12 18:48:45 +02:00
Andrew Williamson f1ee9f49ca run django migrations on intialize/update rather than schematic 2019-09-12 16:25:46 +01:00
William Durand 464abd0d2c
Autogenerate makefile help (#12220) 2019-08-29 15:34:26 +02:00
Andrew Williamson 6748a96134
move all the make commands that operate on a single container to Makefile-docker (#12121)
* move all the make commands that operate on a single container to Makefile-docker

* add default user to Dockerfile

* revert the PYTHON_COMMAND var change
2019-08-29 12:10:25 +01:00
Christopher Grebs ec7becb5a7
Use django-babel for for Django 2.x compatibility
Fixes #11233
2019-05-28 09:23:20 +02:00
Mathieu Pillard 7999633e4f Fix populate_data target in Makefile-docker (therefore fixing initialize)
Fixes the following:
% make populate_data
export UITEST_FXA_EMAIL := uitest-87b0c546-6b2e-11e9-8d08-0242ac120008@restmail.net
/bin/sh: 1: export: :: bad variable name
Makefile-docker:88: recipe for target 'populate_data' failed
make: *** [populate_data] Error 2
2019-04-30 11:59:02 +02:00
Andrew Williamson 6aebb99b1f
remove support for django1.11 and python2 (#11195) 2019-04-15 15:17:10 +01:00
Benjamin Forehand Jr 1cbf6a0da8
Move fxa account creation commands in makefile. (#11069)
* Move fxa account creation commands in makefile.
2019-03-29 11:39:57 -04:00
Benjamin Forehand Jr 7bcc1641ae
Fix makefile command for creating data. (#11053) 2019-03-29 09:09:22 -04:00
Benjamin Forehand Jr 9f8f44dfe6
Add devhub upload, approve, install (#11021)
* Add devhub upload, approve, install integration-test
2019-03-28 09:05:41 -04:00
Andrew Williamson ec4ac13ad7
deploy django22 on -dev & defaul on local dev (#11025) 2019-03-27 11:37:52 +00:00
Andrew Williamson 85e9ea6f03
use utf8mb4 everywhere; replace reset_db (#10935) 2019-03-18 10:57:49 +00:00
Benjamin Forehand Jr 2d99d6f3da
Fix ui tests for new nginx config (#10888)
* Fixes for Ui-tests using new nginx config.
2019-03-11 19:20:06 -04:00
Andrew Williamson 70276d2b43
Enable django2.2 testing (#10752) 2019-02-25 12:39:13 +00:00
Mathieu Pillard 1d559fcd32
Fix codestyle and docs jobs (#10683)
* Fix docs for python 3

* Make travis behave like it's inside our container, fix tox/makefile accordingly

* Fix docs build by choosing another label than _search (which is already used)

* Fix codestyle linter issues

* Remove extra force_bytes import

* Add ignore for int|null in docs as it's used in a couple places and it's valid

* Fix more docs build failures in reviewers.rst

Also build docs with -W by default to make future docs breakage
easier to spot locally.

* Leave -f Makefile-docker for UI Tests as they are not running from the standard container
2019-02-13 16:21:05 +01:00
pyup.io bot 1b7c03afb2 Update flake8 to 3.7.5 (and add py3/py2 compat) (#10592)
This PR updates [flake8](https://pypi.org/project/flake8) from **3.7.3** to **3.7.5**.



<details>
  <summary>Changelog</summary>
  
  
   ### 3.7.5
   ```
   -------------------

You can view the `3.7.5 milestone`_ on GitLab for more details.

Bugs Fixed
~~~~~~~~~~

- Fix reporting of pyflakes &quot;referenced before assignment&quot; error (See also
  `GitLab!301`_, `GitLab503`_)


.. all links
.. _3.7.5 milestone:
    https://gitlab.com/pycqa/flake8/milestones/28

.. issue links
.. _GitLab503:
    https://gitlab.com/pycqa/flake8/issues/503

.. merge request links
.. _GitLab!301:
    https://gitlab.com/pycqa/flake8/merge_requests/301
   ```
   
  
  
   ### 3.7.4
   ```
   -------------------

You can view the `3.7.4 milestone`_ on GitLab for more details.

Bugs Fixed
~~~~~~~~~~

- Fix performance regression with lots of ``per-file-ignores`` and errors
  (See also `GitLab!299`_, `GitLab501`_)


.. all links
.. _3.7.4 milestone:
    https://gitlab.com/pycqa/flake8/milestones/27

.. issue links
.. _GitLab501:
    https://gitlab.com/pycqa/flake8/issues/501

.. merge request links
.. _GitLab!299:
    https://gitlab.com/pycqa/flake8/merge_requests/299
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/flake8
  - Changelog: https://pyup.io/changelogs/flake8/
  - Repo: https://gitlab.com/pycqa/flake8
</details>
2019-02-07 07:56:39 +01:00
Andrew Williamson 57c606e215
move schematic from mozilla/schematic (#10537) 2019-01-30 20:30:31 +08:00
Andrew Williamson 3290551aa9
remove webextension permission descriptions (#10514) 2019-01-28 18:15:56 +08:00
Christopher Grebs ca15cf8108
Call generate_jsi18n_files on `make update_assets`. (#10467)
* Call generate_jsi18n_files on `make update_assets`.

Fixes #10438 and thus local docker instances and circleci tests.

* Actually call update_assets in circleci
2019-01-21 10:09:18 +01:00
Mathieu Pillard af842876b7 Install Python3 in development container
This also adds support for specifiying which version to use when installing
packages, though at the moment it's not possible to switch python versions
without reinstalling everything, because both versions share /usr/local/bin
2019-01-14 16:19:47 +01:00
Christopher Grebs 04fe02162d
Remove django-product-details dependency. (#10371)
* Add new olympia.core.languages module as a replacement for supported
  languages
* Implement new ApplicationsVersions.get_latest_application_version
helper

Fixes #9516 

Fixes #8850 along the way, removes the need for #8779 and unblocks #2739
2019-01-14 14:33:56 +01:00
Andrew Williamson 76bd95e227
Use supervisor from master rather than the release on pypi to get py3 suport (#10340) 2019-01-09 01:25:40 +08:00
Christopher Grebs 69aba0e9ef
Remove raven.js from legacy + devhub pages.
Unless I'm mistaken there isn't anyone to really look at this and most
errors and problems should be related to legacy pages anyway.

Let's remove things we're not using or looking at.

Fixes #4845
2018-12-03 14:11:49 +01:00
Christopher Grebs b75709c89b
Attempt at fixing 'assets' job.
Let's just remove the manual `update_assets` call and document that
whenever it get's changed / updated the appropriate pytest tests should
be adapted too.

That way we only run it once and potentially fix our unstable 'assets'
job.

Fixes #9656
2018-10-11 10:35:46 +02:00
Andrew Williamson 9ecfbcf964
actually have makefile install python3 deps (#9628) 2018-10-09 10:32:44 +01:00