Skip to content

fix(identities): clean up partner permissions, limits and directories on identity webhooks - #112

Merged
albanm merged 8 commits into
masterfrom
feat-identities-cleanup
Sep 25, 2026
Merged

albanm merged 8 commits into
masterfrom
feat-identities-cleanup

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Per-service pass of the identities contract work, guided by the data-fair-identities skill of the lib.

  • bump @data-fair/lib-express to 1.26.0 (secret accepted in the x-secret-key header)
  • rename: the name of a partner organization in the partner permissions of other owners' processings follows, and so does the limits document
  • an organization update carrying partners (sent by simple-directory since #147) withdraws the partner permissions granted to organizations that are no longer partners
  • deleted department: a department missing from the complete departments list sent by simple-directory was deleted; its processings and runs keep the department id but lose departmentName; the UI labels it "Ancien département (id)" / "Former department (id)" (owner avatar tooltip through lib-vuetify 2.5.1, owner filters and activity through useDisplayOwner from lib-vue 1.31.1 — the local composable is gone, feat(vue): useDisplayOwner and owner-avatar label a deleted department lib#52); relativeDependencies on lib for local development
  • delete: the processings of the identity are removed with their runs and their directory on disk (same cleanup as DELETE /processings/:id; the webhook left the directory behind), the limits document too; a deleted organization is pulled from the partner permissions of others; created/updated only keep the id of a former user
  • created/updated name is now optional in the processing schema; the UI shows "Ancien utilisateur" / "Former user" when it is absent
  • tests/features/processings/identities.api.spec.ts: renames, end of a partnership, department rename and deletion, user deletion, organization deletion (directory and limits included)

Why: GDPR and consistency — partner permissions ignored the end of a partnership, a deleted department kept showing under its old name, and a deleted owner left its processing directories on disk.

Heads-up: userEmail permissions are not touched: the webhook only carries the user id, so a former user's email survives there (tracked as a contract extension).

… on identity webhooks

- bump @data-fair/lib-express to 1.26.0 (secret in the x-secret-key header)
- rename: the name of a partner organization in the permissions of other
  owners' processings follows, and so does the limits document
- an organization update carrying partners withdraws the partner
  permissions granted to organizations that are no longer partners
- delete: the processings of the identity are removed with their runs and
  their directory on disk (same cleanup as DELETE /processings/:id, the
  directory was left behind), the limits too; a deleted organization is
  pulled from the partner permissions of others; created/updated only keep
  the id of a deleted user
- created/updated name is now optional in the processing schema
- identities.api.spec covers renames, the end of a partnership, the user
  and organization deletions
@github-actions github-actions Bot added the fix label Sep 14, 2026
BatLeDev and others added 4 commits September 14, 2026 16:57
The shared identities router refuses the calls that come through the
proxy, and the other services of the dev environment do not need the
webhooks.
…t in the UI

A department missing from the complete list sent by simple-directory was deleted:
its processings and runs keep the department id but lose departmentName. The UI
shows them as "Former department - <id>" (owner avatar, activity, owner filters).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hqsZKwijEBoB3m3v9srVD
…n messages

The production build uses the runtime-only vue-i18n: inline messages given to useI18n are
not compiled and the key was displayed instead of the label.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hqsZKwijEBoB3m3v9srVD
@github-actions github-actions Bot added fix and removed fix labels Sep 15, 2026
@github-actions github-actions Bot added fix and removed fix labels Sep 16, 2026
@albanm
albanm merged commit 8fb2a10 into master Sep 25, 2026
4 checks passed
@albanm
albanm deleted the feat-identities-cleanup branch September 25, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants