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: excludeFromIndex allow for '*' wildcard to catch all properties on object #451

Merged

Conversation

praveenqlogic01
Copy link
Contributor

towards #12

  • Tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 28, 2019
src/request.ts Outdated Show resolved Hide resolved
@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 2, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 2, 2019
@AVaksman AVaksman added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jul 2, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 2, 2019
@codecov
Copy link

codecov bot commented Jul 2, 2019

Codecov Report

Merging #451 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
+ Coverage   98.05%   98.12%   +0.06%     
==========================================
  Files           5        5              
  Lines         617      639      +22     
  Branches      145      153       +8     
==========================================
+ Hits          605      627      +22     
  Partials       12       12
Impacted Files Coverage Δ
src/entity.ts 98.31% <100%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1850f25...8f54581. Read the comment docs.

@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 3, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 3, 2019
@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2019
@jacekkopecky
Copy link

Thank you, this will be oh so useful!

Is there documentation anywhere?

It seems that prop.* excludes everything under the property prop; and there's a hint that a simple .* excludes everything. Is that correct?

If so, shouldn't that be just * instead? Why the initial dot?

@praveenqlogic01
Copy link
Contributor Author

praveenqlogic01 commented Jul 19, 2019

Thank you, this will be oh so useful!

Is there documentation anywhere?

It seems that prop.* excludes everything under the property prop; and there's a hint that a simple .* excludes everything. Is that correct?

If so, shouldn't that be just * instead? Why the initial dot?

@jacekkopecky Hi, yes you are right, regarding ".*", "." is representing root path here and * representing everything from there!

@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 24, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 24, 2019
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot removed the cla: yes This human has signed the Contributor License Agreement. label Jul 25, 2019
@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jul 25, 2019
@praveenqlogic01
Copy link
Contributor Author

verifying cla done!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jul 25, 2019
@JustinBeckwith JustinBeckwith changed the title excludeFromIndex allow for '*' wildcard to catch all properties on object. feat: excludeFromIndex allow for '*' wildcard to catch all properties on object Jul 25, 2019
@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 25, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 25, 2019
@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@JustinBeckwith JustinBeckwith merged commit 215cbee into googleapis:master Jul 26, 2019
@uschtwill
Copy link

This isn't documented at all, is it?

{
key,
data,
excludeFromIndexes: [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how can i exclude all properties from being indexed? will ['*'] do it?

@kirillgroshkov
Copy link

Is there documentation for this except source code of this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants