Adaptive specifications, Fixes #20
knucklesuganda
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Adaptive specifications
While working with different queries, you are going to use specifications. However, accessing them from repository can
be challenging. That is why we created Adaptive Specifications. Here is what they do:
That is the code from PyAssimilator version 1.1.0:
Here is that same code using 1.2.0 Adaptive Specifications:
We removed more than 30% of our code! These specifications are going to change depending on your repository, so that
means that you can write them like that and use pattern substitution easily!
Specification Fixes
We fixed all the specifications that relate to foreign keys. Now, you can easily use
order()
specification with foreignvalues:
We also fixed all the composite filter specification operations:
Specification refactoring
Now, we don't use
apply()
function inSpecification
class, we just call__call__()
straight away.Other minor fixes
This discussion was created from the release Adaptive specifications, Fixes.
Beta Was this translation helpful? Give feedback.
All reactions