Igor Derkach

Results 24 issues of Igor Derkach

There is no way to set CustomRole participants in CreateTickets template This commit allows to write something like: `CustomRole-Foo: [email protected], [email protected]`

`symbol_wrap` jinja2 filter now is used for word wrap python code during migration generation. But it wraps lines by commas, which could break python code, if such comma will be...

enhancement

When we have unset `allow_inheritance` in Document `meta` dict, we get an error while running migration: ``` [DEBUG] >> Change 'inherit': True => Traceback (most recent call last): File "mongoengine_migrate/cli.py",...

bug

It's more convenient to work with graph using dict protocol. Now it implements list protocol. It should be smth like {migration_name: MIgration_object}.

refactoring

`UUIDField` has `binary` parameter (default `True`) which designates if UUID value stores in db as bson Binary or as string. `UUIDFieldHandler.change_binary` already exists, but does nothing. It's needed to implement...

bug

`SequenceField.value_decorator` uses to get next sequence value. By default it is `int()`. But the user could set custom decorator function. We cannot do smth with this change, but it's reasonable...

enhancement

`BinaryFieldHandler.change_max_bytes` invokes when `BinaryField.max_bytes` changes its value. Now this method does nothing. It's needed to add binary document field value cutting in "by_doc" callback.

bug

`URLField` has `url_regex` attribute with default value described in `URLField._URL_REGEX` constant. It's needed to implement "change" method in `URLFieldHandler` which will get invoked if user modified `url_regex` attribute value. It...

enhancement

Field declaration can contains `choices` attribute which sets possible values which this field can have. `choices` in turn can be an array of any value including `Document` and `EmbeddedDocument` classes....

enhancement

CreateDocument.run_backward and DropDocument.run_forward methods drop documents from database while migration run. But now they not consider model inheritance, and therefore drop all documents. It's needed to add inheritance (`_cls` field)...

bug