mirror of
https://github.com/clearml/clearml-server
synced 2025-06-26 23:15:47 +00:00
More sub-projects support and fixes
This commit is contained in:
@@ -193,8 +193,7 @@ class GetMixin(PropsMixin):
|
||||
"""
|
||||
Pop the parameters that match the specified patterns and return
|
||||
the dictionary of matching parameters
|
||||
For backwards compatibility with the previous version of the code
|
||||
the None values are discarded
|
||||
Pop None parameters since they are not the real queries
|
||||
"""
|
||||
if not patterns:
|
||||
return {}
|
||||
@@ -351,11 +350,7 @@ class GetMixin(PropsMixin):
|
||||
q = RegexQ()
|
||||
for action in filter(None, actions):
|
||||
q &= RegexQ(
|
||||
**{
|
||||
f"{mongoengine_field}__{action}": list(
|
||||
set(filter(None, actions[action]))
|
||||
)
|
||||
}
|
||||
**{f"{mongoengine_field}__{action}": list(set(actions[action]))}
|
||||
)
|
||||
|
||||
if not allow_empty:
|
||||
|
||||
@@ -36,7 +36,7 @@ class Project(AttributedDocument):
|
||||
min_length=3,
|
||||
sparse=True,
|
||||
)
|
||||
description = StringField(required=True)
|
||||
description = StringField()
|
||||
created = DateTimeField(required=True)
|
||||
tags = SafeSortedListField(StringField(required=True))
|
||||
system_tags = SafeSortedListField(StringField(required=True))
|
||||
|
||||
@@ -115,7 +115,7 @@ class Execution(EmbeddedDocument, ProperDictMixin):
|
||||
framework = StringField()
|
||||
artifacts: Dict[str, Artifact] = SafeMapField(field=EmbeddedDocumentField(Artifact))
|
||||
docker_cmd = StringField()
|
||||
queue = StringField()
|
||||
queue = StringField(reference_field="Queue")
|
||||
""" Queue ID where task was queued """
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user