edu-rdm-integration 3.18.5__py3-none-any.whl → 3.19.1__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.
@@ -35,6 +35,15 @@ from m3_db_utils.models import (
35
35
  class BaseRDMModel(ReprStrPreModelMixin, BaseObjectModel):
36
36
  """Базовая модель РВД."""
37
37
 
38
+ collecting_sub_stage = ForeignKey(
39
+ verbose_name='Подэтап сбора данных',
40
+ to='edu_rdm_integration_collect_data_stage.RDMCollectingDataSubStage',
41
+ on_delete=CASCADE,
42
+ )
43
+ operation = SmallIntegerField(
44
+ verbose_name='Действие',
45
+ choices=EntityLogOperation.get_choices(),
46
+ )
38
47
  created = DateTimeField(
39
48
  verbose_name='Дата создания',
40
49
  auto_now_add=True,
@@ -65,11 +74,6 @@ class BaseMainRDMModel(BaseRDMModel):
65
74
  Является базовым классом для моделей РВД, которые являются основными для сущностей РВД.
66
75
  """
67
76
 
68
- collecting_sub_stage = ForeignKey(
69
- verbose_name='Подэтап сбора данных',
70
- to='edu_rdm_integration_collect_data_stage.RDMCollectingDataSubStage',
71
- on_delete=CASCADE,
72
- )
73
77
  exporting_sub_stage = ForeignKey(
74
78
  verbose_name='Подэтап выгрузки данных',
75
79
  to='edu_rdm_integration_export_data_stage.RDMExportingDataSubStage',
@@ -77,10 +81,6 @@ class BaseMainRDMModel(BaseRDMModel):
77
81
  null=True,
78
82
  on_delete=CASCADE,
79
83
  )
80
- operation = SmallIntegerField(
81
- verbose_name='Действие',
82
- choices=EntityLogOperation.get_choices(),
83
- )
84
84
 
85
85
  @property
86
86
  def attrs_for_repr_str(self):
@@ -13,6 +13,9 @@ from django.db.models import (
13
13
  from django.db.transaction import (
14
14
  atomic,
15
15
  )
16
+ from m3.actions.exceptions import (
17
+ ApplicationLogicException,
18
+ )
16
19
  from m3.actions.results import (
17
20
  OperationResult,
18
21
  )
@@ -258,6 +261,13 @@ class BaseExportingDataProgressPack(BaseCommandProgressPack):
258
261
  batch_size=context.batch_size,
259
262
  ).generate()
260
263
 
264
+ if not commands:
265
+ raise ApplicationLogicException(
266
+ f'Недостаточно данных для выгрузки по модели "{obj.entity_id}" '
267
+ f'в указанный период с {context.period_started_at} по {context.period_ended_at}. '
268
+ f'Проверьте наличие данных в указанном временном диапазоне.'
269
+ )
270
+
261
271
  for command in commands:
262
272
  obj = self.model(
263
273
  entity_id=obj.entity_id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edu-rdm-integration
3
- Version: 3.18.5
3
+ Version: 3.19.1
4
4
  Summary: Интеграция с Региональной витриной данных
5
5
  Author-email: BARS Group <education_dev@bars.group>
6
6
  Project-URL: Homepage, https://stash.bars-open.ru/projects/EDUBASE/repos/edu-rdm-integration/browse
@@ -73,7 +73,7 @@ edu_rdm_integration/rdm_entities/migrations/__init__.py,sha256=47DEQpj8HBSa-_TIm
73
73
  edu_rdm_integration/rdm_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
74
  edu_rdm_integration/rdm_models/apps.py,sha256=JJwHzCXYVe5cEhvDg61KkrLoRT_ZbJCIAWEM2lOQyHU,288
75
75
  edu_rdm_integration/rdm_models/mixins.py,sha256=NuPklb0SppvIfgHK_FCfX7VnD3Wsh48fR85hULoQUNY,2301
76
- edu_rdm_integration/rdm_models/models.py,sha256=d8DkdDGV3zUYvtlp8ldmMM4k-j3GamUm7AaE5Js-GP4,13235
76
+ edu_rdm_integration/rdm_models/models.py,sha256=vLJkOGP0opHoWbt-0GfrPz1CkQL9H2BsJbhzuTNHNJg,13235
77
77
  edu_rdm_integration/rdm_models/utils.py,sha256=Xk0HEpFEGAndoAD2TdubK4SI_dW2BvchQ7UeMEfvpfQ,631
78
78
  edu_rdm_integration/rdm_models/migrations/0001_initial.py,sha256=qXgObuG2nfOLEnGJBoBqmq30TXetOv21UZU4trMV7mQ,1529
79
79
  edu_rdm_integration/rdm_models/migrations/0002_rename_regionaldatamartmodelenum_rdmmodelenum.py,sha256=hNTLriOc9r9WEVKahJURA3yXhZ3ivbwJJ_HaMC46PpI,451
@@ -211,7 +211,7 @@ edu_rdm_integration/stages/export_data/migrations/0001_initial.py,sha256=h7HIT-Q
211
211
  edu_rdm_integration/stages/export_data/migrations/0002_auto_20250704_0810.py,sha256=yjGlH25Mke2_VAe188LEkWZ04Xy1qenai7D2zOA-ecY,1558
212
212
  edu_rdm_integration/stages/export_data/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  edu_rdm_integration/stages/export_data/registry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
- edu_rdm_integration/stages/export_data/registry/actions.py,sha256=r-NAPs4pYVectt_J38UzMsnKrWfYkjy2rhx3LUGKQWk,10423
214
+ edu_rdm_integration/stages/export_data/registry/actions.py,sha256=C5qLwGQeVd9ddOKo2zBJKBLtYn5x_8XV2MaTjK-SGFM,10940
215
215
  edu_rdm_integration/stages/export_data/registry/apps.py,sha256=71DtJQ2ULt8_3CnTu2VAfT5ABBrDNY1nKTmZ6UtvIpw,448
216
216
  edu_rdm_integration/stages/export_data/registry/ui.py,sha256=0kWWfOmtTyN4SUO9dGUcEz0wgOPA111jHoWw3_LNPqI,6238
217
217
  edu_rdm_integration/stages/export_data/registry/templates/ui-js/create-export-command-win.js,sha256=g0dpYsvd_6VfRU4nRv3tNK-0wtMND_VurQRT04ShJjk,1341
@@ -254,8 +254,8 @@ edu_rdm_integration/stages/upload_data/uploader_log/ui.py,sha256=mU3XA9zVKHGqzNk
254
254
  edu_rdm_integration/stages/upload_data/uploader_log/migrations/0001_initial.py,sha256=r5oOB7DBK9-mfuqPAgjXUJY5-hEcmMdILCwDTpaLnBc,753
255
255
  edu_rdm_integration/stages/upload_data/uploader_log/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
256
256
  edu_rdm_integration/stages/upload_data/uploader_log/templates/ui-js/object-grid-buttons.js,sha256=2xyGe0wdVokM0RhpzRzcRvJPBkBmPe3SlZry4oP4Nzs,6201
257
- edu_rdm_integration-3.18.5.dist-info/licenses/LICENSE,sha256=uw43Gjjj-1vXWCItfSrNDpbejnOwZMrNerUh8oWbq8Q,3458
258
- edu_rdm_integration-3.18.5.dist-info/METADATA,sha256=9eyFr3E2PKhNOKwMJwDdCwxtjWAy0OLG0MLZDcoMKQ0,40693
259
- edu_rdm_integration-3.18.5.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
260
- edu_rdm_integration-3.18.5.dist-info/top_level.txt,sha256=nRJV0O14UtNE-jGIYG03sohgFnZClvf57H5m6VBXe9Y,20
261
- edu_rdm_integration-3.18.5.dist-info/RECORD,,
257
+ edu_rdm_integration-3.19.1.dist-info/licenses/LICENSE,sha256=uw43Gjjj-1vXWCItfSrNDpbejnOwZMrNerUh8oWbq8Q,3458
258
+ edu_rdm_integration-3.19.1.dist-info/METADATA,sha256=c6Hj9QAy8brgS5ZFigK9yb93ocTcFTRBhzKlKCGbOdM,40693
259
+ edu_rdm_integration-3.19.1.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
260
+ edu_rdm_integration-3.19.1.dist-info/top_level.txt,sha256=nRJV0O14UtNE-jGIYG03sohgFnZClvf57H5m6VBXe9Y,20
261
+ edu_rdm_integration-3.19.1.dist-info/RECORD,,