Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose owner/creator of Publicatie and allow filtering #69

Closed
2 tasks done
Tracked by #2
sergei-maertens opened this issue Oct 9, 2024 · 1 comment · Fixed by #103
Closed
2 tasks done
Tracked by #2

Expose owner/creator of Publicatie and allow filtering #69

sergei-maertens opened this issue Oct 9, 2024 · 1 comment · Fixed by #103
Labels
enhancement New feature or request

Comments

@sergei-maertens
Copy link
Contributor

sergei-maertens commented Oct 9, 2024

Thema / Theme

API

Omschrijving / Description

Filtering the "own" publications in the UI (by the ODPC BFF) requires the filter parameter to exist on our end, and the information to be extracted.

This depends on the #16 and audit logging added via #35 to register the information about "ownership".

Extra field to expose on the Publicatie resource:

eigenaar:
  type: object
  properties:
    weergaveNaam:  # obtained from the audit trail request headers, extracted from the audit trails/log entries
      type: string
    identifier:  # arbitrary, unique-ish string. Could be a `sub` claim from OIDC, but for our perspective this data has no "meaning"
      type: string

Tasks

  • Expose eigenaar field
  • Add filter parameter eigenaar to list API endpoint for Publicatie. The field must be an exact match on eigenaar.identifier.

Toegevoegde waarde / Added value

Being able to finish GPP-Woo/GPP-app#8

Aanvullende opmerkingen / Additional context

No response

@sergei-maertens sergei-maertens added the enhancement New feature or request label Oct 9, 2024
@github-project-automation github-project-automation bot moved this to Backlog in GPP-Woo Oct 9, 2024
@sergei-maertens sergei-maertens added this to the 04. ODRC: Beheren publicaties milestone Oct 9, 2024
@sergei-maertens sergei-maertens moved this from Backlog to Refinement in GPP-Woo Oct 9, 2024
@sergei-maertens
Copy link
Contributor Author

@MarcoKlerks if you have no further remarks, feel free to move this to Ready

@MarcoKlerks MarcoKlerks moved this from Refinement to Ready in GPP-Woo Oct 11, 2024
@MarcoKlerks MarcoKlerks removed their assignment Oct 14, 2024
@bart-maykin bart-maykin self-assigned this Oct 29, 2024
bart-maykin added a commit that referenced this issue Oct 30, 2024
bart-maykin added a commit that referenced this issue Oct 30, 2024
sergei-maertens pushed a commit that referenced this issue Oct 30, 2024
bart-maykin added a commit that referenced this issue Oct 30, 2024
bart-maykin added a commit that referenced this issue Oct 30, 2024
…cation serializer. Added get_owner method for the Publication model to use in conjunction with the EigenaarSerializer. And changed the way we retrieve the ContentType in filter_eigenaar method from the PublicationFilterset.
bart-maykin added a commit that referenced this issue Oct 31, 2024
…cation serializer. Added get_owner method for the Publication model to use in conjunction with the EigenaarSerializer. And changed the way we retrieve the ContentType in filter_eigenaar method from the PublicationFilterset.
@github-project-automation github-project-automation bot moved this from In review to Done in GPP-Woo Nov 1, 2024
@github-project-automation github-project-automation bot moved this from Done to In progress in GPP-Woo Nov 1, 2024
@sergei-maertens sergei-maertens moved this from In progress to In review in GPP-Woo Nov 1, 2024
@github-project-automation github-project-automation bot moved this from Testing to Done in GPP-Woo Nov 1, 2024
@MarcoKlerks MarcoKlerks removed their assignment Dec 16, 2024
@MarcoKlerks MarcoKlerks added this to the Plateau 0 (MVP) milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants