You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the JSON returned by the server contains an attributes member called extension for every file entry:
"extension":"txt",
This is a calculated, redundant value that can be extracted from attributes.name. The Javascript already calculates extensions with a function called getExtension() for other purposes.
To normalize the response data, guarantee consistency, reduce code size, and reduce response size, we could eliminate this member. There are nine references to resourceObject.attributes.extension that would be replaced in the JS. For example:
Thanks for the suggestion.
Ok, but let's postpone this modification for a bit.
I don't want to change any things related to the connector at the moment. A dependent code is going to be committed soon.
Currently the JSON returned by the server contains an
attributes
member calledextension
for every file entry:This is a calculated, redundant value that can be extracted from
attributes.name
. The Javascript already calculates extensions with a function calledgetExtension()
for other purposes.To normalize the response data, guarantee consistency, reduce code size, and reduce response size, we could eliminate this member. There are nine references to
resourceObject.attributes.extension
that would be replaced in the JS. For example:...becomes...
This is a low-priority issue that I would consider minor code cleanup. I'd be happy to submit a Pull Request if you approve of this change. Thanks!
The text was updated successfully, but these errors were encountered: