Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related processes structure #73

Merged

Conversation

oleksiyVeretiuk
Copy link
Contributor

@oleksiyVeretiuk oleksiyVeretiuk commented Aug 3, 2018

@oleksiyVeretiuk oleksiyVeretiuk changed the title Related processed structure Related processes structure Aug 3, 2018
(Allow, 'g:concierge', 'upload_lot_auctions'),
(Allow, 'g:concierge', 'upload_lot_related_processes'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зміна чи створення об'єкту - не upload

@@ -206,9 +226,10 @@ class Options:
items = ListType(ModelType(Item), default=list(), validators=[validate_items_uniq])
documents = ListType(ModelType(LotDocument), default=list())
decisions = ListType(ModelType(LotDecision), default=list(), validators=[validate_decision_uniq])
assets = ListType(MD5Type(), required=True, min_size=1, max_size=1)
relatedProcesses = ListType(ModelType(RelatedProcess), default=list(), max_size=1)

This comment was marked as resolved.

registry.db.update(docs)


def migrate_assets_to_related_processes(lot, internal_type, registry):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ця умова повинна перевірятися ще до отримання моделі

self.assertEqual(response.json['data']['status'], 'composing')

response = self.app.get('/{}'.format(self.resource_id))
self.assertEqual(response.json['data']['status'], 'composing')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Це пройтися get-ом по relatedProcesses


@oplotsresource(name='loki:Lot Related Processes',
collection_path='/lots/{lot_id}/related-processes',
path='/lots/{lot_id}/related-processes/{relatedProcess_id}',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related-processes -> related_processes

@coveralls
Copy link

coveralls commented Aug 17, 2018

Pull Request Test Coverage Report for Build 274

  • 421 of 435 (96.78%) changed or added relevant lines in 15 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.9%) to 96.024%

Changes Missing Coverage Covered Lines Changed/Added Lines %
openregistry/lots/loki/tests/related_processes.py 15 19 78.95%
openregistry/lots/loki/tests/migration.py 81 86 94.19%
openregistry/lots/loki/migration.py 58 63 92.06%
Totals Coverage Status
Change from base Build 255: -0.9%
Covered Lines: 3768
Relevant Lines: 3924

💛 - Coveralls

@leits leits merged commit f7d9874 into openprocurement:master Aug 17, 2018
leits pushed a commit that referenced this pull request Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants