Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix https://github.com/tosdr/edit.tosdr.org/issues/1156 #1

Closed
wants to merge 836 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
836 commits
Select commit Hold shift + click to select a range
9772142
Adapt transaction mocking to SQLA 2.0
marcospri Jan 23, 2024
2ed3b0a
Explicitly commit deletion for test to see the expected DB state
marcospri Jan 23, 2024
1ff539d
Use text for raw SQL queries for compatibility with SQLA 2
marcospri Jan 23, 2024
9e507d7
Commit in pre-creation hooks to make changes visible in create_all
marcospri Jan 23, 2024
60ee304
Bump hypothesis from 6.97.1 to 6.97.3
dependabot[bot] Jan 31, 2024
431d5c4
Bump newrelic from 9.5.0 to 9.6.0
dependabot[bot] Jan 26, 2024
51e7050
Bump black from 23.12.1 to 24.1.1
dependabot[bot] Jan 29, 2024
e87b601
Reformat code after black update
marcospri Jan 31, 2024
06fa2be
Add Sentry support to status endpoint
seanh Jan 31, 2024
9661857
Add sentry-sdk as a direct requirement
seanh Jan 31, 2024
3f1c1ba
Bump @babel/core from 7.23.7 to 7.23.9 (#8478)
dependabot[bot] Feb 1, 2024
ecdadb5
Bump autoprefixer from 10.4.16 to 10.4.17 (#8477)
dependabot[bot] Feb 1, 2024
8cce06e
Bump postcss from 8.4.32 to 8.4.33 (#8479)
dependabot[bot] Feb 1, 2024
ff1ff8b
Bump rollup from 4.9.2 to 4.9.6 (#8476)
dependabot[bot] Feb 1, 2024
d7276e5
Bump chai from 5.0.0 to 5.0.3 (#8474)
dependabot[bot] Feb 1, 2024
d6658ee
Bump sass from 1.69.6 to 1.70.0 (#8480)
dependabot[bot] Feb 1, 2024
dc36a8b
Bump @babel/preset-env from 7.23.7 to 7.23.9 (#8473)
dependabot[bot] Feb 1, 2024
a073180
Bump prettier from 3.1.1 to 3.2.4 (#8475)
dependabot[bot] Feb 1, 2024
92f8292
Bump certifi from 2023.11.17 to 2024.2.2
dependabot[bot] Feb 2, 2024
80f96a4
Bump pytz from 2023.4 to 2024.1
dependabot[bot] Feb 2, 2024
c152e28
Bump sentry-sdk from 1.39.2 to 1.40.0
dependabot[bot] Feb 2, 2024
5bb86a2
Bump hypothesis from 6.97.3 to 6.97.4
dependabot[bot] Feb 1, 2024
99c8b85
Bump pytest from 7.4.4 to 8.0.0
dependabot[bot] Jan 30, 2024
acd4547
Remove superfluous usefixtures mark
marcospri Feb 2, 2024
6bb8df3
Bump python-slugify from 8.0.1 to 8.0.3
dependabot[bot] Feb 2, 2024
faabd37
Bump cryptography from 41.0.7 to 42.0.0 in /requirements
dependabot[bot] Feb 6, 2024
a65f496
Create index on job
marcospri Feb 7, 2024
8453ab5
Fix alembic commands in CI
marcospri Feb 7, 2024
d01ee8b
Configure gunicorn's max_request and and max_request_jitter
marcospri Feb 7, 2024
fabf4b1
Bump pyramid-jinja2 from 2.10 to 2.10.1
dependabot[bot] Feb 8, 2024
da26fa6
Bump python from 3.11.7-alpine3.19 to 3.11.8-alpine3.19
dependabot[bot] Feb 8, 2024
42449a8
Bump h-testkit from 1.0.0 to 1.0.1
dependabot[bot] Feb 8, 2024
43bbf98
Bump hypothesis from 6.97.4 to 6.98.3
dependabot[bot] Feb 8, 2024
09edc3a
Bump markupsafe from 2.1.4 to 2.1.5
dependabot[bot] Feb 8, 2024
b98f8f6
Bump sentry-sdk from 1.40.0 to 1.40.2
dependabot[bot] Feb 8, 2024
ea99ca8
Bump sphinx-autobuild from 2021.3.14 to 2024.2.4
dependabot[bot] Feb 5, 2024
bd9b0ed
Don't sync deleted annotations
marcospri Feb 8, 2024
563d32c
Bump python-slugify from 8.0.3 to 8.0.4
dependabot[bot] Feb 9, 2024
576c5a3
Bump sentry-sdk from 1.40.2 to 1.40.3
dependabot[bot] Feb 9, 2024
7c5de72
Delete tokens when deleting users
seanh Feb 12, 2024
811cba4
Add a DB migration to add the token.user_id column
seanh Feb 12, 2024
d4d0869
Add the Token.user_id column to the model
seanh Feb 12, 2024
5039e4a
Write to the new `Token.user_id` column
seanh Feb 13, 2024
338c4a2
Create new unique index in document_uri
marcospri Feb 8, 2024
44ee5a0
Bump hypothesis from 6.98.3 to 6.98.4
dependabot[bot] Feb 12, 2024
718119f
Bump black from 24.1.1 to 24.2.0
dependabot[bot] Feb 13, 2024
a62d037
Add DB migration to delete orphaned tokens
seanh Feb 12, 2024
14fbf34
Add a DB migration to back-fill `token.user_id`
seanh Feb 13, 2024
d0eaf37
Add a DB migration to make `Token.user_id` not nullable
seanh Feb 13, 2024
2cbdf3d
Make `Token.user_id` not nullable in the model
seanh Feb 13, 2024
bce2f7b
Read `Token.user_id` instead of `Token.userid`
seanh Feb 14, 2024
fa4e68e
Add DB migration to make token.userid nullable
seanh Feb 14, 2024
ac4ab6a
Remove `Token.userid` from the Python code
seanh Feb 14, 2024
d5a8cfa
Add a DB migration to remove `token.userid`
seanh Feb 14, 2024
74281d0
Remove the Staging (WebSocket) environment
seanh Feb 15, 2024
99dfe2c
Add a limit to expunging annotations
seanh Feb 14, 2024
1e944c9
Bump hypothesis from 6.98.4 to 6.98.6
dependabot[bot] Feb 15, 2024
878f6dc
Bump gevent from 23.9.1 to 24.2.1
dependabot[bot] Feb 15, 2024
1704e88
Bump sentry-sdk from 1.40.3 to 1.40.4
dependabot[bot] Feb 14, 2024
1a81acf
Add a DB migration to delete old tokens
seanh Feb 15, 2024
892b2f5
Bump zope-interface from 6.1 to 6.2
dependabot[bot] Feb 16, 2024
6078995
Remove duplicate unique constraint on document_uri
marcospri Feb 14, 2024
0985761
Use factories not mocks in annotation_searchindex_test.py
seanh Feb 16, 2024
9686c96
Bump cryptography from 42.0.0 to 42.0.2 in /requirements
dependabot[bot] Feb 17, 2024
ae5630b
Validate selector pre/suffix is valid unicode
marcospri Feb 7, 2024
cc88a9d
Bump hypothesis from 6.98.6 to 6.98.8
dependabot[bot] Feb 19, 2024
2218384
Bump pytest from 8.0.0 to 8.0.1
dependabot[bot] Feb 20, 2024
52b9145
Bump pip-tools from 7.3.0 to 7.4.0
dependabot[bot] Feb 20, 2024
b4ecb8a
Bump ip from 2.0.0 to 2.0.1
dependabot[bot] Feb 21, 2024
55c40c7
Bump coverage from 7.4.1 to 7.4.2
dependabot[bot] Feb 21, 2024
584922b
Bump cryptography from 42.0.2 to 42.0.4 in /requirements
dependabot[bot] Feb 21, 2024
782da8c
Bump sentry-sdk from 1.40.4 to 1.40.5
dependabot[bot] Feb 21, 2024
18b0cbc
bump hypothesis from 6.98.8 to 6.98.9
dependabot[bot] Feb 22, 2024
8bee784
Fix migration error in `token` due to missing `userid` field
robertknight Feb 22, 2024
60cba10
Bump hypothesis from 6.98.9 to 6.98.10
dependabot[bot] Feb 23, 2024
b01a317
Bump newrelic from 9.6.0 to 9.7.0
dependabot[bot] Feb 23, 2024
8c42be1
Revert "Remove the Staging (WebSocket) environment"
robertknight Feb 22, 2024
302b352
Create index on Group.authority_provided_id
marcospri Feb 27, 2024
06eb21e
Bump hypothesis from 6.98.10 to 6.98.12
dependabot[bot] Feb 26, 2024
6d05ba9
Bump pytest from 8.0.1 to 8.0.2
dependabot[bot] Feb 26, 2024
b11122b
Bump coverage from 7.4.2 to 7.4.3
dependabot[bot] Feb 26, 2024
6e4ccfa
Bump importlib-resources from 6.1.1 to 6.1.2
dependabot[bot] Feb 26, 2024
988ebb5
Add index on group.authority_provided_id
marcospri Feb 27, 2024
67c496e
Bump es5-ext from 0.10.53 to 0.10.63
dependabot[bot] Feb 27, 2024
4bfe26a
Fix unconstrained mocking in index_test.py
seanh Feb 26, 2024
a64e3c2
Improve the bulk group query to make it more performant
marcospri Feb 27, 2024
61f442c
Bump hypothesis from 6.98.12 to 6.98.13
dependabot[bot] Feb 27, 2024
05be632
Bump sentry-sdk from 1.40.5 to 1.40.6
dependabot[bot] Feb 27, 2024
8e48ae3
Valida tag length and set a limit of 1000
marcospri Feb 15, 2024
1999c2b
Factor out `AnnotationSyncService`
seanh Feb 27, 2024
45ce0b6
Split up `AnnotationSyncService`
seanh Feb 27, 2024
97e4bcc
Use job queue to delete annotations from Es
seanh Feb 28, 2024
6d5c890
Add some type annotations
seanh Feb 29, 2024
78c6b19
Fix a typo in a docstring
seanh Feb 29, 2024
9e0a5d1
Bump hypothesis from 6.98.13 to 6.98.15
dependabot[bot] Mar 1, 2024
bb52717
Bump hypothesis from 6.98.15 to 6.98.17
dependabot[bot] Mar 4, 2024
780da43
Bump python-dateutil from 2.8.2 to 2.9.0.post0
dependabot[bot] Mar 4, 2024
ffead7c
Bump @babel/preset-env from 7.23.9 to 7.24.0 (#8574)
dependabot[bot] Mar 6, 2024
f547abc
Bump chai from 5.0.3 to 5.1.0 (#8575)
dependabot[bot] Mar 6, 2024
c5b451f
Bump eslint from 8.56.0 to 8.57.0 (#8570)
dependabot[bot] Mar 6, 2024
3b3b2c4
Bump eslint-plugin-mocha from 10.2.0 to 10.3.0 (#8567)
dependabot[bot] Mar 6, 2024
42164af
Bump karma from 6.4.2 to 6.4.3 (#8576)
dependabot[bot] Mar 6, 2024
9261cdf
Bump mocha from 10.2.0 to 10.3.0 (#8568)
dependabot[bot] Mar 6, 2024
aa3ff81
Bump postcss from 8.4.33 to 8.4.35 (#8569)
dependabot[bot] Mar 6, 2024
852d769
Bump sass from 1.70.0 to 1.71.1 (#8573)
dependabot[bot] Mar 6, 2024
396427e
Bump rollup from 4.9.6 to 4.12.1 (#8581)
dependabot[bot] Mar 6, 2024
3fa9fa2
Bump diff from 5.1.0 to 5.2.0 (#8571)
dependabot[bot] Mar 6, 2024
3b24919
Bump node from 21.6-alpine to 21.7-alpine
dependabot[bot] Mar 8, 2024
3184959
Bump sentry-sdk from 1.40.6 to 1.41.0
dependabot[bot] Mar 8, 2024
f283726
Bump importlib-resources from 6.1.2 to 6.1.3
dependabot[bot] Mar 8, 2024
a2e0776
Bump pyparsing from 3.1.1 to 3.1.2
dependabot[bot] Mar 6, 2024
b602754
Bump pylint from 3.0.3 to 3.1.0
dependabot[bot] Mar 8, 2024
ea9bbdf
Remove a lint suppression that is no longer needed
robertknight Mar 8, 2024
592408e
Bump pip-tools from 7.4.0 to 7.4.1
dependabot[bot] Mar 7, 2024
c3e4cdf
Bump hypothesis from 6.98.17 to 6.99.2
dependabot[bot] Mar 11, 2024
b316a22
Bump packaging from 23.2 to 24.0
dependabot[bot] Mar 11, 2024
88891fa
Bump pytest from 8.0.2 to 8.1.1
dependabot[bot] Mar 11, 2024
6a1a3f1
Bump importlib-resources from 6.1.3 to 6.3.0
dependabot[bot] Mar 13, 2024
928c08f
Bump hypothesis from 6.99.2 to 6.99.5
dependabot[bot] Mar 12, 2024
b8ae594
Bump newrelic from 9.7.0 to 9.7.1
dependabot[bot] Mar 12, 2024
6838d08
Bump jsonschema from 4.20.0 to 4.21.1
dependabot[bot] Mar 14, 2024
276ecd6
Adapt error message match to new jsonschema version
marcospri Mar 14, 2024
60ecf42
Bump sentry-sdk from 1.41.0 to 1.42.0
dependabot[bot] Mar 14, 2024
1fd9149
Validate max length for document.link.href
marcospri Mar 14, 2024
db73490
Add pending_updates_notification feature flag (#8593)
acelaya Mar 15, 2024
b97df31
Bump follow-redirects from 1.15.4 to 1.15.6
dependabot[bot] Mar 16, 2024
711ca7f
Bump coverage from 7.4.3 to 7.4.4
dependabot[bot] Mar 15, 2024
fdb91fb
Bump hypothesis from 6.99.5 to 6.99.6
dependabot[bot] Mar 15, 2024
e52d755
Bump black from 24.2.0 to 24.3.0
dependabot[bot] Mar 18, 2024
132d47c
Bump hypothesis from 6.99.5 to 6.99.8
dependabot[bot] Mar 18, 2024
117b597
Bump importlib-resources from 6.3.0 to 6.3.1
dependabot[bot] Mar 18, 2024
2e473f0
Bump markdown from 3.5.2 to 3.6
dependabot[bot] Mar 15, 2024
081c369
Bump hypothesis from 6.99.8 to 6.99.9
dependabot[bot] Mar 19, 2024
aebfdce
Change to weekly dependabot updates for the python dependencies
marcospri Mar 21, 2024
5198d5d
Bump @babel/core from 7.23.9 to 7.24.3
dependabot[bot] Mar 21, 2024
9320673
Bump autoprefixer from 10.4.17 to 10.4.19
dependabot[bot] Mar 21, 2024
4e2fd6b
Bump eslint-plugin-mocha from 10.3.0 to 10.4.1
dependabot[bot] Mar 21, 2024
ea70916
Bump postcss from 8.4.35 to 8.4.38
dependabot[bot] Mar 21, 2024
81c8942
Bump rollup from 4.12.1 to 4.13.0
dependabot[bot] Mar 21, 2024
adba404
Bump sentry-sdk from 1.42.0 to 1.43.0
dependabot[bot] Mar 21, 2024
c9bf45f
Bump importlib-resources from 6.3.1 to 6.4.0
dependabot[bot] Mar 25, 2024
38b79fe
Bump pytest-cov from 4.1.0 to 5.0.0
dependabot[bot] Mar 25, 2024
73d5f68
Bump hypothesis from 6.99.9 to 6.99.13
dependabot[bot] Mar 25, 2024
e4dd594
Bump @babel/preset-env from 7.24.0 to 7.24.3 (#8612)
dependabot[bot] Mar 25, 2024
95cbeb5
Bump eslint-plugin-react from 7.33.2 to 7.34.1 (#8620)
dependabot[bot] Mar 25, 2024
931961e
Bump prettier from 3.2.4 to 3.2.5 (#8617)
dependabot[bot] Mar 25, 2024
053b2c7
Bump sass from 1.71.1 to 1.72.0 (#8615)
dependabot[bot] Mar 25, 2024
0d421f0
Add route to log pushed analytics events (#8623)
acelaya Mar 27, 2024
2357527
New service to query assignment stats
marcospri Mar 26, 2024
6a21cbe
New view to fetch assignment stats
marcospri Mar 26, 2024
d1c0ddb
Add non streaming option for get_ndjson_response
marcospri Mar 26, 2024
8fa719e
Ignore some pydocstyle rules already checked by pylint
marcospri Mar 26, 2024
2d42ded
Move fixture to common module
marcospri Mar 26, 2024
988da5c
Don't use a helper to generate the response.
marcospri Mar 27, 2024
de50cf8
Include userid in the assignments stats response
marcospri Mar 27, 2024
685eeb1
Update to gulp 5 (#8642)
acelaya Apr 2, 2024
2a0da09
Bump hypothesis from 6.99.13 to 6.100.0
dependabot[bot] Apr 1, 2024
43336e9
Bump kombu from 5.3.5 to 5.3.6
dependabot[bot] Apr 1, 2024
1e4db5c
Bump newrelic from 9.7.1 to 9.8.0
dependabot[bot] Apr 1, 2024
559bb8d
Bump sentry-sdk from 1.43.0 to 1.44.0
dependabot[bot] Apr 1, 2024
e6f8105
Upgrade rabbitmq to 3.12 in dockercompose and CI
marcospri Apr 1, 2024
b9f99a0
Fix indices created on a literal value instead of a column
marcospri Apr 3, 2024
a9c10c1
Switch to {app}.{area}.{event} format for analytics events (#8643)
acelaya Apr 3, 2024
83d7f9c
Bump mocha from 10.3.0 to 10.4.0
dependabot[bot] Apr 1, 2024
d4d6cc3
Bump rollup from 4.13.0 to 4.13.2
dependabot[bot] Apr 1, 2024
8007c25
Add request.db_replica property connecting to a DB replica
marcospri Mar 22, 2024
3a6fb9d
New test fixture for request.db_replica
marcospri Apr 5, 2024
230b88c
Use bulk group queries to the read replica
marcospri Apr 5, 2024
65d3ebc
Bump sentry-sdk from 1.44.0 to 1.44.1
dependabot[bot] Apr 8, 2024
94758f9
Bump tar from 6.1.15 to 6.2.1
dependabot[bot] Apr 11, 2024
a5511b4
Remove export_formats feature flag, which is no longer used by client…
acelaya Apr 12, 2024
da5b67f
Bump idna from 3.6 to 3.7 in /requirements
dependabot[bot] Apr 12, 2024
c5b380c
Bump sqlparse from 0.4.4 to 0.5.0
dependabot[bot] Apr 15, 2024
808d179
Refactor stats service tests to use more granular fixtures
marcospri Apr 12, 2024
9bd9f52
Bump black from 24.3.0 to 24.4.0
dependabot[bot] Apr 15, 2024
bbc7896
Bump hypothesis from 6.100.0 to 6.100.1
dependabot[bot] Apr 15, 2024
f44ee45
Bump sentry-sdk from 1.44.1 to 1.45.0
dependabot[bot] Apr 15, 2024
2ce9c0d
Bump zope-interface from 6.2 to 6.3
dependabot[bot] Apr 15, 2024
96c0871
Bump kombu from 5.3.6 to 5.3.7
dependabot[bot] Apr 15, 2024
0bbf3a0
Bump sphinx-autobuild from 2024.2.4 to 2024.4.13
dependabot[bot] Apr 15, 2024
7ba6eff
Switch npm package to ESM
robertknight Apr 16, 2024
332a527
Bump gunicorn from 21.2.0 to 22.0.0 in /requirements
dependabot[bot] Apr 17, 2024
8982c8a
Bump celery from 5.3.6 to 5.4.0
dependabot[bot] Apr 22, 2024
0951067
Bump sphinx from 7.2.6 to 7.3.7
dependabot[bot] Apr 22, 2024
01e6bfd
Bump sphinx-autobuild from 2024.4.13 to 2024.4.16
dependabot[bot] Apr 22, 2024
3e341c2
Bump itsdangerous from 2.1.2 to 2.2.0
dependabot[bot] Apr 25, 2024
5ba1e75
Bump newrelic from 9.8.0 to 9.9.0
dependabot[bot] Apr 25, 2024
e40aee2
Revert "Bump newrelic from 9.8.0 to 9.9.0"
marcospri Apr 25, 2024
be390c3
fix(typo): Update docker-compose.yml
Jeff-Tian Apr 28, 2024
165c49b
Upgrade postgres to 15.6 in preparation for the production upgrade
marcospri Apr 17, 2024
1e98d07
Remove obsolete field `version` in docker compose
marcospri Apr 29, 2024
ce27a8c
Bump black from 24.4.0 to 24.4.2
dependabot[bot] Apr 29, 2024
131dc21
Bump coverage from 7.4.4 to 7.5.0
dependabot[bot] Apr 29, 2024
a0e1044
Bump freezegun from 1.4.0 to 1.5.0
dependabot[bot] Apr 29, 2024
955faf2
Bump hypothesis from 6.100.1 to 6.100.2
dependabot[bot] Apr 29, 2024
ad2124b
Bump pytest from 8.1.1 to 8.2.0
dependabot[bot] Apr 29, 2024
e7152e3
Bump pytest-xdist[psutil] from 3.5.0 to 3.6.1
dependabot[bot] Apr 29, 2024
aadbc68
Bump sentry-sdk from 1.45.0 to 2.0.1
dependabot[bot] Apr 29, 2024
e528312
Bump @babel/core from 7.24.3 to 7.24.5
dependabot[bot] May 1, 2024
7c2dcc8
Bump eslint-plugin-mocha from 10.4.1 to 10.4.3
dependabot[bot] May 1, 2024
071ffb0
Bump eslint-plugin-react-hooks from 4.6.0 to 4.6.2
dependabot[bot] May 1, 2024
f9c83b8
Bump rollup from 4.13.2 to 4.17.2
dependabot[bot] May 1, 2024
493892c
Bump node from 21.7-alpine to 22.0-alpine
dependabot[bot] May 1, 2024
6d768d7
Bump python from 3.11.8-alpine3.19 to 3.11.9-alpine3.19
dependabot[bot] May 1, 2024
d61ff1d
Revert "Bump node from 21.7-alpine to 22.0-alpine"
seanh May 2, 2024
553a875
Migrate analytics.js to Google Tag Manager
robertknight May 2, 2024
3eabec1
Remove python-jose dependency
marcospri May 2, 2024
ead8338
Bump @babel/preset-env from 7.24.3 to 7.24.5
dependabot[bot] May 1, 2024
d6b2c3a
Bump sass from 1.72.0 to 1.76.0
dependabot[bot] May 1, 2024
9695482
Bump jinja2 from 3.1.3 to 3.1.4
dependabot[bot] May 6, 2024
60976ed
Bump coverage from 7.5.0 to 7.5.1
dependabot[bot] May 6, 2024
1440d33
Bump sentry-sdk from 2.0.1 to 2.1.1
dependabot[bot] May 6, 2024
915b7c3
Bump bcrypt from 4.1.2 to 4.1.3
dependabot[bot] May 6, 2024
81b0965
Bump hypothesis from 6.100.2 to 6.100.5
dependabot[bot] May 7, 2024
6bb0ca3
Bump jsonschema from 4.21.1 to 4.22.0
dependabot[bot] May 7, 2024
22b9b1e
Fix outdated .coveragerc file
seanh May 7, 2024
92499da
Add FeatureCohortUser model
seanh May 7, 2024
8c58d05
Add `Job.__repr__()`
seanh May 8, 2024
5f26070
Bump freezegun from 1.5.0 to 1.5.1
dependabot[bot] May 13, 2024
00fcdb8
Bump hypothesis from 6.100.5 to 6.101.0
dependabot[bot] May 13, 2024
088925d
Fix `factories.Group` creator membership
seanh May 9, 2024
65534b4
Expose annotations stats grouped by assignments for LMS
marcospri May 16, 2024
3545284
Change naming of bulk api for LMS stats to better reflect the intent
marcospri May 17, 2024
fa53fc5
Bump hypothesis from 6.101.0 to 6.102.4
dependabot[bot] May 20, 2024
39cbd5c
Bump pytest from 8.2.0 to 8.2.1
dependabot[bot] May 20, 2024
bbbc4b3
Bump sentry-sdk from 2.1.1 to 2.2.0
dependabot[bot] May 20, 2024
fc93226
Bump zope-interface from 6.3 to 6.4
dependabot[bot] May 20, 2024
92ccdf7
---
dependabot[bot] May 21, 2024
2581451
Add pytest-mock test requirement
seanh May 8, 2024
d8204bf
Add migration to add user.deleted column
seanh May 7, 2024
349f85c
Add user.deleted column to model code
seanh May 7, 2024
a3821ee
Migration to add CASCADE to user_group.group_id
seanh May 16, 2024
421094c
Cascade-delete group members when deleting groups
seanh May 9, 2024
08bfc47
Add migration to add user_deletion table
seanh May 22, 2024
3ddb0f7
Record user deletions in a new DB table
seanh May 22, 2024
508e446
Prevent registering recently-deleted usernames
seanh May 22, 2024
56d468b
Prevent deleted users from logging in
seanh May 22, 2024
cbd1733
Prevent deleted users from authenticating
seanh May 22, 2024
79a0473
Bump coverage from 7.5.1 to 7.5.2
dependabot[bot] May 27, 2024
d53d326
Bump hypothesis from 6.102.4 to 6.102.6
dependabot[bot] May 27, 2024
f1669fd
Bump zope-interface from 6.4 to 6.4.post2
dependabot[bot] May 27, 2024
9b2b085
Don't crash if group has no creator
seanh May 28, 2024
ea0523f
Bump sentry-sdk from 2.2.0 to 2.3.1
dependabot[bot] May 27, 2024
f5d9ad4
Delete users data incrementally
seanh May 7, 2024
41e805b
Fix missing Annotation.__repr__() test coverage
seanh May 23, 2024
3923a3d
Don't show deleted users on admin pages
seanh May 30, 2024
bde2da9
Add a couple of code comments
seanh May 23, 2024
fb4704d
Report num. annotations marked deleted to New Relic
seanh May 29, 2024
e6aa687
Remove pending_updates_notification feature flag (#8737)
acelaya Jun 3, 2024
af28a98
phoenix-integration
michielbdejong Jun 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 11 additions & 11 deletions .cookiecutter/includes/.github/workflows/environments.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"qa": {
"github_environment_name": "QA",
"github_environment_url": "https://qa.hypothes.is/search",
"staging": {
"github_environment_name": "Staging",
"github_environment_url": "https://staging.hypothes.is/search",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h",
"elasticbeanstalk_environment": "qa"
"elasticbeanstalk_environment": "staging"
},
"qa_websocket": {
"github_environment_name": "QA (WebSocket)",
"github_environment_url": "https://qa.hypothes.is/docs/help",
"staging_websocket": {
"github_environment_name": "Staging (WebSocket)",
"github_environment_url": "https://staging.hypothes.is/docs/help",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h-websocket",
"elasticbeanstalk_environment": "qa"
"elasticbeanstalk_environment": "staging"
},
"production": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production",
"github_environment_url": "https://hypothes.is/search",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h",
"elasticbeanstalk_environment": "prod"
},
"production_websocket": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production (WebSocket)",
"github_environment_url": "https://hypothes.is/docs/help",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h-websocket",
"elasticbeanstalk_environment": "prod"
},
"production_canada": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production (Canada)",
"github_environment_url": "https://ca.hypothes.is/search",
"aws_region": "ca-central-1",
Expand Down
7 changes: 5 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ branch = True
parallel = True
source =
h
tests/h
tests/unit
omit =
h/debug.py
h/migrations/*
h/cli/*
h/__main__.py
h/pshell.py

[report]
show_missing = True
precision = 2
fail_under = 98.26
fail_under = 100

skip_covered = True
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
},
"overrides": [
{
"files": ["*.mjs"],
"files": ["*.js"],
"excludedFiles": ["h/**"],
"env": { "node": true },
"parserOptions": { "sourceType": "module" }
}
]
}
7 changes: 2 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
version: 2
updates:

- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "10:00"
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: docker
directory: "/"
schedule:
interval: daily
interval: monthly
open-pull-requests-limit: 10
ignore:
# Only send PRs for patch versions of Python.
Expand All @@ -22,5 +20,4 @@ updates:
directory: "/"
schedule:
interval: monthly
time: "10:00"
open-pull-requests-limit: 10
252 changes: 137 additions & 115 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,148 +1,170 @@
name: Continuous integration

name: CI
on:
workflow_dispatch:
pull_request:
push:
paths-ignore:
- '.cookiecutter/*'
- '.gitignore'
- 'HACKING.md'
- '.github/dependabot.yml'
- '.github/workflows/deploy.yml'
- '.github/workflows/redeploy.yml'
- 'bin/logger'
- 'conf/development.ini'
- 'production.ini'
- 'conf/supervisord*.conf'
- 'docs/*'
- 'requirements/*.in'
- 'requirements/dev.txt'
- '**/.gitignore'
- 'Dockerfile'
- 'LICENSE'
- '*.md'
- 'docker-compose.yml'
workflow_dispatch:
workflow_call:

env:
TOX_PARALLEL_NO_SPINNER: 1
PYTEST_ADDOPTS: --exitfirst

schedule:
- cron: '0 1 * * *'
jobs:
backend:
name: Backend
Format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: .tox
key: format-${{ runner.os }}-tox-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements/*') }}
restore-keys: |
format-${{ runner.os }}-tox-
- run: python -m pip install 'tox<4'
- run: tox -e checkformatting
Lint:
runs-on: ubuntu-latest-32-cores
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: .tox
key: lint-${{ runner.os }}-tox-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements/*') }}
restore-keys: |
lint-${{ runner.os }}-tox-
- run: python -m pip install 'tox<4'
- run: tox -e lint
Tests:
runs-on: ubuntu-latest-32-cores
services:
postgres:
image: postgres:11.5-alpine
image: postgres:15.6-alpine
ports:
- 5432:5432

env:
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
elasticsearch:
image: hypothesis/elasticsearch:latest
ports:
- 9200:9200
env:
discovery.type: single-node

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'

- name: Update pip
run: python -m pip install --upgrade pip

- name: Install tox
run: python -m pip install 'tox<4'

- name: Create test databases
run: psql -U postgres -h localhost -p 5432 -c 'CREATE DATABASE htest'

- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: |
.tox/lint
.tox/checkformatting
.tox/tests
.tox/coverage
key: ${{ runner.os }}-tox-backend-${{ hashFiles('tox.ini', 'requirements/**', 'setup.py', 'setup.cfg') }}
- name: Run tox
run: tox --parallel auto -e checkformatting,tests,coverage,lint

functests:
name: Functional tests
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: .tox
key: tests-${{ runner.os }}-tox-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements/*') }}
restore-keys: |
tests-${{ runner.os }}-tox-
- name: Create test database
run: psql -U postgres -h localhost -p 5432 -c 'CREATE DATABASE h_tests'
- run: python -m pip install 'tox<4'
- run: tox -e tests
env:
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
- name: Upload coverage file
uses: actions/upload-artifact@v3
with:
name: coverage
path: .coverage.*
Coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: .tox
key: coverage-${{ runner.os }}-tox-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements/*') }}
restore-keys: |
coverage-${{ runner.os }}-tox-
- name: Download coverage files
uses: actions/download-artifact@v3
with:
name: coverage
- run: python -m pip install 'tox<4'
- run: tox -e coverage
Functests:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:11.5-alpine
image: postgres:15.6-alpine
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
elasticsearch:
image: hypothesis/elasticsearch:latest
ports:
- 9200:9200
env:
discovery.type: single-node
rabbitmq:
image: rabbitmq:3.6-management-alpine
image: rabbitmq:3.12-management-alpine
ports:
- 5672:5672

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'

- name: Update pip
run: python -m pip install --upgrade pip

- name: Install tox
run: python -m pip install 'tox<4'

- name: Create test databases
run: psql -U postgres -h localhost -p 5432 -c 'CREATE DATABASE htest'

- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: |
.tox/functests
key: ${{ runner.os }}-tox-functests-${{ hashFiles('tox.ini', 'requirements/**', 'setup.py', 'setup.cfg') }}

- name: Cache the node_modules dir
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: npm install
run: npm install

- name: gulp build
run: gulp build

- name: Run tox
# Note we run the func tests backwards here to prove there are no order
# dependent tests
run: tox -e functests -- tests/functional --reverse

frontend:
name: Frontend
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache the node_modules dir
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}

- name: Format
run: make frontend-checkformatting

- name: Lint
run: make frontend-lint

- name: Test
run: gulp test
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache the .tox dir
uses: actions/cache@v3
with:
path: .tox
key: functests-${{ runner.os }}-tox-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements/*') }}
restore-keys: |
functests-${{ runner.os }}-tox-
- name: Create test database
run: psql -U postgres -h localhost -p 5432 -c 'CREATE DATABASE h_functests'
- run: python -m pip install 'tox<4'
- run: yarn install --immutable
- run: yarn build
- run: tox -e functests
Frontend:
uses: ./.github/workflows/frontend.yml
Loading
Loading