nci-cidc-api-modules 1.2.2__py3-none-any.whl → 1.2.3__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.
- cidc_api/models/models.py +17 -1
- {nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/METADATA +2 -2
- {nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/RECORD +6 -6
- {nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/WHEEL +0 -0
- {nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/licenses/LICENSE +0 -0
- {nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/top_level.txt +0 -0
cidc_api/models/models.py
CHANGED
@@ -26,6 +26,7 @@ __all__ = [
|
|
26
26
|
"FileValidationErrors",
|
27
27
|
"IngestionJobs",
|
28
28
|
"JobFileCategories",
|
29
|
+
"ValidationConfigs",
|
29
30
|
"TRIAL_APPENDIX_A",
|
30
31
|
"REQUEST_LETTER",
|
31
32
|
"ADMIN_FILE_CATEGORIES",
|
@@ -3430,7 +3431,7 @@ class IngestionJobs(CommonColumns):
|
|
3430
3431
|
trial_id = Column(String, nullable=False)
|
3431
3432
|
version = Column(Integer, nullable=False)
|
3432
3433
|
pending = Column(Boolean, nullable=False, default=False)
|
3433
|
-
start_date = Column(
|
3434
|
+
start_date = Column(DateTime, nullable=True)
|
3434
3435
|
|
3435
3436
|
@staticmethod
|
3436
3437
|
@with_default_session
|
@@ -3607,3 +3608,18 @@ class FileValidationErrors(CommonColumns):
|
|
3607
3608
|
@with_default_session
|
3608
3609
|
def get_errors_for_job_sorted_by_file_id(cls, job_id: int, session: Session = None) -> list["FileValidationErrors"]:
|
3609
3610
|
return session.query(cls).filter(cls.job_id == job_id).order_by(cls.file_id.asc()).all()
|
3611
|
+
|
3612
|
+
|
3613
|
+
class ValidationConfigs(CommonColumns):
|
3614
|
+
__tablename__ = "validation_configs"
|
3615
|
+
|
3616
|
+
data_label = Column(String, nullable=True)
|
3617
|
+
validation = Column(String, nullable=True)
|
3618
|
+
scope = Column(String, nullable=True)
|
3619
|
+
active = Column(Boolean, nullable=False, default=True, server_default="true")
|
3620
|
+
|
3621
|
+
@classmethod
|
3622
|
+
@with_default_session
|
3623
|
+
def get_active_configs_by_scope(cls, scope: str, session=None) -> list["ValidationConfigs"]:
|
3624
|
+
"""Return all active ValidationConfigs rows for the given scope."""
|
3625
|
+
return session.query(cls).filter(cls.scope == scope, cls.active.is_(True)).all()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nci_cidc_api_modules
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.3
|
4
4
|
Summary: SQLAlchemy data models and configuration tools used in the NCI CIDC API
|
5
5
|
Home-page: https://github.com/NCI-CIDC/cidc-api-gae
|
6
6
|
License: MIT license
|
@@ -395,7 +395,7 @@ API authentication relies on _identity tokens_ generated by Auth0 to verify that
|
|
395
395
|
|
396
396
|
- It is a well-formatted JWT.
|
397
397
|
- It has not yet expired.
|
398
|
-
- Its cryptographic signature is valid.
|
398
|
+
- Its cryptographic signature is valid.
|
399
399
|
|
400
400
|
JWTs are a lot like passports - they convey personal information, they’re issued by a trusted entity, and they expire after a certain time. Moreover, like passports, JWTs **can be stolen** and used to impersonate someone. As such, JWTs should be kept private and treated sort of like short-lived passwords.
|
401
401
|
|
@@ -5,7 +5,7 @@ cidc_api/config/secrets.py,sha256=jRFj7W43pWuPf9DZQLCKF7WPXf5cUv-BAaS3ASqhV_Q,14
|
|
5
5
|
cidc_api/config/settings.py,sha256=NsJbqW6Vqcz2f79xcAbk4th5tHne_I-RPCbKq_3hpz0,4427
|
6
6
|
cidc_api/models/__init__.py,sha256=bl445G8Zic9YbhZ8ZBni07wtBMhLJRMBA-JqjLxx2bw,66
|
7
7
|
cidc_api/models/migrations.py,sha256=gp9vtkYbA9FFy2s-7woelAmsvQbJ41LO2_DY-YkFIrQ,11464
|
8
|
-
cidc_api/models/models.py,sha256=
|
8
|
+
cidc_api/models/models.py,sha256=b8V3TmETY0v8IVcKQPoNgIPgZ6iXP9TbSOE5CCLKJKM,146237
|
9
9
|
cidc_api/models/schemas.py,sha256=6IE2dJoEMcMbi0Vr1V3cYKnPKU0hv9vRKBixOZHe88s,2766
|
10
10
|
cidc_api/models/files/__init__.py,sha256=8BMTnUSHzUbz0lBeEQY6NvApxDD3GMWMduoVMos2g4Y,213
|
11
11
|
cidc_api/models/files/details.py,sha256=sZkGM7iEV4-J6IDQCdiMV6KBDLbPxCOqUMaU3aY9rX8,65153
|
@@ -17,8 +17,8 @@ cidc_api/shared/file_handling.py,sha256=l4wiRkVJLL7QbCoODsLx-uki6Km8QoMmUlRVnUV9
|
|
17
17
|
cidc_api/shared/gcloud_client.py,sha256=ETQ34qKtO7l0svVhiHXxXewiyNjwIMgoeVcqrg-Twtk,36902
|
18
18
|
cidc_api/shared/jose.py,sha256=-qzGzEDAlokEp9E7WtBtQkXyyfPWTYXlwYpCqVJWmqM,1830
|
19
19
|
cidc_api/shared/rest_utils.py,sha256=RwR30WOUAYCxL7V-i2totEyeriG30GbBDvBcpLXhM9w,6594
|
20
|
-
nci_cidc_api_modules-1.2.
|
21
|
-
nci_cidc_api_modules-1.2.
|
22
|
-
nci_cidc_api_modules-1.2.
|
23
|
-
nci_cidc_api_modules-1.2.
|
24
|
-
nci_cidc_api_modules-1.2.
|
20
|
+
nci_cidc_api_modules-1.2.3.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
|
21
|
+
nci_cidc_api_modules-1.2.3.dist-info/METADATA,sha256=_aGCpl7oQ9ikj7nwIYvcW6Zd6gg3DFkFsm3rhxkwaFk,39538
|
22
|
+
nci_cidc_api_modules-1.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
nci_cidc_api_modules-1.2.3.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
|
24
|
+
nci_cidc_api_modules-1.2.3.dist-info/RECORD,,
|
File without changes
|
{nci_cidc_api_modules-1.2.2.dist-info → nci_cidc_api_modules-1.2.3.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|