Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

UI Graph title limit too short #320

Open jlaw9 opened 7 years ago

jlaw9 commented 7 years ago

The UI has a limit for the graph title when uploading a graph while the REST API seemingly does not. The database, UI and REST API should all have the same limit.

tmmurali commented 6 years ago

@sanket0211, thank you for your interest. Can you work on this issue?

sanket0211 commented 6 years ago

Respected prof. @tmmurali, I am working on this issue. Will just increasing the allowed input size to 254 in the HTML page of upload graph work? Currently, the input allowed through UI is 32 characters. I have checked the database schema. There is no limit defined for the column. The database stores Graph name in the form of a string whose max_length is not defined so I assume that it can store at least 254 characters. Thank you.

tmmurali commented 6 years ago

@adbharadwaj What do you think?

adbharadwaj commented 6 years ago

Few things to clarify!

@sanket0211 I believe you are trying to increase the input size of the name of the graph on the upload page. I would suggest 256 as the input length.

tmmurali commented 6 years ago

If we enforce a restriction on the length of an attribute, we need to document this restriction. Where do we document it? Do we document why we have such a restriction?

On Mon, Feb 12, 2018 at 12:19 PM, Aditya Bharadwaj <notifications@github.com

wrote:

Few things to clarify!

@sanket0211 https://github.com/sanket0211 I believe you are trying to increase the input size of the name of the graph on the upload page. I would suggest 256 as the input length.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/320#issuecomment-364995329, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUAvU42G-KIPmFJpw91KgJ2ruqxOfks5tUHKxgaJpZM4O7y4a .

adbharadwaj commented 6 years ago

The reason is to avoid very long graph names which can hamper the search page look and feel.

We can document it above the input field in HTML code.

tmmurali commented 6 years ago

Yes, there but also in the main documentation of GraphSpace, both in docs of the user interface and the docs for the REST API/GraphSpace Python.

On Mon, Feb 12, 2018 at 12:27 PM, Aditya Bharadwaj <notifications@github.com

wrote:

The reason is to avoid very long graph names which can hamper the search page look and feel.

We can document it above the input field in HTML code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/320#issuecomment-364997605, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUPOq73RIPgbcYjRLgMLc9zzcrdneks5tUHRxgaJpZM4O7y4a .

adbharadwaj commented 6 years ago

As of now, there is no limit check on API code. @sanket0211 Can you make that change and update docs for the REST API>

sanket0211 commented 6 years ago

Prof. @tmmurali, @adbharadwaj Sir, sorry for late reply. I was not keeping well yesterday.

Prof. @tmmurali, thank you for your reply. @adbharadwaj Sir, yes I 'll make that change and also update the corresponding docs too.

Thank you.

sanket0211 commented 6 years ago

@adbharadwaj Sir, I have added a patch. Can you please review and let me know if any changes are required? Thank you.