edu-rdm-integration 0.6.2__py3-none-any.whl → 0.6.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.
- edu_rdm_integration/collect_data/generators.py +5 -0
- edu_rdm_integration/models.py +19 -4
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/METADATA +12 -1
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/RECORD +8 -8
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/LICENSE +0 -0
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/WHEEL +0 -0
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/namespace_packages.txt +0 -0
- {edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,4 @@
|
|
1
|
+
import uuid
|
1
2
|
from datetime import (
|
2
3
|
date,
|
3
4
|
datetime,
|
@@ -111,6 +112,8 @@ class BaseFirstCollectModelsDataCommandsGenerator:
|
|
111
112
|
|
112
113
|
self.batch_size = batch_size
|
113
114
|
|
115
|
+
self.generation_id = uuid.uuid4()
|
116
|
+
|
114
117
|
# Правую дату нужно увеличивать на одну секунду, т.к. подрезались миллисекунды
|
115
118
|
self.get_logs_periods_sql = (
|
116
119
|
"""
|
@@ -169,6 +172,7 @@ class BaseFirstCollectModelsDataCommandsGenerator:
|
|
169
172
|
'period_started_at': start_datetime,
|
170
173
|
'period_ended_at': end_datetime,
|
171
174
|
'model': rdm_model.key,
|
175
|
+
'generation_id': self.generation_id,
|
172
176
|
}
|
173
177
|
)
|
174
178
|
|
@@ -214,6 +218,7 @@ class BaseFirstCollectModelsDataCommandsGenerator:
|
|
214
218
|
'period_started_at': period_started_at,
|
215
219
|
'period_ended_at': period_ended_at,
|
216
220
|
'model': rdm_model.key,
|
221
|
+
'generation_id': self.generation_id,
|
217
222
|
}
|
218
223
|
)
|
219
224
|
|
edu_rdm_integration/models.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
import uuid
|
1
2
|
from datetime import (
|
2
3
|
datetime,
|
3
4
|
)
|
4
5
|
|
6
|
+
import django.utils.timezone
|
7
|
+
from django.contrib.postgres.fields import (
|
8
|
+
JSONField,
|
9
|
+
)
|
5
10
|
from django.db.models import (
|
6
11
|
CASCADE,
|
7
12
|
PROTECT,
|
@@ -11,8 +16,8 @@ from django.db.models import (
|
|
11
16
|
DateTimeField,
|
12
17
|
FileField,
|
13
18
|
ForeignKey,
|
14
|
-
PositiveSmallIntegerField,
|
15
19
|
SmallIntegerField,
|
20
|
+
UUIDField,
|
16
21
|
)
|
17
22
|
from m3.db import (
|
18
23
|
BaseObjectModel,
|
@@ -672,15 +677,25 @@ class AbstractCollectDataCommandProgress(ReprStrPreModelMixin, BaseObjectModel):
|
|
672
677
|
verbose_name='Модель РВД',
|
673
678
|
on_delete=PROTECT,
|
674
679
|
)
|
680
|
+
created = DateTimeField(
|
681
|
+
verbose_name='Дата создания',
|
682
|
+
default=django.utils.timezone.now,
|
683
|
+
)
|
675
684
|
logs_period_started_at = DateTimeField(
|
676
685
|
'Левая граница периода обрабатываемых логов',
|
677
686
|
)
|
678
687
|
logs_period_ended_at = DateTimeField(
|
679
688
|
'Правая граница периода обрабатываемых логов',
|
680
689
|
)
|
681
|
-
|
682
|
-
'
|
683
|
-
default=
|
690
|
+
generation_id = UUIDField(
|
691
|
+
'Идентификатор генерации',
|
692
|
+
default=uuid.uuid4,
|
693
|
+
)
|
694
|
+
institute_ids = JSONField(
|
695
|
+
'id учебного заведения',
|
696
|
+
blank=True,
|
697
|
+
null=True,
|
698
|
+
default=list,
|
684
699
|
)
|
685
700
|
|
686
701
|
class Meta:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: edu-rdm-integration
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.3
|
4
4
|
Summary: Интеграция с Региональной витриной данных
|
5
5
|
Home-page:
|
6
6
|
Download-URL:
|
@@ -279,6 +279,17 @@ Requires-Dist: uploader-client <1,>=0.1.12
|
|
279
279
|
### Удалено
|
280
280
|
|
281
281
|
|
282
|
+
## [0.6.3] - 2023-10-05
|
283
|
+
|
284
|
+
Доработка модели AbstractCollectDataCommandProgress и класса BaseFirstCollectModelsDataCommandsGenerator.
|
285
|
+
|
286
|
+
### Добавлено
|
287
|
+
|
288
|
+
- [EDUSCHL-20350](https://jira.bars.group/browse/EDUSCHL-20350)
|
289
|
+
PATCH - Добавлено формирование id генерации для команд в классе BaseFirstCollectModelsDataCommandsGenerator.
|
290
|
+
- Добавлены поля created, generation_id и institute_ids в модель AbstractCollectDataCommandProgress.
|
291
|
+
|
292
|
+
|
282
293
|
## [0.6.2] - 2023-10-04
|
283
294
|
|
284
295
|
### Изменено
|
@@ -5,7 +5,7 @@ edu_rdm_integration/consts.py,sha256=chOsPOOY4_JLzN-8idg-VjbLWSlp6r3maFWqnvUsapg
|
|
5
5
|
edu_rdm_integration/entities.py,sha256=mI48GExfRrQZsyg8leGJDaiy8Cmf3vlkIttNq2OYJZI,9117
|
6
6
|
edu_rdm_integration/enums.py,sha256=fnDPz6pwOYWS6vp65IAExbpDzn2q9U3_9GGyuf4B468,4876
|
7
7
|
edu_rdm_integration/mapping.py,sha256=bwa2fJCbV4YjQcAgRrgT3hgM6dJhr_uBtQgx3L3F2Ck,473
|
8
|
-
edu_rdm_integration/models.py,sha256=
|
8
|
+
edu_rdm_integration/models.py,sha256=agBoepF0YScpfxo3VZWvw6uy707IteT8CQVJmpUt7M4,22207
|
9
9
|
edu_rdm_integration/signals.py,sha256=3eRlpkDcFCF6TN80-QM8yBYLcyozzcmoPjz6r4_ApWg,73
|
10
10
|
edu_rdm_integration/storages.py,sha256=o5WqUG7SnkeuMt-z8spUi-IraivST-7KHzfY-M3v7FA,6807
|
11
11
|
edu_rdm_integration/utils.py,sha256=CgFrW1mEQim3wcCX6q9o9mvIm79ASQ92HojXyuN3dc0,5558
|
@@ -28,7 +28,7 @@ edu_rdm_integration/adapters/tests.py,sha256=MoRY-a75Ow-7EjeQYxkXWunwqTGuBMaUyEk
|
|
28
28
|
edu_rdm_integration/adapters/validators.py,sha256=LJWnCY8PtXDOj-fm3fBWjQYsHsSLfyKf_D97pqPv73s,496
|
29
29
|
edu_rdm_integration/collect_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
edu_rdm_integration/collect_data/collect.py,sha256=3sicEiX9v_EQtd5vFOyclSV-kYNV7FNxx09DdyIWIAk,12843
|
31
|
-
edu_rdm_integration/collect_data/generators.py,sha256=
|
31
|
+
edu_rdm_integration/collect_data/generators.py,sha256=lmXbptKxirEXw8yEYyFf3tRTjmg_zzbQn8Ox76cxAuY,8870
|
32
32
|
edu_rdm_integration/collect_data/helpers.py,sha256=EftJ8R-tn1r7Y_P6tGZmqxJ9-g89m12p9kA8NYmwwbQ,3009
|
33
33
|
edu_rdm_integration/collect_data/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
edu_rdm_integration/collect_data/base/caches.py,sha256=3BaJxYBk9fi0aiAVzym-Jz8aNP1eSOqh4Y8OVw1HnSg,763
|
@@ -98,9 +98,9 @@ edu_rdm_integration/management/commands/export_entities_data.py,sha256=Mas1zwsH-
|
|
98
98
|
edu_rdm_integration/migrations/0001_initial.py,sha256=toNuYoHZePe5wJ6AKEW9oPOdt2OefmxDEDDJGYQIrFk,18719
|
99
99
|
edu_rdm_integration/migrations/0002_init_data_uploadstatus.py,sha256=kht966YNuDbC3qTGrcWswJPsVuAtNO59Ck15G2eS2bU,944
|
100
100
|
edu_rdm_integration/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
101
|
-
edu_rdm_integration-0.6.
|
102
|
-
edu_rdm_integration-0.6.
|
103
|
-
edu_rdm_integration-0.6.
|
104
|
-
edu_rdm_integration-0.6.
|
105
|
-
edu_rdm_integration-0.6.
|
106
|
-
edu_rdm_integration-0.6.
|
101
|
+
edu_rdm_integration-0.6.3.dist-info/LICENSE,sha256=uw43Gjjj-1vXWCItfSrNDpbejnOwZMrNerUh8oWbq8Q,3458
|
102
|
+
edu_rdm_integration-0.6.3.dist-info/METADATA,sha256=68SWwZHVWqJflkmFxkiI_8PDQAmnVpGioOf_cLk4YG0,34465
|
103
|
+
edu_rdm_integration-0.6.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
104
|
+
edu_rdm_integration-0.6.3.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
105
|
+
edu_rdm_integration-0.6.3.dist-info/top_level.txt,sha256=nRJV0O14UtNE-jGIYG03sohgFnZClvf57H5m6VBXe9Y,20
|
106
|
+
edu_rdm_integration-0.6.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{edu_rdm_integration-0.6.2.dist-info → edu_rdm_integration-0.6.3.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|