aind-data-transfer-service 1.18.2__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.18.2"
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
  }
@@ -763,8 +767,7 @@ async def job_params(request: Request):
763
767
  "project_names_url": os.getenv(
764
768
  "AIND_METADATA_SERVICE_PROJECT_NAMES_URL"
765
769
  ),
766
- "versions": ["v1", "v2"],
767
- "default_version": "v1",
770
+ "default_version": "v2",
768
771
  "modalities": JobParamInfo._MODALITIES_LIST,
769
772
  "modality_tasks": JobParamInfo._MODALITY_TASKS,
770
773
  }
@@ -956,9 +959,10 @@ async def admin(request: Request):
956
959
  name="admin.html",
957
960
  context=(
958
961
  {
959
- "project_names_url": project_names_url,
962
+ "user_signed_in": user is not None,
960
963
  "user_name": user.get("name", "unknown"),
961
964
  "user_email": user.get("email", "unknown"),
965
+ "project_names_url": project_names_url,
962
966
  }
963
967
  ),
964
968
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aind-data-transfer-service
3
- Version: 1.18.2
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=y3uIcaElpDkLB1RgvGJGgaJeRmPFUuTSkTJ5NSawCd4,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=KmHcueapTzfnHSPA8vEg5ivV6wL_YWu7wErO9hVAl4Y,37309
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.18.2.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
12
- aind_data_transfer_service-1.18.2.dist-info/METADATA,sha256=xtY38l0fC4kg0YFmBEEbHrSzqVckluByJCs1noZMBiQ,2336
13
- aind_data_transfer_service-1.18.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- aind_data_transfer_service-1.18.2.dist-info/top_level.txt,sha256=XmxH0q27Jholj2-VYh-6WMrh9Lw6kkuCX_fdsj3SaFE,27
15
- aind_data_transfer_service-1.18.2.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,,