Skip to content

feat: add extra property to collection and collection List #2

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

sanzog03
Copy link
Collaborator

@sanzog03 sanzog03 commented May 9, 2025

What I am changing

Add the ability to add extra parameters to collection and collectionList. Hence, they can be used to store metadata and extra information about the collection.

How I did it

In the current implementation of TiPg, a schema table in represents the whole collection and the rows represent items.
Since there is no separate table to store the collection data, If we add any columns with prefix "collection_properties_", we use that as extra properties.
A dependency injection is added which handles the above mentioned case.

How you can test it

First ingest data with a column prefixing with "collection_properties_". Then, using the API docs, test if it shows up in the collection and collection list endpoints.

Related Issues


@slesaad
Copy link
Member

slesaad commented May 16, 2025

@sanzog03 this seems too hacky - grabbing the collection properties from the items/first item. is this a pattern that already exists in the codebase?

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.

3 participants