components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

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

Open luigirende opened this issue 1 year ago • 3 comments

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: #[issue number]

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 avatar Jul 12 '24 18:07 luigirende

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?

berndverst avatar Jul 23 '24 16:07 berndverst

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[bot] avatar Aug 22 '24 16:08 github-actions[bot]

@berndverst I've just created a proposal ticket for this implementation https://github.com/dapr/components-contrib/issues/3506

luigirende avatar Aug 26 '24 16:08 luigirende

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[bot] avatar Oct 21 '24 12:10 github-actions[bot]

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[bot] avatar Nov 24 '24 23:11 github-actions[bot]

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[bot] avatar Dec 31 '24 12:12 github-actions[bot]

This pull request has been automatically closed because it has not had activity in the last 37 days. 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[bot] avatar Jan 07 '25 12:01 github-actions[bot]