aind-data-transfer-service 1.19.0__py3-none-any.whl → 1.20.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import os
4
4
 
5
- __version__ = "1.19.0"
5
+ __version__ = "1.20.0"
6
6
 
7
7
  # Global constants
8
8
  OPEN_DATA_BUCKET_NAME = os.getenv("OPEN_DATA_BUCKET_NAME", "open")
@@ -686,11 +686,13 @@ async def get_task_logs(request: Request):
686
686
 
687
687
  async def index(request: Request):
688
688
  """GET|POST /: form handler"""
689
+ user = request.session.get("user")
689
690
  return templates.TemplateResponse(
690
691
  request=request,
691
692
  name="index.html",
692
693
  context=(
693
694
  {
695
+ "user_signed_in": user is not None,
694
696
  "project_names_url": project_names_url,
695
697
  }
696
698
  ),
@@ -738,12 +740,14 @@ async def task_logs(request: Request):
738
740
 
739
741
  async def jobs(request: Request):
740
742
  """Get Job Status page with pagination"""
743
+ user = request.session.get("user")
741
744
  dag_ids = AirflowDagRunsRequestParameters.model_fields["dag_ids"].default
742
745
  return templates.TemplateResponse(
743
746
  request=request,
744
747
  name="job_status.html",
745
748
  context=(
746
749
  {
750
+ "user_signed_in": user is not None,
747
751
  "project_names_url": project_names_url,
748
752
  "dag_ids": dag_ids,
749
753
  }
@@ -955,9 +959,10 @@ async def admin(request: Request):
955
959
  name="admin.html",
956
960
  context=(
957
961
  {
958
- "project_names_url": project_names_url,
962
+ "user_signed_in": user is not None,
959
963
  "user_name": user.get("name", "unknown"),
960
964
  "user_email": user.get("email", "unknown"),
965
+ "project_names_url": project_names_url,
961
966
  }
962
967
  ),
963
968
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aind-data-transfer-service
3
- Version: 1.19.0
3
+ Version: 1.20.0
4
4
  Summary: Service that handles requests to upload data to the cloud
5
5
  Author: Allen Institute for Neural Dynamics
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
- aind_data_transfer_service/__init__.py,sha256=mUBnmoy8nxLMRsmlRIGafFHsFNnZN4hwdrBZJi7zIUA,273
1
+ aind_data_transfer_service/__init__.py,sha256=0Tg_XABtYFzHXVwU7PkAqA-H3SNTaKUlzP8zb_D1nPY,273
2
2
  aind_data_transfer_service/log_handler.py,sha256=uchOHpfIIcm4lbsquzhoX2sHGndxERdyoc4wBUZHckw,1703
3
- aind_data_transfer_service/server.py,sha256=xcpJcBd6UatG-acUOhyi6_8UnkXMYW7I9HdrEvPJBtQ,37267
3
+ aind_data_transfer_service/server.py,sha256=BPm2J2nyF7pni00pGMsw9Wuk3QAbn6DCfA2CzLUkjMM,37505
4
4
  aind_data_transfer_service/configs/__init__.py,sha256=9W5GTuso9Is1B9X16RXcdb_GxasZvj6qDzOBDv0AbTc,36
5
5
  aind_data_transfer_service/configs/csv_handler.py,sha256=0MDdYvGZxDxZhvkhKRA4AMYYF7Iubmcc-JLNBBu2Uxk,5873
6
6
  aind_data_transfer_service/configs/job_upload_template.py,sha256=ajlqkkpUM-KFVynCCWj44mrxPTRAU2dc3IBu16Sq4R0,5142
@@ -8,8 +8,8 @@ aind_data_transfer_service/configs/platforms_v1.py,sha256=XwLG2ua9uTanuEi7N8y-mG
8
8
  aind_data_transfer_service/models/__init__.py,sha256=Meym73bEZ9nQr4QoeyhQmV3nRTYtd_4kWKPNygsBfJg,25
9
9
  aind_data_transfer_service/models/core.py,sha256=3tOslFEvIpgvMO-LnPIaySGxA3iJynQY5vXsXy6_VCk,10783
10
10
  aind_data_transfer_service/models/internal.py,sha256=tWO1yRMu9hHLv0mt7QhOwTPWGbKApWmCf1wwajx5qjI,10681
11
- aind_data_transfer_service-1.19.0.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
12
- aind_data_transfer_service-1.19.0.dist-info/METADATA,sha256=spT4FAzLg9CDlw_dVG5GvKImAxEvy_jEI5Zk1JGWmbQ,2336
13
- aind_data_transfer_service-1.19.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- aind_data_transfer_service-1.19.0.dist-info/top_level.txt,sha256=XmxH0q27Jholj2-VYh-6WMrh9Lw6kkuCX_fdsj3SaFE,27
15
- aind_data_transfer_service-1.19.0.dist-info/RECORD,,
11
+ aind_data_transfer_service-1.20.0.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
12
+ aind_data_transfer_service-1.20.0.dist-info/METADATA,sha256=Nv_KyD-ZAR5BRv9c6gfDE95hQ2kaXwDmxg4m-kVbpNI,2336
13
+ aind_data_transfer_service-1.20.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ aind_data_transfer_service-1.20.0.dist-info/top_level.txt,sha256=XmxH0q27Jholj2-VYh-6WMrh9Lw6kkuCX_fdsj3SaFE,27
15
+ aind_data_transfer_service-1.20.0.dist-info/RECORD,,