Repository navigation
Sharing v2: profiles directory + people-search API - #1
Merged
Merged
Conversation
Refs: research-sharing/todo/phase-03-profiles-directory/01-search-api-and-indexes.md, research-sharing/04-user-profiles-plan.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Refs: research-sharing/todo/phase-03-profiles-directory/02-actors-from-ids-and-subhook.md, research-sharing/04-user-profiles-plan.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Refs: research-sharing/todo/phase-03-profiles-directory/03-valid-actors-and-consolidation.md, research-sharing/04-user-profiles-plan.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ve_actors Prefix the sub-hook with the plugin name (matching datasette_user_profile_sections) so its provenance is clear and it no longer reads as a generic core Datasette hook. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Stop implementing core's firstresult=True actors_from_ids hook (which locked out every other identity source just by being installed) and the datasette_user_profiles_resolve_actors sub-hook that existed to work around it. Instead expose resolve_profile_actors(datasette, actor_ids) as a plain function consumers can opt into to back actors_from_ids themselves. Also resolve IDs via json_each() over a serialized JSON array instead of dynamically built ? placeholders. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Every profile field is user-editable by default. Set plugins.datasette-user-profiles.editable_fields.<field> = false to stop users overwriting fields an upstream source already owns (e.g. a GitHub auth plugin that puts email/name into the actor JSON). Enforced server-side: the update endpoint preserves locked fields' stored values and the photo upload/delete endpoints return 403 when "avatar" is locked. The edit page renders locked fields disabled. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Lands the
sharing-v2profiles work:/-/profiles/api/search(people + avatars), consumed by the share dialog and the datasette-acl actor picker.resolve_profile_actors(datasette, actor_ids)helper that consumers opt into to backactors_from_ids, instead of hijacking core's hook by being installed.editable_fieldsconfig to lock fields from user edits (enforced server-side), e.g. when an upstream auth plugin owns email/name/avatar.Part of the cross-repo document-sharing unification.
🤖 Generated with Claude Code