1

With the new site, there is (understandably, since it's barely even been announced) no tie-in with accounts on the other sites.

If/when account association gets added, it would be nice to add the ability to click a button and have the "UserId" parameter that a lot of the scripts require populate with your UserId for the site in question.

It should be optional, because some people are likely to look at other users' data for whatever reason.

4
  • Looking at the FAQ (odata.stackexchange.com/faq), it looks like this is in the pipeline: "We will automatically populate any parameter named ##UserId## with your user id on the respective sites (if your EmailHash matches)"
    – Margaret
    Jun 13, 2010 at 13:12
  • sorry peoples, this is a regression that I just fixed in dev
    – waffles
    Jun 14, 2010 at 6:54
  • Ok I fixed the functionality, Im retagging this a bug with status-completed
    – waffles
    Jun 14, 2010 at 7:46
  • @waffles - I get the default number of 1838, which isn't me.
    – Kobi
    Jul 29, 2010 at 5:27

2 Answers 2

2

From your question it is not clear if you realise this feature is already present (although it is currently based on matching EmailHash).

It changed slightly about when waffles implemented the read-only concept but now if you are logged in to odata and go to my all comments query; click Run Query and your UserId will be automatically populated in the field. Click Run Query again to actually execute the query.

EDIT: Just confirming the behaviour has returned to automatically inserting your UserId, if you're logged in.

4
  • Poster Margaret and commenter Margaret are the same person. Check the urls on the name. Also the question poster's name is highlighted on comments - unlike mine on this one.
    – ChrisF Mod
    Jun 13, 2010 at 19:58
  • Ah. The fact that "Run query" did it was unclear. I have a feeling that may want to rearrange the UI around that point somehow, because I just worked on the assumption that if I tried to submit without the parameters filled, it would send me to a "Please fill out the parameters" page.
    – Margaret
    Jun 13, 2010 at 22:54
  • @ChrisF I've removed the parenthetic phrase. I wrote the answer not needing to know who posted the question, but the commenter needed identifying. I didn't think to check if they were the same person!
    – Mark Hurd
    Jun 14, 2010 at 4:36
  • @Margaret The now changed behaviour was that the UserId was placed in the field immediately. I guess it was changed once waffles implemented the fields being specified in the GET URL request.
    – Mark Hurd
    Jun 14, 2010 at 4:38
0

Personally, I like it to be optional just for the ability to query other people. Maybe there could be a better ##EmailHash## or something that would tie in.

This is a shameless plug but I found looking for my UserId to be annoying as hell, so I posted this query as a base: http://odata.stackexchange.com/stackoverflow/s/136/use-displayname-not-userid-please.

You can do joins on the Users table pretty easily but for some reason my mind wasn't operating in SQL mode to try to edit some of the existing queries. DisplayName isn't the best idea (use Marko to see why) but plugging in my name or Jeff Atwood shows the correct result.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .