Conversation
Contributor
Release previewMerging this PR would release v2.4.0 (current: Changelog preview (truncated)## v2.4.0 (2026-09-17)
### Bug Fixes
- **user-sync**: Actually remove pruned fields via empty relations and remove_empty
([`87cf85b`](https://github.com/OpenSemanticLab/osw-python/commit/87cf85b31cbfec6b80e2e30b92852c359586133c))
### Chores
- Relicense to Apache-2.0 ([#173](https://github.com/OpenSemanticLab/osw-python/pull/173),
[`848615c`](https://github.com/OpenSemanticLab/osw-python/commit/848615cbd1e06401922eda88231a51028440a242))
- **user-sync**: Scaffold module, example and tracking
([`217b101`](https://github.com/OpenSemanticLab/osw-python/commit/217b1017b46295340bc79cee050a91c45c0d379d))
### Documentation
- **user-sync**: Add user sync guide and finalize example
([`830d120`](https://github.com/OpenSemanticLab/osw-python/commit/830d12072f9acfcbbaa265e5b75e6db38ca0a0d1))
- **user-sync**: Document prune and opt-in extras
([`1899d7f`](https://github.com/OpenSemanticLab/osw-python/commit/1899d7f2c070a3bee614602509109bc97ea19f79))
### Features
- **user-sync**: Add interactive preview and resolution
([`e0c54db`](https://github.com/OpenSemanticLab/osw-python/commit/e0c54db9845447a62de544c4651e7d512a6ead74))
- **user-sync**: Add orcid public api client
([`5e40525`](https://github.com/OpenSemanticLab/osw-python/commit/5e40525b826713d37af47602d0542f957fba0e94))
- **user-sync**: Add reconciliation engine
([`54711e9`](https://github.com/OpenSemanticLab/osw-python/commit/54711e96f36c74ac125a4411b7b2cf7b33d23d04))
- **user-sync**: Enumerate and classify mediawiki users
([`90bf3da`](https://github.com/OpenSemanticLab/osw-python/commit/90bf3daf68639af2a1f133472ced70d0c8d2af71))
- **user-sync**: Exclude system accounts and complete idempotent sync
([`f2d011d`](https://github.com/OpenSemanticLab/osw-python/commit/f2d011d61bf4dfe1ea445cdfc78bd3f6b69af520))
- **user-sync**: Gate optional fields and opt-in prune removals
([`4e38b29`](https://github.com/OpenSemanticLab/osw-python/commit/4e38b292972bb57faaafbb66feeed55a9822cea6))
- **user-sync**: Map sources to user and organization items
([`59b5610`](https://github.com/OpenSemanticLab/osw-python/commit/59b56109baf330e20aae1fc277c1381435fc6230))
- **user-sync**: Opt-in extras, standard email, --auto-apply
([`31c2f82`](https://github.com/OpenSemanticLab/osw-python/commit/31c2f82bae2f47502557098d4f7d9d82c8466f14))
- **user-sync**: Store items, redirects, orgs and verify
([`a2a9d8c`](https://github.com/OpenSemanticLab/osw-python/commit/a2a9d8c524d77e4f8266bf210c022db2b4a85263))
- **user-sync**: Strip employment status and warn on missing email
([`828f02c`](https://github.com/OpenSemanticLab/osw-python/commit/828f02c1df1ca525dc040f89fbd5d1b5232db4dd))
Preview via python-semantic-release and conventional commits. |
Contributor
|
user properties may be available via https://www.mediawiki.org/wiki/API:Userinfo |
Contributor
Author
only works for logged in users, not even admins can read |
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.
Summary
Adds
osw.tools.user_sync: a maintenance tool that creates/updates OSWUseritems from an OSL instance's MediaWiki accounts, enriching ORCID users from the
public ORCID API. Idempotent, with an interactive preview and confirm before any
write.
username, name,orcid,email);website/organizationare opt-in (--with-websites/--with-organizations);employment_contract_statusis never written.--pruneremoves disabled/protected fields from existing items;--dry-run,--auto-apply,--orcid-only/--mw-only.User:<name>redirects; warns (never fails) on users with no ORCID email.examples/user_sync.pyand a docs page.Limitations
userDB table).--prune(stores withremove_empty=False);employment_contract_statusends as an empty list, not fully absent (the model re-applies its default when the key is missing).Organizationitems orphaned (not deleted).