gitgraph.js icon indicating copy to clipboard operation
gitgraph.js copied to clipboard

Improving the import functionality

Open maximAtanasov opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Hello, I use this library to dynamically display and interact with a commit graph for very large projects. For this I use the import method. The import method validates the input and reverses its order. As I get the commit log from a back-end service and have control over it's structure and order, it would be nice if some functionality could be disabled to improve performance. I undestand that the import functionality is marked experimental and that this is not the intended use-case of the library.

Describe the solution you'd like

A possible solution would be to pass additional optional parameters to the import function. Maybe something like isChronological and validate.

EDIT: I've implemented the changes in this commit: https://github.com/maximAtanasov/gitgraph.js/commit/e3a8fe20125c5398a5e00b8c3e166b78905b74d6

maximAtanasov avatar Jul 17 '20 08:07 maximAtanasov