browsertrix/backend/btrixcloud
Tessa Walsh aaf18e70a0
Add created date to Organization and fix datetimes across backend (#1921)
Fixes #1916

- Add `created` field to Organization and OrgOut, set on org creation
- Add migration to backfill `created` dates from first workflow
`created`
- Replace `datetime.now()` and `datetime.utcnow()` across app with
consistent timezone-aware `utils.dt_now` helper function, which now uses
`datetime.now(timezone.utc)`. This is in part to ensure consistency in
how we handle datetimes, and also to get ahead of timezone naive
datetime creation methods like `datetime.utcnow()` being deprecated in
Python 3.12. For more, see:
https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated
2024-07-15 19:46:32 -07:00
..
migrations Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
operator Remove Crawl Workflow Configmaps (#1894) 2024-06-28 15:25:23 -07:00
__init__.py refactoring to use statefulsets + job (#245) 2022-06-05 10:37:17 -07:00
auth.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
background_jobs.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
basecrawls.py Add superuser API endpoints to export and import org data (#1394) 2024-07-02 17:14:34 -04:00
colls.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
crawlconfigs.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
crawlmanager.py Remove Crawl Workflow Configmaps (#1894) 2024-06-28 15:25:23 -07:00
crawls.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
db.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
emailsender.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
invites.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
k8sapi.py Remove Crawl Workflow Configmaps (#1894) 2024-06-28 15:25:23 -07:00
main_op.py Add superuser API endpoints to export and import org data (#1394) 2024-07-02 17:14:34 -04:00
main.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
models.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
orgs.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
pages.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
pagination.py Format backend with Black 24 (#1507) 2024-02-07 11:35:34 -08:00
profiles.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
storages.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
subs.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
uploads.py Disable uploading and creating browser profiles when org is read-only (#1907) 2024-07-01 23:15:38 -07:00
users.py Merge branch 'main' into frontend-org-manage-readonly 2024-07-03 11:15:47 -04:00
utils.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
version.py version: bump to 1.11.0-beta.0 2024-06-04 13:37:44 -07:00
webhooks.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00