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

Ideas Spreadsheet has no primary key #69

Open
alfredortega opened this issue Apr 14, 2015 · 8 comments
Open

Ideas Spreadsheet has no primary key #69

alfredortega opened this issue Apr 14, 2015 · 8 comments

Comments

@alfredortega
Copy link

Without a primary key it is difficult to ensure that moving between pages (Parent/Child) will return the proper results.

HACK FIX:
Each record does have a date stamp with I will convert to long which should produce a consistent key. Unfortunately this is only in memory on the client so it doesn't help performance or making finding the record easier.

-Al

@zmon
Copy link
Owner

zmon commented May 3, 2015

Would hashing the GitHub URL be a better key like one of the suggestions proposed in Generate a Hash from string in Javascript/jQuery

@alfredortega
Copy link
Author

I don't believe so because not every idea will have a github url. I have added an JSON element which has the timestamp converted to a float.

@jstirnaman
Copy link
Contributor

Ideas don't have Github URLs, do they?
On May 2, 2015 11:02 PM, "Paul D Barham" [email protected] wrote:

Would hashing the GitHub URL be a better key like one of the suggestions
proposed in Generate a Hash from string in Javascript/jQuery
http://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery

Reply to this email directly or view it on GitHub
#69 (comment)
.

@zmon
Copy link
Owner

zmon commented May 3, 2015

Ideas do not have github URLs. So yes for them the Date/Time stamp would
be best.

On Sun, May 3, 2015 at 4:13 PM, Jason Stirnaman [email protected]
wrote:

Ideas don't have Github URLs, do they?
On May 2, 2015 11:02 PM, "Paul D Barham" [email protected] wrote:

Would hashing the GitHub URL be a better key like one of the suggestions
proposed in Generate a Hash from string in Javascript/jQuery
<
http://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery

Reply to this email directly or view it on GitHub
<
#69 (comment)

.


Reply to this email directly or view it on GitHub
#69 (comment)
.

Paul Barham
816-679-8010

@darphicus
Copy link

Might i suggest instead of datetime maybe using epoch time it's more finite. Also Do we store these ideas anywhere for example a database?

@tangospring
Copy link
Contributor

@darphicus
Copy link

Thank you!

@darphicus
Copy link

So my suggestion would be make one column on the SpreadhSheet a sequencer.

That can be an epoch timestamp or other sequence such as (1,2,3,4,......n). That would give you the organizational ordinal so that you can do sorting. so when the app writes out to the spreadsheet it could do this as one of the columns. It would take a little rework to get the historical data but not that much.

@zmon zmon removed the help wanted label Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants