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.

Improve auto/suggested relationship names generated via console

See original GitHub issue
  1. For any FK in an object relationship, generate a relationship name that is the singular form of the table name (remove s if that is the last letter).
  2. For any FK in an array relationship, generate a relationship name that is the singular form of the table name (add s if that is not the last letter).
  3. If there is already a relationship to the same table via another FK use the current naming scheme (XByYId)

This should be used in “track all relationships” and in the relationships pane as well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dsandipcommented, Mar 22, 2019

@karthikvt26 You will also need to handle suggestions for multi-column foreign keys.

0reactions
wawhalcommented, Mar 22, 2019

@karthikvt26 you can append numbers if there is a collision. We allow renaming the relationships. So they can rename it if need be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto-suggest Control - CodeProject
This article presents code that augments any INPUT box with an auto-suggest feature, AJAX-capable.
Read more >
How to implement autocomplete with JavaScript on your website
Go deep into autocomplete - the what and why, and the data and code to implement your own search autocomplete with JavaScript.
Read more >
Understanding Relationship Names, Custom Objects, and ...
Salesforce ensures that your custom object names, custom field names, and the relationship names that are associated with them remain unique, even if...
Read more >
Oracle® Guided Learning User Guide
Enabling OGL by Embedding JavaScript ; Go to the OGL Console, then select Help Widget Settings in the Content tab. Help Widget Settings...
Read more >
The best developer tools - Console Newsletter
Each week Console reviews the best tools for developers. ... What we like: Web app or CLI to generate typesafe code from JSON,...
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