Skip to content

Fix bugs and refactor entity architecture#996

Merged
LeMyst merged 1 commit into
masterfrom
rework-with-ia
Jul 4, 2026
Merged

Fix bugs and refactor entity architecture#996
LeMyst merged 1 commit into
masterfrom
rework-with-ia

Conversation

@LeMyst

@LeMyst LeMyst commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Major improvements across the library:

  • Refactored entity classes: introduced TermsEntity base class to share labels/descriptions/aliases handling across Item, Property, and MediaInfo, eliminating code duplication.
  • Fixed multiple data type bugs: Time parsing now handles years >4 digits; GlobeCoordinate equality no longer mutates values; Snak/Reference equality comparisons properly typed.
  • Improved API robustness: added TIMEOUT config support to prevent indefinite hangs; fixed SPARQL query to send in request body (not URL); changed max_retries default from 1000 to 100.
  • Fixed error handling: introduced AnonymousEditNotAllowedError for clearer failures; improved login error messages.
  • Added new methods: count() on Claims/Qualifiers to distinguish between distinct properties and total items; lexeme_edit_sense helper.
  • Fixed integration tests: corrected fixture scope to session-level; updated exception types; fixed docker-compose volume persistence; added PowerShell instructions.
  • Fixed API parameter issues: lexeme_edit_sense now uses correct senseId; search_entities properly truncates results and handles strict_language; edit_entity validates type parameter.
  • Fixed fastrun caching: replaced lru_cache with per-instance prop_dt_map to avoid stale cache across containers.
  • Fixed edge cases: LanguageValue handles None values; Form.grammatical_features setter validates types and replaces instead of accumulating; Claims comparison with unrelated types returns False.

Major improvements across the library:

- Refactored entity classes: introduced TermsEntity base class to share labels/descriptions/aliases handling across Item, Property, and MediaInfo, eliminating code duplication.
- Fixed multiple data type bugs: Time parsing now handles years >4 digits; GlobeCoordinate equality no longer mutates values; Snak/Reference equality comparisons properly typed.
- Improved API robustness: added TIMEOUT config support to prevent indefinite hangs; fixed SPARQL query to send in request body (not URL); changed max_retries default from 1000 to 100.
- Fixed error handling: introduced AnonymousEditNotAllowedError for clearer failures; improved login error messages.
- Added new methods: count() on Claims/Qualifiers to distinguish between distinct properties and total items; lexeme_edit_sense helper.
- Fixed integration tests: corrected fixture scope to session-level; updated exception types; fixed docker-compose volume persistence; added PowerShell instructions.
- Fixed API parameter issues: lexeme_edit_sense now uses correct senseId; search_entities properly truncates results and handles strict_language; edit_entity validates type parameter.
- Fixed fastrun caching: replaced lru_cache with per-instance prop_dt_map to avoid stale cache across containers.
- Fixed edge cases: LanguageValue handles None values; Form.grammatical_features setter validates types and replaces instead of accumulating; Claims comparison with unrelated types returns False.
@LeMyst LeMyst merged commit 64295fb into master Jul 4, 2026
15 checks passed
@LeMyst LeMyst deleted the rework-with-ia branch July 4, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant