Commit Graph
11535 Commits
Author SHA1 Message Date
Mira Weller c7983bf811 unused imports 2024-04-30 21:55:15 +02:00
Mira Weller 042be3603b use time_machine_now for waiting_list_auto_disable 2024-04-30 21:52:44 +02:00
Mira Weller 1de2320cc5 use time_machine_now for GiftCard, membership and discount validity 2024-04-30 21:49:58 +02:00
Mira Weller 8042d9d3f4 Scope time machine state per event 2024-04-30 21:49:58 +02:00
Mira Weller 44afe9e193 Improve form/error handling 2024-04-30 21:49:58 +02:00
Mira Weller 46dce1bf43 Implement review comments 2024-04-30 21:49:58 +02:00
Mira Weller 4865879978 fontawesome elements have wider characters 2024-04-30 21:49:58 +02:00
4c793076b7 Apply suggestions from code review
Co-authored-by: Richard Schreiber <schreiber@rami.io>
Co-authored-by: Raphael Michel <michel@rami.io>
2024-04-30 21:49:58 +02:00
Mira Weller 5294d819a9 flake8 2024-04-30 21:49:58 +02:00
Mira Weller 7bfe94139a Fix exception if parent session expired 2024-04-30 21:49:58 +02:00
Mira Weller e5cbaa9246 Improve docs 2024-04-30 21:49:58 +02:00
Mira Weller 37208286b1 Improve UI 2024-04-30 21:49:58 +02:00
Mira Weller 6da56291d4 Put text on "Time machine" button 2024-04-30 21:49:58 +02:00
Mira Weller 2d335cd095 improve documentation 2024-04-30 21:49:58 +02:00
Mira Weller 569f1719b0 add documentation 2024-04-30 21:49:58 +02:00
Mira Weller 00dd1a5b31 add documentation 2024-04-30 21:49:58 +02:00
Mira Weller 18bebb6d31 Separate event_access user from regular user 2024-04-30 21:49:58 +02:00
Mira Weller 77c8e81cd7 Remove stray print() call 2024-04-30 21:49:58 +02:00
Mira Weller 3d03f30119 Fix bootstrap classes 2024-04-30 21:49:58 +02:00
Mira Weller 91b2d685da Use ContextVar instead of threading.local 2024-04-30 21:49:58 +02:00
Mira Weller 9787ed1820 Move time machine logic into contextmanager 2024-04-30 21:49:58 +02:00
Mira Weller 204b8e53de Changes from review 2024-04-30 21:49:58 +02:00
Mira Weller 64358be4ae Move timemachine controls into presale, implement session transfer for multidomain time machine support 2024-04-30 21:49:58 +02:00
Mira Weller 5b1175ff05 Code formatting 2024-04-30 21:49:58 +02:00
Mira Weller e6f56bfdc2 Fix dynamic validity and add test cases 2024-04-30 21:49:58 +02:00
Mira Weller 9610e9c89f Pass time_machine_now to async tasks 2024-04-30 21:49:58 +02:00
Mira Weller c5f4eeeb28 Distinguish real and time_machine now in Order creation 2024-04-30 21:49:58 +02:00
Mira Weller b61880fb5b Allow passing a fallback now_dt to time_machine_now 2024-04-30 21:49:58 +02:00
Mira Weller b29c7fc11d Enable time machine only in testmode 2024-04-30 21:49:58 +02:00
Mira Weller d99bf7437a Use time_machine_now in more Order related checks and for Order.datetime 2024-04-30 21:49:58 +02:00
Mira Weller 648cc14ae0 Move timemachine to pretix.base, revert package refactor 2024-04-30 21:49:58 +02:00
Mira Weller 5d71cb500a Move timemachine to pretix.base.middleware 2024-04-30 21:49:58 +02:00
Mira Weller 68d81982ba Make pretix.base.middleware a package 2024-04-30 21:49:58 +02:00
Mira Weller efa0d5f362 use time_machine_now for order expiry 2024-04-30 21:49:58 +02:00
Mira Weller 046898678b Improve UX 2024-04-30 21:49:58 +02:00
Mira Weller f38ecd0ec7 remove some print() logging 2024-04-30 21:49:57 +02:00
Mira Weller 3dca6c232e add time machine form to live.html 2024-04-30 21:49:57 +02:00
Mira Weller 297bf566ad fix live.html layout 2024-04-30 21:49:57 +02:00
Mira Weller 67f09b5ede Enable time machine for membership and ticket validity dates 2024-04-30 21:49:57 +02:00
Mira Weller 752137ad84 timemachine 2024-04-30 21:49:57 +02:00
Mira Weller 100528ad0f start implementing time machine mode (thread local) 2024-04-30 21:49:57 +02:00
Raphael Michel 0b05eb34f4 Fix style of buttons in alerts 2024-04-30 12:44:41 +02:00
Raphael Michel be48c5f94c Bump version to 2024.5.0.dev0 2024-04-30 11:11:13 +02:00
Raphael MichelandGitHub cebb6d3b43 Introduce locking to prevent duplicate invoices (Z#23150548) (#4067)
* Introduce locking to prevent duplicate invoices

This is not a perfect solution as it does not handle all code paths to
create invoices, but it handles all that seem likely to be triggered
concurrently

* Review note
2024-04-30 10:43:13 +02:00
0de96ed066 Add links to invalid inputs on error alert (Z#23149061) (#4114)
* Add links to invalid inputs on error alert

* add errors in sub-forms to message, fix issues with multi-checkboxes labels and inputs

* add scrollTarget.scrollIntoView

* add missing semi-colon

* improve comment

* add style for links in alert-danger

* fix link color for all alert-boxes

* Update src/pretix/static/pretixcontrol/js/ui/main.js

---------

Co-authored-by: Raphael Michel <michel@rami.io>
2024-04-30 10:18:32 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
a9d506b1fa Update pytest-xdist requirement from ==3.5.* to ==3.6.* (#4118)
Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.5.0...v3.6.1)

---
updated-dependencies:
- dependency-name: pytest-xdist
  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-30 10:14:54 +02:00
Serhii HorichenkoandRaphael Michel 7a01057429 Translations: Update Ukrainian
Currently translated at 89.9% (206 of 229 strings)

Translation: pretix/pretix (JavaScript parts)
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-js/uk/

powered by weblate
2024-04-30 10:14:00 +02:00
Serhii HorichenkoandRaphael Michel 64e1a602d6 Translations: Update Ukrainian
Currently translated at 62.9% (3527 of 5607 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/uk/

powered by weblate
2024-04-30 10:14:00 +02:00
NikolaiandRaphael Michel fe060c387a Translations: Update Danish
Currently translated at 31.0% (1741 of 5607 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/da/

powered by weblate
2024-04-30 10:14:00 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1dba4c7cc9 Update pytest requirement from ==8.1.* to ==8.2.* (#4119)
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.1.0.dev0...8.2.0)

---
updated-dependencies:
- dependency-name: pytest
  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-29 21:02:07 +02:00