cornflow 1.1.1a1__py3-none-any.whl → 1.1.2__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.
- cornflow/app.py +0 -4
- cornflow/cli/utils.py +1 -1
- cornflow/config.py +2 -10
- cornflow/endpoints/__init__.py +0 -14
- cornflow/endpoints/execution.py +1 -1
- cornflow/endpoints/login.py +6 -26
- cornflow/models/__init__.py +0 -2
- cornflow/models/execution.py +0 -8
- cornflow/models/meta_models.py +12 -23
- cornflow/schemas/execution.py +0 -3
- cornflow/shared/const.py +0 -21
- cornflow/shared/exceptions.py +9 -20
- cornflow/tests/const.py +0 -7
- cornflow/tests/{custom_live_server.py → custom_liveServer.py} +1 -3
- cornflow/tests/custom_test_case.py +3 -2
- cornflow/tests/integration/test_commands.py +1 -1
- cornflow/tests/integration/test_cornflowclient.py +28 -116
- cornflow/tests/unit/test_alarms.py +9 -22
- cornflow/tests/unit/test_cli.py +5 -10
- cornflow/tests/unit/test_commands.py +2 -6
- cornflow/tests/unit/test_executions.py +0 -5
- cornflow/tests/unit/test_main_alarms.py +0 -8
- cornflow/tests/unit/test_users.py +2 -5
- {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/METADATA +7 -7
- {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/RECORD +28 -35
- cornflow/endpoints/reports.py +0 -283
- cornflow/migrations/versions/83164be03c23_.py +0 -40
- cornflow/migrations/versions/96f00d0961d1_reports_table.py +0 -50
- cornflow/models/reports.py +0 -119
- cornflow/schemas/reports.py +0 -48
- cornflow/static/v1.json +0 -3854
- cornflow/tests/unit/test_reports.py +0 -308
- {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/WHEEL +0 -0
- {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/entry_points.txt +0 -0
- {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/top_level.txt +0 -0
cornflow/schemas/reports.py
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# Imports from libraries
|
2
|
-
from marshmallow import fields, Schema, INCLUDE
|
3
|
-
|
4
|
-
# Imports from internal modules
|
5
|
-
from .common import BaseQueryFilters
|
6
|
-
|
7
|
-
|
8
|
-
class QueryFiltersReports(BaseQueryFilters):
|
9
|
-
execution_id = fields.Str(required=False)
|
10
|
-
|
11
|
-
|
12
|
-
class ReportSchemaBase(Schema):
|
13
|
-
id = fields.Int(dump_only=True)
|
14
|
-
file_url = fields.Str(required=False)
|
15
|
-
name = fields.Str(required=True)
|
16
|
-
state = fields.Int()
|
17
|
-
|
18
|
-
|
19
|
-
class ReportSchema(ReportSchemaBase):
|
20
|
-
user_id = fields.Int(required=False, load_only=True)
|
21
|
-
execution_id = fields.Str(required=True)
|
22
|
-
description = fields.Str()
|
23
|
-
state_message = fields.Str()
|
24
|
-
created_at = fields.DateTime(dump_only=True)
|
25
|
-
updated_at = fields.DateTime(dump_only=True)
|
26
|
-
deleted_at = fields.DateTime(dump_only=True)
|
27
|
-
|
28
|
-
|
29
|
-
class ReportEditRequest(Schema):
|
30
|
-
class META:
|
31
|
-
unknown = INCLUDE
|
32
|
-
|
33
|
-
name = fields.Str()
|
34
|
-
description = fields.Str()
|
35
|
-
file_url = fields.Str(required=False)
|
36
|
-
state = fields.Int()
|
37
|
-
state_message = fields.Str()
|
38
|
-
|
39
|
-
|
40
|
-
class ReportRequest(Schema):
|
41
|
-
class META:
|
42
|
-
unknown = INCLUDE
|
43
|
-
|
44
|
-
name = fields.Str(required=True)
|
45
|
-
description = fields.Str(required=False)
|
46
|
-
execution_id = fields.Str(required=True)
|
47
|
-
state = fields.Int()
|
48
|
-
state_message = fields.Str()
|