Skip to content

Commit 1caa6b1

Browse files
committed
Merge branch 'dev' into projects_summary_endpoint
2 parents a693a01 + 01bf58c commit 1caa6b1

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

api/graphql/schema.py

+2
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,13 @@ async def analyses(
362362
active: GraphQLFilter[bool] | None = None,
363363
meta: GraphQLMetaFilter | None = None,
364364
timestamp_completed: GraphQLFilter[datetime.datetime] | None = None,
365+
ids: GraphQLFilter[int] | None = None,
365366
) -> list['GraphQLAnalysis']:
366367
connection = info.context['connection']
367368
connection.project = root.id
368369
internal_analysis = await AnalysisLayer(connection).query(
369370
AnalysisFilter(
371+
id=ids.to_internal_filter() if ids else None,
370372
type=type.to_internal_filter() if type else None,
371373
status=(
372374
status.to_internal_filter()

compile_requirements.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# To avoid pip-compile deciding requirements on your specific machine,
4+
# we use a docker container to compile the requirements, which should match
5+
# the architecture of the dev environment.
6+
7+
docker run --platform linux/amd64 -v $(pwd):/opt/metamist python:3.11 /bin/bash -c '
8+
cd /opt/metamist;
9+
pip install pip-tools;
10+
pip-compile requirements.in > requirements.txt;
11+
pip-compile --output-file=requirements-dev.txt requirements-dev.in requirements.in
12+
'

requirements-dev.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ flake8-bugbear
88
nest-asyncio
99
pre-commit
1010
pylint
11-
testcontainers[mysql]>=4.4.1
11+
testcontainers[mysql]>=4.5.0
1212
types-PyMySQL
1313
# some strawberry dependency
1414
strawberry-graphql[debug-server]==0.229.0

requirements-dev.txt

+5-13
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ cryptography==42.0.7
8383
# azure-storage-blob
8484
# pymysql
8585
databases[mysql]==0.9.0
86-
# via
87-
# -r requirements.in
88-
# databases
86+
# via -r requirements.in
8987
deprecated==1.2.14
9088
# via cpg-utils
9189
deprecation==2.1.0
@@ -96,14 +94,13 @@ distlib==0.3.8
9694
# via virtualenv
9795
dnspython==2.6.1
9896
# via email-validator
99-
docker==7.0.0
97+
docker==7.1.0
10098
# via testcontainers
10199
email-validator==2.1.1
102100
# via fastapi
103101
fastapi[all]==0.110.2
104102
# via
105103
# -r requirements.in
106-
# fastapi
107104
# strawberry-graphql
108105
filelock==3.14.0
109106
# via virtualenv
@@ -125,7 +122,6 @@ functions-framework==3.5.0
125122
# via -r requirements-dev.in
126123
google-api-core[grpc]==2.19.0
127124
# via
128-
# google-api-core
129125
# google-cloud-appengine-logging
130126
# google-cloud-bigquery
131127
# google-cloud-core
@@ -267,7 +263,6 @@ packaging==24.0
267263
# via
268264
# black
269265
# deprecation
270-
# docker
271266
# google-cloud-bigquery
272267
# gunicorn
273268
pathspec==0.12.1
@@ -355,7 +350,7 @@ pyyaml==6.0.1
355350
# libcst
356351
# pre-commit
357352
# uvicorn
358-
requests==2.31.0
353+
requests==2.32.2
359354
# via
360355
# -r requirements.in
361356
# azure-core
@@ -398,13 +393,10 @@ strawberry-graphql[debug-server,fastapi]==0.229.0
398393
# via
399394
# -r requirements-dev.in
400395
# -r requirements.in
401-
# strawberry-graphql
402396
tabulate==0.9.0
403397
# via cpg-utils
404-
testcontainers[mysql]==4.4.1
405-
# via
406-
# -r requirements-dev.in
407-
# testcontainers
398+
testcontainers[mysql]==4.5.0
399+
# via -r requirements-dev.in
408400
toml==0.10.2
409401
# via cpg-utils
410402
tomlkit==0.12.5

requirements.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cpg-utils>=5.0.5
77
aiohttp
88
async_lru
99
cloudpathlib
10-
requests==2.31.0
10+
requests
1111
google-auth>=2.19.0
1212
google-cloud-bigquery==3.11.4
1313
google-cloud-logging==2.7.0

requirements.txt

+10-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ aiosignal==1.3.1
1212
# via aiohttp
1313
annotated-types==0.7.0
1414
# via pydantic
15-
anyio==4.3.0
15+
anyio==4.4.0
1616
# via
1717
# httpx
1818
# starlette
@@ -27,12 +27,12 @@ azure-storage-blob==12.20.0
2727
# via cloudpathlib
2828
backoff==2.2.1
2929
# via -r requirements.in
30-
boto3==1.34.111
30+
boto3==1.34.115
3131
# via
3232
# -r requirements.in
3333
# cloudpathlib
3434
# cpg-utils
35-
botocore==1.34.111
35+
botocore==1.34.115
3636
# via
3737
# -r requirements.in
3838
# boto3
@@ -62,9 +62,7 @@ cryptography==42.0.7
6262
# -r requirements.in
6363
# azure-storage-blob
6464
databases[mysql]==0.9.0
65-
# via
66-
# -r requirements.in
67-
# databases
65+
# via -r requirements.in
6866
deprecated==1.2.14
6967
# via cpg-utils
7068
dnspython==2.6.1
@@ -74,7 +72,6 @@ email-validator==2.1.1
7472
fastapi[all]==0.110.2
7573
# via
7674
# -r requirements.in
77-
# fastapi
7875
# strawberry-graphql
7976
frozendict==2.4.4
8077
# via cpg-utils
@@ -84,7 +81,6 @@ frozenlist==1.4.1
8481
# aiosignal
8582
google-api-core[grpc]==2.19.0
8683
# via
87-
# google-api-core
8884
# google-cloud-appengine-logging
8985
# google-cloud-bigquery
9086
# google-cloud-core
@@ -221,12 +217,12 @@ pyasn1-modules==0.4.0
221217
# via google-auth
222218
pycparser==2.22
223219
# via cffi
224-
pydantic==2.7.1
220+
pydantic==2.7.2
225221
# via
226222
# fastapi
227223
# pydantic-extra-types
228224
# pydantic-settings
229-
pydantic-core==2.18.2
225+
pydantic-core==2.18.3
230226
# via pydantic
231227
pydantic-extra-types==2.7.0
232228
# via fastapi
@@ -252,7 +248,7 @@ pyyaml==6.0.1
252248
# via
253249
# fastapi
254250
# uvicorn
255-
requests==2.31.0
251+
requests==2.32.3
256252
# via
257253
# -r requirements.in
258254
# azure-core
@@ -281,14 +277,12 @@ sqlalchemy==2.0.30
281277
starlette==0.37.2
282278
# via fastapi
283279
strawberry-graphql[fastapi]==0.229.0
284-
# via
285-
# -r requirements.in
286-
# strawberry-graphql
280+
# via -r requirements.in
287281
tabulate==0.9.0
288282
# via cpg-utils
289283
toml==0.10.2
290284
# via cpg-utils
291-
typing-extensions==4.11.0
285+
typing-extensions==4.12.0
292286
# via
293287
# azure-core
294288
# azure-storage-blob
@@ -309,7 +303,7 @@ uvicorn[standard]==0.29.0
309303
# fastapi
310304
uvloop==0.19.0
311305
# via uvicorn
312-
watchfiles==0.21.0
306+
watchfiles==0.22.0
313307
# via uvicorn
314308
websockets==12.0
315309
# via uvicorn

0 commit comments

Comments
 (0)