question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data API - Add a non-changing unique identifier

See original GitHub issue

Hello - For the Data API, can you add a non-changing ID to each record? Such as the PR# or any other unique id?

I’m writing a script that is analyzing the links, which comes at an expensive cost. I would like the links to only be analyzed once. It would be helpful if each record had some internal ID we could reference when updating or aggregating additional data.

For example:

data: [
{
   id: 1, // <-- Add this, keep it consistent across all data api updates ❗
   links: [
      "https://twitter.com/courtenay_roche/status/1267653137969623040",
      "https://twitter.com/yagirlbrookie09/status/1267647898365427714",
      "https://www.4029tv.com/article/bentonville-police-deploy-tear-gas-on-protesters/32736629#"
   ],
   state: "Arkansas",
   edit_at: "https://github.com/2020PB/police-brutality/blob/master/reports/Arkansas.md",
   city: "Bentonville",
   name: "Law enforcement gas a crowd chanting “we want peace” right after exiting the building.",
   date: "2020-06-01",
   date_text: "June 1st"
},

Much appreciated. Thanks for the wonderful contribution.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
colegleasoncommented, Jun 6, 2020

Could the new issue template include a link to https://www.uuidgenerator.net/ and ask the contributor to paste one in?

1reaction
bonedaddycommented, Jun 5, 2020

@ubershmekel – it should be super easy for the end-user adding the ID. In this case, we’ll just need to worry about collisions (duplicate IDs). Realistically this is a problem for thousands of records. If this is hundreds of records, it might not be as risky.

Using the ID of a PR seems like the easiest option, as its pretty simple for anyone adding a new PR to do. If a UUID is being used, ksuid is pretty cool, as it can be sorted based on time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Types and Unique Identifiers - Iterable Support Center
Every Iterable project uses a specific field to uniquely identify each user. This allows an individual record to be referenced without confusion.
Read more >
Get unique, static id from a device via web request
I just wanted to know if there is a unique, non-changing identifier for a device that is accessible in the web request that...
Read more >
Primary Key choice on table with unique identifier
Further research suggests that using a uniqueidentifier as a clustered index is not always a good choice, because of the way that newid()...
Read more >
Create a Contact List with an Unique Identifier Column assigned
Trying to mass create contact lists for a project. One of the columns is to be an Unique Identifier or "custom-id" for added...
Read more >
Setting User IDs for Web - Braze
Setting user IDs for web. User IDs should be set for each of your users. These should be unchanging and accessible when a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found