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

feat(state) - Query filter fields in the response item #3485

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

Conversation

luigirende
Copy link
Contributor

@luigirende luigirende commented Jul 12, 2024

Description

Add in the query request the opportunity to export only a subset of attribute from value data object, setting the map in the metadata request.

For the Redis, MongoDB, CosmosDB, Postgresql, CockroachDB state is possible to set in the metadata the parameter querySelectedAttributes to define from ResponseItem which field extract.

ex. with this configuration [{"name":"surname", "path":"employee.surname", "type": "Text"}, {"name":"productPrice", "path":"product.price", "type": "Numeric"}] the response Item will be in this format {"surname":"Jack", "productPrice":34.12}

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #3506

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@luigirende luigirende requested review from a team as code owners July 12, 2024 18:17
@berndverst
Copy link
Member

Do you have an issue opened for this PR with a proposal or discussion? Or can you link to a Discord conversation where this was discussed with maintainers?

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@luigirende
Copy link
Contributor Author

@berndverst I've just created a proposal ticket for this implementation #3506

@luigirende luigirende force-pushed the feature/state-filter-columns branch 4 times, most recently from f6e5843 to 9a05721 Compare September 1, 2024 14:24
@luigirende luigirende force-pushed the feature/state-filter-columns branch 2 times, most recently from 36c54f1 to ff4c622 Compare September 11, 2024 18:06
Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Oct 21, 2024
…rt only a subset of attribute from from value data object, setting the map in the metadata request

Signed-off-by: Luigi Rende <[email protected]>
… opportunity to export only a subset of attribute from from value data object, setting the map in the metadata request

Signed-off-by: Luigi Rende <[email protected]>
…port only a subset of attribute from value data object, setting the map in the metadata request

Signed-off-by: Luigi Rende <[email protected]>
…xport only a subset of attribute from value data object, setting the map in the metadata request

Signed-off-by: Luigi Rende <[email protected]>
@github-actions github-actions bot removed the stale label Oct 22, 2024
@berndverst berndverst added the do-not-merge PR is not ready for merging label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge PR is not ready for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Addition of an Optional Configuration for Field Selection in Document Store Queries
2 participants