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

Choose which column should represent a pointer (instead of objectId) #151

Closed
AmbroiseCollon opened this issue Mar 16, 2016 · 6 comments
Closed
Labels
type:feature New feature or improvement of existing feature

Comments

@AmbroiseCollon
Copy link

It would be nice to choose which column should represent a certain class when another points to it.

For instance, I have a Game class which contains a column player which is a pointer to User class. In the rows, a button represents this relationship like so :
capture d ecran 2016-03-16 a 11 40 58

It would be more user friendly to have something like this (here I chose username column) :
capture d ecran 2016-03-16 a 11 40 58 2

@drew-gross
Copy link
Contributor

Neat idea! We'd need to fetch a bunch more data to actually retrieve the username, so we'd probably want to do this asynchronously.

@AmbroiseCollon
Copy link
Author

Any more advice on how to work on this ?

Btw, I just gave an example, but it could be good to have this not only on User class but on every class even Custom and on any column. If possible ^^!

@drew-gross
Copy link
Contributor

Ah, having this work on any class would be cool too. You would need to store the configuration of what column represents the object somewhere. Probably most of the modifications to make this happen would be in Browser.react.js, spread across fetchData, fetchNextPage, and probably a new function or two as well to handle the asynchronous part.

@AmbroiseCollon
Copy link
Author

I had a look. I'm clearly not competent on this. Never done react before. And not a big js user. But I'm happy you liked the idea. I hope someone would tackle this (or me in some future... :) )

@mtrezza
Copy link
Member

mtrezza commented Jun 3, 2021

Interesting that this PR is open and untouched for such a long time.

I think this is a nice idea, but before attempting any PR on this, we should agree on some fundamentals.

Some issues that come to mind:

  • How to decide which representation should be displayed, where is it stored?
  • What to display if the representation field is missing
  • What is the data traffic / performance impact? Does this require new indices, how are these created?
  • How to copy the object ID if it is not displayed - what value is copied on Crtl + C - "Bob" or the object ID?

@mtrezza
Copy link
Member

mtrezza commented Oct 14, 2021

Closed via #1723

@mtrezza mtrezza closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants