-
Notifications
You must be signed in to change notification settings - Fork 5
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
Related processes structure #73
Conversation
53a8a5f
to
d1e3cdf
Compare
openregistry/lots/loki/models.py
Outdated
(Allow, 'g:concierge', 'upload_lot_auctions'), | ||
(Allow, 'g:concierge', 'upload_lot_related_processes'), |
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
openregistry/lots/loki/migration.py
Outdated
registry.db.update(docs) | ||
|
||
|
||
def migrate_assets_to_related_processes(lot, internal_type, registry): |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related-processes
-> related_processes
Pull Request Test Coverage Report for Build 274
💛 - Coveralls |
depends on openprocurement/openprocurement.api#371 openprocurement/openregistry.lots.core#64
openprocurement/openregistry.lots.core#66