OpenSemanticLab / osw-python

GNU Affero General Public License v3.0
3 stars 2 forks source link

store_entity rework to add selective overwrite #61

Closed LukasGold closed 1 month ago

LukasGold commented 1 month ago

This pull request includes a rework of store_entity() to allow selective overwriting. Not all viable options (e.g. overwriting only property values included in a revision older than x) are implemented yet

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9939539897

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/osw/utils/wiki.py 5 6 83.33%
src/osw/wtsite.py 18 22 81.82%
src/osw/core.py 165 213 77.46%
<!-- Total: 191 244 78.28% -->
Files with Coverage Reduction New Missed Lines %
src/osw/utils/strings.py 1 53.85%
src/osw/utils/templates.py 1 77.27%
src/osw/wtsite.py 6 36.28%
<!-- Total: 8 -->
Totals Coverage Status
Change from base Build 9809956479: 2.4%
Covered Lines: 2222
Relevant Lines: 4129

💛 - Coveralls
LukasGold commented 1 month ago

@SimonStier Should be ready for merge.

Please check cc432165fc635c04e5c8b7db8eda1946a8785602 for potentially unwanted silent passes on pages without osw id in title or without jsondata Please check e1ca4b81660f8d68438fcf3419ae09bfea77344e for the changes to WtPage.changed regarding compatibility with the overall design philosophy of slot changes / changed page