Giter Club home page Giter Club logo

Comments (6)

DivineOmega avatar DivineOmega commented on May 26, 2024

Some advantages of the current behaviour is that it is obvious what is present within the field, and makes it easier to implement a DataItemManipulator callback.

A possibly disadvantage @dextermb brought up is that if a relationship is added to a model, its content, which could contain private information, would be immediately rendered in the table.

Ideally, we should output something that makes it obvious the column is not empty, but does not reveal private information. Perhaps we could blank out all values, or replace their content with asterisks, leaving the keys intact, then stringify as is?

from react-dynamic-data-table.

dextermb avatar dextermb commented on May 26, 2024

Some advantages of the current behaviour is that it is obvious what is present within the field, and makes it easier to implement a DataItemManipulator callback.

A possibly disadvantage @dextermb brought up is that if a relationship is added to a model, its content, which could contain private information, would be immediately rendered in the table.

Ideally, we should output something that makes it obvious the column is not empty, but does not reveal private information. Perhaps we could blank out all values, or replace their content with asterisks, leaving the keys intact, then stringify as is?

Perhaps we go through and make the values undefined or null. Maybe even <redacted>.

⚠️ Although it is worth mentioning that they would be able to find the data through window.<object> or in the network tab.

from react-dynamic-data-table.

dextermb avatar dextermb commented on May 26, 2024

Extra thoughts, @NilesB @JacobBrassington @wheatleyjj @ash123456789

from react-dynamic-data-table.

JacobBrassington avatar JacobBrassington commented on May 26, 2024

Shouldn't data that should be redacted never make it to the front end?

from react-dynamic-data-table.

dextermb avatar dextermb commented on May 26, 2024

Shouldn't data that should be redacted never make it to the front end?

This issue is, that if someone were to use with on a Laravel model, then the relationship would appear everywhere and magically appear on the frontend.

from react-dynamic-data-table.

DivineOmega avatar DivineOmega commented on May 26, 2024

@JacobBrassington You're very right, it shouldn't. The functionality being discussed is just an extra fail safe to ensure that even if it does somehow reach the frontend, it is not immediately displayed to casual users.

from react-dynamic-data-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.