Repository navigation
Conversation
- clear a property by assigning an empty value, honouring __fields_set__ - report pages kept by 'keep existing' in StoreEntityResult.skipped - re-validate per_property when OverwriteClassParam.model is reassigned - drop the unused 'by name' half of the class dispatch map - give file controllers the OSW category of the model they wrap
- 'stored' now lists only the pages that were actually written - add 'skipped' to the error, mirroring StoreEntityResult - 'result.pages' unchanged, still lists kept pages
- fetch_schema takes the cache state before the loop over schema titles - the restore runs in a finally block, so an early return or an exception in _fetch_schema can no longer leave the cache enabled - _fetch_schema no longer snapshots a state its predecessor has changed - add unit tests for the multi-title, exception and early-return paths Closes #176
- sort each page's file attachments instead of leaking set iteration order - restore the configured page order before the loop that claims files - keep Item: entries aligned with config.titles, no full-array sort - add two offline regression tests covering both ordering sources Closes #172
- keep main's verify_write field beside the flattened _overwrite_per_class - keep both skipped_pages and edited_titles in store_entity
- a page kept by 'keep existing' must not enter the write verification - it stays in pages and skipped when a neighbour is reported missing - fails if edited_titles is filled outside the kept_existing guard
- load_entity looked up classes by name in osw.model.entity only - a packaged class registered for the category IRI was invisible - the generated class then took over the oold type registry slot - warn instead of silently replacing a foreign registration - closes #138
- controllers and result wrappers inherit the category IRI they extend - oold's registry keeps whichever of them was defined last - UploadFileResult thus replaced WikiFile and broke file up/download - prefer osw.model.entity's class when the registered one specializes it
- the subclass guard keeps the specialization in the registry slot - the conflict warning then compared it with the canonical class and fired - this happened on every WikiFile load, with a message that was untrue
- a fetch for a later category reloads osw.model.entity - the class picked for an earlier category was then a replaced object - the entity was not an instance of the current class, unlike on main
- a schema title can name an osw.model.entity attribute that is no class - the subclass guard then raised TypeError from issubclass() - the reload refresh raised AttributeError on a value without __module__ - both escaped load_entity; main logs the failed construction instead
- a fetch can register a class while the title names a non-class - issubclass() in the conflict warning then raised TypeError - tie the non-class log assertion to the loaded page's title
- the category loop read the schema title outside any try, so a category page with no jsonschema slot, no title key, or a non-string title ended load_entity and left the remaining titles unloaded - the loop body is now wrapped in try/except, which logs the page title, the category and the exception, then skips the page like the two error paths that already exist in the same function Closes #202
- base, local, memory and remote now wrap the implementations that moved to core, which owns the file models - LocalFileController keeps the path argument and filename-derived label - WikiFileController rebases on core's RemoteFileController - the session became optional and connects on first use from the credential registered for download_url or access_url - the package imports its modules, so the controllers register and a file entity resolves to one without importing it by name
- _ensure_session falls back to the registered credential, so an upload (which has no URL yet) can use the lazy session at all - from_other keeps a session the source carries instead of writing None - sessions are cached per credential, not per host, and a replaced credential replaces the session - LocalFileController without a file fails at construction, as the controller it replaces did - pin opensemantic.core to the branch carrying the file controllers
- a credential registered as host/path no longer becomes the WtSite iri, which built an API endpoint that does not exist - the cache is keyed by (host, credential), so one credential matching several subdomains does not serve them all the same session - pin oold to the branch carrying registered_credentials() - tests inspect the config the session is built from
…om-core refactor: take the file controllers from opensemantic.core
# Conflicts: # src/osw/controller/file/local.py # src/osw/controller/file/memory.py
…ed-class fix(core): prefer a registered class over a generated one
…lowup fix(core): address follow-up issues in the overwrite policy
fix(package): write packages.json pages in a deterministic order
…ror-handling fix(core): skip a page whose category has no usable schema
…sonschema fix: keep the stored jsonschema when store_entity regenerates it
…lection fix: select category templates from the schema allOf like the wiki
…s-of test: set subclass_of for oold 2 in the jsonschema tests
- list the page in the existing Tools nav group, describe scripts there - page through all User items and adopt pages at the deterministic title - skip blocked accounts by default, never propose placeholder names - prune via a second jsondata edit; oold 2.3 ignores __iris__ edits - never write employment_contract_status; add store and prune tests
- reference opensemantic PR #5 (664da4a), get_title uses name for Property - store_entity refuses a write when the uuid is on another Property: page - delete_entity uses get_title - create_or_update_entity reports the reason of a failed store
- count a title as created or updated only after store_entity stored it - record each failed title of StoreEntityPartialError as store:<title> - write redirects only for stored or pre-existing items - drop new links to organizations that failed to store - prune only updates that were stored
- set list fields to [] and delete single-valued keys on --prune - read stored jsondata via offline_pages, without an extra request - decide protected-field removal from the stored jsondata - a second --prune run no longer proposes the same removal
- a stored [] on employment_contract_status is now removed by --prune
…-cache # Conflicts: # src/osw/core.py
fix(core): restore the page cache state once per fetch_schema call
feat(user-sync): sync OSW User items from MediaWiki and ORCID
feat: title Property entities by name and refuse a rename on update
Contributor
Release previewMerging this PR would release v2.10.0 (current: Changelog preview (truncated)## v2.10.0 (2026-11-18)
### Bug Fixes
- A wiki file finds its session without a URL
([`f3f1080`](https://github.com/OpenSemanticLab/osw-python/commit/f3f1080106c0c4f8c18386bceb9d9eafac098182))
- Botfilter for user sync
([`4d6f440`](https://github.com/OpenSemanticLab/osw-python/commit/4d6f4401c63a148c924bef89963b8f18bc8d4b0c))
- Follow properties and items when collecting category templates
([#220](https://github.com/OpenSemanticLab/osw-python/pull/220),
[`55e500e`](https://github.com/OpenSemanticLab/osw-python/commit/55e500efb896f0a3d6bde98409b3a6f43a652bdc))
- Keep the stored jsonschema when store_entity regenerates it
([`9b76a8f`](https://github.com/OpenSemanticLab/osw-python/commit/9b76a8fbeb813b34c4881b54d329e9e837b08f95))
- One session per host and credential, named by host alone
([`f199283`](https://github.com/OpenSemanticLab/osw-python/commit/f1992832fa20969fc5a63d0a215ba59a9e796245))
- Path is a field again, in step with local_path
([`4ecbc7c`](https://github.com/OpenSemanticLab/osw-python/commit/4ecbc7caddb1558ac765ba38f654f37d55e1e58c))
- Select category templates from the schema allOf like the wiki
([#220](https://github.com/OpenSemanticLab/osw-python/pull/220),
[`9f606f4`](https://github.com/OpenSemanticLab/osw-python/commit/9f606f48fefd640cca48e6718f1a92eca118da6b))
- **core**: Address follow-up issues in the overwrite policy
([`10808a0`](https://github.com/OpenSemanticLab/osw-python/commit/10808a05d1c27c5cf4053e79169d39ceeac16f99))
- **core**: Do not warn when a registered subclass was set aside
([`c116199`](https://github.com/OpenSemanticLab/osw-python/commit/c1161990e1ef6ebed6372c814ba2133c80258f5c))
- **core**: Drop skipped pages from StoreEntityPartialError.stored
([`cf78de9`](https://github.com/OpenSemanticLab/osw-python/commit/cf78de9f253700a92b8b44761dd4baa75050695e))
- **core**: Guard the registry conflict check against a non-class
([`0017ef0`](https://github.com/OpenSemanticLab/osw-python/commit/0017ef094e009dd3fe04096f11eea880bd2a4142))
- **core**: Ignore registered subclasses of the canonical model class
([`4ee1e09`](https://github.com/OpenSemanticLab/osw-python/commit/4ee1e09ee54f39258fb4f03d4b74f11de4a4c451))
- **core**: Prefer a registered class over a generated one
([`90fa310`](https://github.com/OpenSemanticLab/osw-python/commit/90fa310a8e8f71b8ce58d95c0a575e4e6607a1dd))
- **core**: Restore the page cache state once per fetch_schema call
([`f09dcf6`](https://github.com/OpenSemanticLab/osw-python/commit/f09dcf6b9d0e0bf3baf04107d9e1acf56e755c8d))
- **core**: Skip a page whose category has no usable schema
([`3c9278d`](https://github.com/OpenSemanticLab/osw-python/commit/3c9278d24baadce753f868ff39cbddccf9418494))
- **core**: Skip non-class attributes when choosing a category class
([`0ea247c`](https://github.com/OpenSemanticLab/osw-python/commit/0ea247c3452b207942fe08a23b596ec6e2d52f96))
- **core**: Use the current class after fetch_schema reloads the module
([`e39a857`](https://github.com/OpenSemanticLab/osw-python/commit/e39a857a20604718ee5dd7d1ed300b509baa7f8c))
- **express**: Connect to http and localhost wikis
([`99584f1`](https://github.com/OpenSemanticLab/osw-python/commit/99584f16d5720d83ba621a3ef4427a5b1f4744bd))
- **package**: Write packages.json pages in a deterministic order
([`467d11c`](https://github.com/OpenSemanticLab/osw-python/commit/467d11cc26a0a94f3a31936124740f33c31692c0))
- **user-sync**: Actually remove pruned fields via empty relations and remove_empty
([`87cf85b`](https://github.com/OpenSemanticLab/osw-python/commit/87cf85b31cbfec6b80e2e30b92852c359586133c))
- **user-sync**: Align with stage and the tools docs
([`bc6b0d6`](https://github.com/OpenSemanticLab/osw-python/commit/bc6b0d642f5697ca8048b4be05fd26c9ad2162f6))
- **user-sync**: Count and redirect only stored items
([#224](https://github.com/OpenSemanticLab/osw-python/pull/224),
[`0b8dc97`](https://github.com/OpenSemanticLab/osw-python/commit/0b8dc974e972e8adaa7a2bb03bd3ae4396589f40))
- **user-sync**: Drop python-dotenv, use default accounts.pwd.yaml
([`02570c8`](https://github.com/OpenSemanticLab/osw-python/commit/02570c8f88d6d27c58e1e595bc8bb13e90354fd4))
- **user-sync**: Prune a single-valued key stored with an empty value
([`ebda514`](https://github.com/OpenSemanticLab/osw-python/commit/ebda514c731718ab20a084b93288491b3b944627))
- **user-sync**: Prune by field type and decide from stored jsondataPreview via python-semantic-release and conventional commits. |
- OswExpress takes an http:// or https:// prefix and keeps domain bare - domain validator accepts single-label hosts and a port - service context and instances status keep the http scheme
fix(express): connect to http and localhost wikis
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.