Skip to content

Private memos are not visible through the API #4495

@zareith

Description

@zareith

Describe the bug

If we create a private memo, it is never returned in an API response, even if we explicitly set visibility filter.

Please advise if something additional needs to be done to grant the API ability to access private data.

In this older github issue, setting a creator was suggested, but that doesn't appear to be supported by current filter syntax: #4057 (comment)

Steps to reproduce

  1. Create a private memo
  2. curl "http://localhost:9089/api/v1/memos?filter=visibility==\"PRIVATE\"" -H "Accept: application/json" -H "Authorization: Bearer ..."
    {"memos":[],"nextPageToken":""}
  3. Try with an explicit visibility filter
    curl "http://localhost:9089/api/v1/memos?filter=visibility==\"PRIVATE\"" -H "Accept: application/json" -H "Authorization: Bearer ..."
    {"memos":[],"nextPageToken":""}

The version of Memos you're using

0.24.0

Screenshots or additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions