-
Notifications
You must be signed in to change notification settings - Fork 5
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
global_id support #128
base: master
Are you sure you want to change the base?
global_id support #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, I think that we can achieve this by using the URN instead of adding yet another attribute.
@alexeylightit what do you think?
Since we use |
The Since we are proposing a GlobalId Locator based on the
|
To add to what i was saying, I think that this idea goes in line with rails/globalid#39 which is our usecase. I think it might be worth to explore as it would solve the problem of building a mapper between rails classes and readable attributes. |
It doesn't actually and I have working examples. |
By the word 'using' I've ment we are doing something with this field. In other cases it's just exists
We don't need such information bc when we are calling any service-discovery model - it goes with default http request which already contains token. And this token has all the information we needed to reach the resource
No it wouldn't. GlobalId Locator has it's own structure. |
5a1dbd8
to
90f2b83
Compare
Problem:
New tasks requires some knowing about full model type, while frontend can't know it, for example:
PossibleOutcome
:Solution:
GlobalID
uses different connections from Settings for each service to discover the model.Benefits:
type
+id
-gid
field is enoughHow to use:
Each
Model
, same as eachResource
has:gid
field.ServiceLocator.locate(@model.gid)
Problem 2:
Frontend hardcode:
Frontend solution: