Skip to content

Link profile card resource counts to each service - #882

Draft
allanlasser wants to merge 1 commit into
masterfrom
allanlasser/cross-service-profile-links
Draft

allanlasser wants to merge 1 commit into
masterfrom
allanlasser/cross-service-profile-links

Conversation

@allanlasser

@allanlasser allanlasser commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Links the request and document counts on user and organization profile cards to that user's or organization's page on MuckRock and DocumentCloud. Resolves #849.

Companion PRs: MuckRock/muckrock#2313, MuckRock/documentcloud-frontend#1446

Behaviour changes

  • Service gets user_url and organization_url, each a URL with {uuid} in it.
  • A profile card line becomes a link when its service has a URL for that subject. With no URL it stays plain text, as today.

Migrations

  • services/0002_service_user_url_organization_url adds the two blank CharFields. Reversible.

What to check

  • After deploy, set these on the Service rows in admin:
    • MuckRock: https://www.muckrock.com/accounts/uuid/{uuid}/ and https://www.muckrock.com/organization/uuid/{uuid}/
    • DocumentCloud: https://www.documentcloud.org/users/uuid/{uuid}/ and https://www.documentcloud.org/organizations/uuid/{uuid}/
  • On your own user page, the requests and documents lines link to MuckRock and DocumentCloud.
  • On an organization you admin, the lines link to the organization on each service.
  • A service with blank URLs still renders its line as plain text.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MgSHjTBX3NVeqjfAzJAedj

Services get a user and an organization URL pattern with a {uuid}
placeholder; the profile card links each request/document line to it.

Refs #849

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MgSHjTBX3NVeqjfAzJAedj

This branch was previously deployed

1 inactive deployment
squarelet-pi-allanlasse-dllzyj — 88e8e076 Deployed Oct 26, 2026 by allanlasser
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.

Link from MuckRock Accounts profile to a user's resources on connected services

2 participants