-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support for Addressing Links between Entries #10
Comments
There's no support currently. I can add a |
I added support for querying links in the develop branch 7de7dce. Let me know if this works for you. |
Thanks for the response! Seems to work well (get an array of experiment id's that are related to a particular suite). I will look into switching to your query method as soon as I can. (managers - priorities :( ) I have been unable to find good examples of how to set or create links. Bill |
Do you need support for creating links between objects (thinking of like Silverlight's |
Sorry about the delays in responding. --- On Fri, 11/18/11, Damien White reply@reply.github.com wrote:
|
I checked in a partial working
After the add_link method call, |
FYI Perhaps my devs need to fix their service and allow both 32 bit and 64 bit indexes? Perhaps ruby_odata needs to support both? (Thx for your contributions, if my guys switch to 32bit index's, I'll start using your code and relay any issues I find.) |
1 similar comment
FYI Perhaps my devs need to fix their service and allow both 32 bit and 64 bit indexes? Perhaps ruby_odata needs to support both? (Thx for your contributions, if my guys switch to 32bit index's, I'll start using your code and relay any issues I find.) |
(oops, didn't mean to close, I'll leave that up to you) Perhaps my devs need to fix their service and allow both 32 bit and 64 bit indexes? Perhaps ruby_odata needs to support both? (Thx for your contributions, if my guys switch to 32bit index's, I'll start using your code and relay any issues I find.) |
Thanks for the feedback. I'll look into that.
|
Thanks, that seemed to work. Now svc.Suites('1L').links("Experiments") / svc.execute is working. I ran into trouble with the add_links functionality. What's funny is that if I then run: POST http://xxx/DataServices/EMODDataService.svc/Suites(78L)/$links/Experiments HTTP/1.1 {"uri":"http://xxx/DataServices/EMODDataService.svc/Experiments(713L)"} So my questions are: Thanks again for your help. Feel free to drop this when you want to. I feel bad that my ruby experience is not enough to assist you. I'm going to attempt to produce the post above by hand. That should get me past the linking problem. |
I haven't implemented the batch save yet (don't worry, it's on the list :)), so only a single save works. If you look in service.rb there are two save methods, one called |
I overlooked that the first example tried to do a batch save. Based on what you showed, a batch save shouldn't have occurred. The service keeps a collection of operations (which I think I'll expose because I can see users wanting to see what's in the queue), and clears the collection after you call save_changes. There must have something else in collection that would push it into the |
Support for add_link within a batch save is in the latest develop branch. |
AWESOME...just tested it. add_links is now working for me! Whoohoo! Thank you very much! |
Awesome.
Instead of:
|
ie:
http://www.odata.org/developers/protocols/uri-conventions#AddressingLinksBetweenEntries
3.2. Addressing Links between Entries
I learned Ruby 15 minutes ago (:))
I didnt see the word link in any of the .rb files.
Is there support for links?
Bill
The text was updated successfully, but these errors were encountered: