Skip to content

Commit

Permalink
generic: bump inspire-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Jan 10, 2025
1 parent 6dcf330 commit 836f6eb
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 86 deletions.
8 changes: 4 additions & 4 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Flask = ">=1.0.2"
msgpack = "==0.6.2"

python = ">=3.11,<3.12"
inspire-schemas = ">=61.6.4"
inspire-schemas = ">=61.6.8"
inspire-utils = ">=3.0.63"
inspire-service-orcid = {git = "https://github.com/inspirehep/inspire-service-orcid.git", rev = "1a0e762e58bc9cac65f7665b9831993c017fd8bb"}
inspire-json-merger = "^11.0.37"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ interactions:
- request:
body: '{"functional_category": "Author submissions", "template": "curator_new_author",
"subject": "Your suggestion to INSPIRE: author Third B", "template_context":
{"email": "[email protected]", "obj_url": "http://host.docker.internal:8080/backoffice/66277811-fe66-4335-9aff-984583fb1228"},
{"email": "[email protected]", "obj_url": "http://host.docker.internal:8080/backoffice/00000000-0000-0000-0000-000000001521"},
"caller_email": "[email protected]"}'
headers:
Accept:
Expand All @@ -12,38 +12,32 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '333'
- '342'
Content-Type:
- application/json
method: POST
uri: http://host.docker.internal:8080/api/tickets/create
response:
body:
string: '{"ticket_id":"dfa417a0870a561095f833340cbb3599","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=dfa417a0870a561095f833340cbb3599"}
string: '{"ticket_id":"2e15a50d87c71e10225886640cbb3565","ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=2e15a50d87c71e10225886640cbb3565"}
'
headers:
access-control-allow-origin:
- '*'
access-control-expose-headers:
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
alt-svc:
- h3=":443";ma=60;
content-length:
Connection:
- keep-alive
Content-Length:
- '181'
content-type:
Content-Type:
- application/json
date:
- Wed, 20 Nov 2024 15:30:34 GMT
server:
- gunicorn/19.10.0
x-proxy-backend:
- inspire-qa_hep-web_http
Date:
- Fri, 10 Jan 2025 13:42:51 GMT
Server:
- nginx/1.19.1
status:
code: 200
message: OK
- request:
body: '{"ticket_id": "dfa417a0870a561095f833340cbb3599", "template": "user_new_author",
body: '{"ticket_id": "2e15a50d87c71e10225886640cbb3565", "template": "user_new_author",
"template_context": {"user_name": "[email protected]", "author_name":
"Third B"}, "user_email": "[email protected]"}'
headers:
Expand All @@ -65,28 +59,22 @@ interactions:
'
headers:
access-control-allow-origin:
- '*'
access-control-expose-headers:
- Content-Type, ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
alt-svc:
- h3=":443";ma=60;
content-length:
Connection:
- keep-alive
Content-Length:
- '48'
content-type:
Content-Type:
- application/json
date:
- Wed, 20 Nov 2024 15:30:35 GMT
server:
- gunicorn/19.10.0
x-proxy-backend:
- inspire-qa_hep-web_http
Date:
- Fri, 10 Jan 2025 13:42:52 GMT
Server:
- nginx/1.19.1
status:
code: 200
message: OK
- request:
body: '{"ticket_type": "author_create_user", "ticket_id": "dfa417a0870a561095f833340cbb3599",
"workflow": "66277811-fe66-4335-9aff-984583fb1228"}'
body: '{"ticket_type": "author_create_user", "ticket_id": "2e15a50d87c71e10225886640cbb3565",
"workflow": "00000000-0000-0000-0000-000000001521"}'
headers:
Accept:
- application/json
Expand All @@ -102,7 +90,7 @@ interactions:
uri: http://host.docker.internal:8001/api/workflows/authors/tickets/
response:
body:
string: '{"id":5,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=dfa417a0870a561095f833340cbb3599","workflow":"66277811-fe66-4335-9aff-984583fb1228","ticket_id":"dfa417a0870a561095f833340cbb3599","ticket_type":"author_create_user","_created_at":"2024-11-20T15:30:35.448536Z","_updated_at":"2024-11-20T15:30:35.448543Z"}'
string: '{"id":1,"ticket_url":"https://cerntraining.service-now.com/nav_to.do?uri=/u_request_fulfillment.do?sys_id=2e15a50d87c71e10225886640cbb3565","workflow":"00000000-0000-0000-0000-000000001521","ticket_id":"2e15a50d87c71e10225886640cbb3565","ticket_type":"author_create_user","_created_at":"2025-01-10T13:42:52.690153Z","_updated_at":"2025-01-10T13:42:52.690245Z"}'
headers:
Allow:
- GET, POST, HEAD, OPTIONS
Expand All @@ -115,17 +103,24 @@ interactions:
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Wed, 20 Nov 2024 15:30:35 GMT
- Fri, 10 Jan 2025 13:42:52 GMT
Referrer-Policy:
- same-origin
Server:
- WSGIServer/0.2 CPython/3.11.6
Server-Timing:
- TimerPanel_utime;dur=146.39699999999945;desc="User CPU time", TimerPanel_stime;dur=14.762000000000164;desc="System
CPU time", TimerPanel_total;dur=161.15899999999962;desc="Total CPU time",
TimerPanel_total_time;dur=179.73545900167665;desc="Elapsed time", SQLPanel_sql_time;dur=16.617833003692795;desc="SQL
7 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls"
Vary:
- Accept, Accept-Language, Cookie, origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
djdt-store-id:
- 98e12724c23c4562b86d5391c31f7148
status:
code: 201
message: Created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interactions:
"_collections": ["Authors"], "acquisition_source": {"datetime": "2024-11-18T11:34:19.809575",
"email": "[email protected]", "internal_uid": 50872, "method": "submitter",
"orcid": "0000-0002-7638-5686", "source": "submitter"}, "name": {"preferred_name":
"Third B", "value": "B, Third"}, "status": "active"}}'
"Third B", "value": "B, Third"}, "status": "active", "control_number": 123457}}'
headers:
Accept:
- application/json
Expand All @@ -13,38 +13,45 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '393'
- '419'
Content-Type:
- application/json
method: PATCH
uri: http://host.docker.internal:8001/api/workflows/authors/00000000-0000-0000-0000-000000001521/
response:
body:
string: '{"id":"00000000-0000-0000-0000-000000001521","tickets":[],"decisions":[],"data":{"$schema":"https://inspirehep.net/schemas/records/authors.json","_collections":["Authors"],"acquisition_source":{"datetime":"2024-11-18T11:34:19.809575","email":"[email protected]","internal_uid":50872,"method":"submitter","orcid":"0000-0002-7638-5686","source":"submitter"},"name":{"preferred_name":"Third
B","value":"B, Third"},"status":"active"},"workflow_type":"AUTHOR_CREATE","status":"running","_created_at":"2024-11-25T13:49:53.009000Z","_updated_at":"2024-11-26T14:13:56.571976Z"}'
B","value":"B, Third"},"status":"active","control_number":123457},"workflow_type":"AUTHOR_CREATE","status":"running","_created_at":"2024-11-25T13:49:53.009000Z","_updated_at":"2025-01-10T12:55:20.785555Z"}'
headers:
Allow:
- GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Language:
- en
Content-Length:
- '580'
- '604'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Tue, 26 Nov 2024 14:13:56 GMT
- Fri, 10 Jan 2025 12:55:21 GMT
Referrer-Policy:
- same-origin
Server:
- WSGIServer/0.2 CPython/3.11.6
Server-Timing:
- TimerPanel_utime;dur=50.15399999999204;desc="User CPU time", TimerPanel_stime;dur=7.6459999999940464;desc="System
CPU time", TimerPanel_total;dur=57.799999999986085;desc="Total CPU time",
TimerPanel_total_time;dur=1219.1071679990273;desc="Elapsed time", SQLPanel_sql_time;dur=5.850291992828716;desc="SQL
10 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls"
Vary:
- Accept, Accept-Language, Cookie, origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
djdt-store-id:
- d5591da70a814de8bcd6c3172f8f4340
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
method: GET
uri: http://host.docker.internal:8080/api/doi/10.1234567/test
uri: http://host.docker.internal:8080/api/doi/10.1234568/test
response:
body:
string: '{"status": 404, "message": "PID does not exist."}'
Expand All @@ -21,7 +21,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 11 Dec 2024 16:16:05 GMT
- Fri, 10 Jan 2025 10:28:29 GMT
Server:
- nginx/1.19.1
status:
Expand All @@ -37,7 +37,7 @@ interactions:
Connection:
- keep-alive
method: GET
uri: http://host.docker.internal:8080/api/doi/10.1234567/test
uri: http://host.docker.internal:8080/api/doi/10.1234568/test
response:
body:
string: '{"status": 404, "message": "PID does not exist."}'
Expand All @@ -49,7 +49,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 11 Dec 2024 16:16:06 GMT
- Fri, 10 Jan 2025 10:28:30 GMT
Server:
- nginx/1.19.1
status:
Expand All @@ -65,7 +65,7 @@ interactions:
Connection:
- keep-alive
method: GET
uri: http://host.docker.internal:8080/api/doi/10.1234567/test
uri: http://host.docker.internal:8080/api/doi/10.1234568/test
response:
body:
string: '{"status": 404, "message": "PID does not exist."}'
Expand All @@ -77,7 +77,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 11 Dec 2024 16:16:08 GMT
- Fri, 10 Jan 2025 10:28:32 GMT
Server:
- nginx/1.19.1
status:
Expand All @@ -93,7 +93,7 @@ interactions:
Connection:
- keep-alive
method: GET
uri: http://host.docker.internal:8080/api/doi/10.1234567/test
uri: http://host.docker.internal:8080/api/doi/10.1234568/test
response:
body:
string: '{"status": 404, "message": "PID does not exist."}'
Expand All @@ -105,7 +105,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 11 Dec 2024 16:16:12 GMT
- Fri, 10 Jan 2025 10:28:36 GMT
Server:
- nginx/1.19.1
status:
Expand All @@ -121,7 +121,7 @@ interactions:
Connection:
- keep-alive
method: GET
uri: http://host.docker.internal:8080/api/doi/10.1234567/test
uri: http://host.docker.internal:8080/api/doi/10.1234568/test
response:
body:
string: '{"status": 404, "message": "PID does not exist."}'
Expand All @@ -133,15 +133,17 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 11 Dec 2024 16:16:20 GMT
- Fri, 10 Jan 2025 10:28:44 GMT
Server:
- nginx/1.19.1
status:
code: 404
message: NOT FOUND
- request:
body: '{"_collections": ["Data"], "$schema": "https://inspirehep.net/schemas/records/data.json",
"dois": [{"value": "10.1234567/test", "material": "data"}]}'
"dois": [{"value": "10.1234568/test", "material": "data"}], "acquisition_source":
{"source": "inspirehep", "submission_number": "2829504", "datetime": "2025-01-09T16:14:51.647320+00:00",
"method": "inspirehep"}}'
headers:
Accept:
- application/vnd+inspire.record.raw+json
Expand All @@ -150,37 +152,37 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '149'
- '301'
Content-Type:
- application/json
method: POST
uri: http://host.docker.internal:8080/api/data
response:
body:
string: '{"metadata":{"_collections":["Data"],"$schema":"https://inspirehep.net/schemas/records/data.json","dois":[{"value":"10.1234567/test","material":"data"}],"control_number":2610637,"self":{"$ref":"http://localhost:8000/api/data/2610637"}},"revision_id":0,"updated":"2024-12-11T16:16:20.351311+00:00","uuid":"b765f128-72f8-4120-ac43-9242ad2c40a6","created":"2024-12-11T16:16:20.351308+00:00","id":"{2610637}","links":{"json":"http://localhost:8000/api/data/%7B2610637%7D?format=json"}}'
string: '{"links":{"json":"http://localhost:8000/api/data/%7B2727285%7D?format=json"},"revision_id":0,"uuid":"d0e25a25-c167-43c4-a5ed-0746758572df","created":"2025-01-10T10:28:44.881337+00:00","updated":"2025-01-10T10:28:44.881390+00:00","metadata":{"_collections":["Data"],"$schema":"https://inspirehep.net/schemas/records/data.json","dois":[{"value":"10.1234568/test","material":"data"}],"acquisition_source":{"source":"inspirehep","submission_number":"2829504","datetime":"2025-01-09T16:14:51.647320+00:00","method":"inspirehep"},"control_number":2727285,"self":{"$ref":"http://localhost:8000/api/data/2727285"}},"id":"{2727285}"}'
headers:
Cache-Control:
- no-cache
Connection:
- keep-alive
Content-Length:
- '481'
- '624'
Content-Type:
- application/vnd+inspire.record.raw+json
Date:
- Wed, 11 Dec 2024 16:16:20 GMT
- Fri, 10 Jan 2025 10:28:44 GMT
ETag:
- W/"0"
Last-Modified:
- Wed, 11 Dec 2024 16:16:20 GMT
- Fri, 10 Jan 2025 10:28:44 GMT
Link:
- <json>; rel="http://localhost:8000/api/data/%7B2610637%7D?format=json"
- <json>; rel="http://localhost:8000/api/data/%7B2727285%7D?format=json"
Server:
- nginx/1.19.1
Vary:
- Accept,Accept-Encoding,Accept-Language
location:
- http://localhost:8000/api/data/%7B2610637%7D
- http://localhost:8000/api/data/%7B2727285%7D
status:
code: 201
message: CREATED
Expand Down
Loading

0 comments on commit 836f6eb

Please sign in to comment.