-
Notifications
You must be signed in to change notification settings - Fork 447
Refactor AttributeValueBase set_text method #545
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
Refactor AttributeValueBase set_text method #545
Conversation
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
@cmurphy @jdavisturak @nebularazer feel free to report back the results if you test this patch. |
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
9781a4f
to
b783430
Compare
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
b783430
to
b7c2cd4
Compare
Codecov Report
@@ Coverage Diff @@
## master #545 +/- ##
==========================================
+ Coverage 65.48% 65.52% +0.03%
==========================================
Files 103 103
Lines 25657 25598 -59
==========================================
- Hits 16802 16772 -30
+ Misses 8855 8826 -29
Continue to review full report at Codecov.
|
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
I tested based on the issue on #546. It's giving a different error now.
I think it's still just checking types in the xs: namespace? |
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
If the xsd string comes with a namespace prefix, it is left intact. If the xsd string has no namespace prefix and the xsd type is known, the xsd namespace is set to 'xs'. If the xsd string has no namespace and the type is unknown, the xsd namespace is left empty. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Yes, @c00kiemon5ter the latest commit solves #546 and it works. Thanks! |
@cmurphy @jdavisturak @nebularazer @jonespm just released |
This fixes the issue I was seeing. Thank you! |
This changeset is a refactor of the
AttributeValueBase.set_text()
method.The rewrite is done in a declarative fashion. The mappings define the behaviour of the code, while the flow is common for all types.
The changeset also adds new tests that describe the behaviour of the function and make sure that the rewrite behaves the same way.
Related to #539 #543 #544 #546
All Submissions: