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

Unable to filter, when encrypted data in data base #465

Open
Akhileshkumarr opened this issue May 30, 2017 · 6 comments
Open

Unable to filter, when encrypted data in data base #465

Akhileshkumarr opened this issue May 30, 2017 · 6 comments

Comments

@Akhileshkumarr
Copy link

In my data base having encrypted data but before publish i decrypt that data and it displays in reactive-table with decrypted data but if i want to filter that data then filtration is not working on that data.
please help and explain me how the filtration is work in reactive-table and what is the solution to overcome this problem.
thank you

@aslagle
Copy link
Owner

aslagle commented May 31, 2017

Filtering is done either client-side or server-side depending on whether you're using ReactiveTable.publish on the server.

If you're only using reactive-table to display data that's already published to the client, I would expect filtering to work, but I can't tell what the problem might be without a lot more information.

If you're trying to filter on the server, I don't think it's possible - I don't know how ReactiveTable.publish would be able to do the decryption.

@Akhileshkumarr
Copy link
Author

Thank you for your reply
Actually some fields having encrypted data in db but on the transform of the collection(cursor) we decrypt that data. that means before the publication of data it is already decrypted so that in reactive-table data coming properly in decrypted form that's fine, but filtration is not working on particular fields data.
help please

@aslagle
Copy link
Owner

aslagle commented May 31, 2017

Are you sure the problem is related to the encryption? There could be something else wrong with your field or filter configuration.

@Akhileshkumarr
Copy link
Author

ya i am sure because if i removed encrypted data from db then filtration work properly, that whole issue coming only due to encrypted data in db. then what's the solution please help.
thank you

@Akhileshkumarr
Copy link
Author

I think it may be solve with client side filtration but i am not getting any documentation regarding that so please share me link of documentation of client side filtration.
thank you

@aslagle
Copy link
Owner

aslagle commented Jun 1, 2017

If you aren't using ReactiveTable.publish on the server, it will use client-side filtering. Write your own Meteor.publish and Meteor.subscribe to get your collection onto the client, and use the Collection object as the collection argument to reactiveTable.

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

No branches or pull requests

2 participants