* revert any changes to local updates to current_amount_usd, keep changes in current_usage accumulation
* fix tests
* add some text saying the dollar values update once daily
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* add in banner about tiers data
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* everything except plugin server and sync_available_features
* sync_available_features_done, some plugin_server done?
* and a tiny bit more
* linting
* try to fix some tests
* more test fixes/
* clean up typos
* weed wacking bugs
* more test shenanigans
* fix plugin server
* actually fix plugin server test?
* still fixing tests
* another attempt
* some pr feedback
* small fix
* fix database query accessor
* fix functional tests
* fix tests
* Update query snapshots
* Update query snapshots
* Update query snapshots
* update some comments and fxn names
* fix plugin server test
* Update query snapshots
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Add `test_insight_refreshing_query_async`
It's red.
* Allow `enqueue_process_query_task` short circuit if cache warm
* Make cache key consistent between sync and async execution
* Remove obsolete comment
* Fix test_execute_async.py
* Fix `execute_process_query` call
* Fix `enqueue_process_query_task` call
* Update expected cache keys
This is to be expected, because now `get_cache_key()` returns the _full_ cache key, i.e. including f"...._{self._limit_context_aliased_for_cache}_v2".
* Update mypy-baseline.txt
* Make `process_query_...` return actual model instances
This makes `CacheMissResponse` checks easy and obvious.
* Fix post-refactor issues
* Stabilize `test_create_two_similarly_named_organizations`
It looks like we're calling `random()` at some point now, which causes the test to see a different disambiguated org slug than before. But this test should not rely on that – `choice()` just needs to be mocked.
* add warning about auto paying open invoices on unsubscribe modal
* Update frontend/src/scenes/billing/UnsubscribeSurveyModal.tsx
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* undo lemoncollapse
* wip
* some small tweaks
* Update UI snapshots for `chromium` (1)
* some dict accessor wrappers just in case
* add fix for sentry error
* wrong syntax for raising exception
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* retrieve open invoices as part of /billing loading, show warning
* small fixes
* address pr feedback
* small grammar update
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* update tiers usage with local org usage information
* type finagling
* update addon tiers as well
* test
* Update ee/billing/billing_manager.py
* update tests
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* show error messages on billing page
* some more updates
* extraneous exception and pr feedback
* Move error display into the unsubscribe modal
* Only show link to stripe if the error detail is about open invoices
* Update frontend/src/scenes/billing/billingLogic.tsx
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* remove opensupportform from billingLogic
---------
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
* Upgrade dependencies
* Fix middleware error
Among
https://docs.djangoproject.com/en/4.2/releases/4.0/#features-removed-in-4-0
* Upgrade psycopg
We need to be on >= 3.1.8
Locally there is an additional problem that somehow psycopg2
seemingly overshadows psycopg, making it appear that 3.1 works.
Had to install pip install "psycopg[binary,pool]==3.1.2" to
recreate the problem.
* Go to Django 4.1 because of problems with psycopg3
We use custom SQL that somehow doesn't get formatted in the right way
using server or client side cursors.
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Switch TaggedItem tests to assert ValidationError
Because full_clean validates since Django 4.1, see
https://docs.djangoproject.com/en/4.2/releases/4.1/#validation-of-constraints
* Remove type: ignore comments
Come up as
error: Unused "type: ignore" comment
* Update query snapshots
* Figure out psycopg problem and try Django 4.2 again
* Update query snapshots
* Fix other IN errors
* Fix getting status
* Fix psycopg3 issues
* Fix psycopg issues
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update deps
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Fix more tests
* Adjust baseline
* Remove sqlcommenter (should be PostgresQL only anyways)
* Fix file
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Fix queries
* Fix query
* Revert
* Update requirements.in
* Remove restore-virtualenv
Because not maintained anymore
* Revert "Remove restore-virtualenv"
This reverts commit c2a7ef8a1e.
* mypy
* Adjust num queries
* Adjust num queries
* Adjust num queries
* Update query snapshots
* Add to updated_fields
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>