· 6 years ago · Nov 13, 2019, 06:36 PM
1##FreeIPA fun :/
2
3[6:55:11 PM] <Stoot> Why does an API response return all it's member_user in the response ? That is not nice when we don't want to and a lot of data you don't want to sent as well
4[7:02:36 PM] <ab> Stoot: what call?
5[7:03:03 PM] <Stoot> ab group_add_member
6[7:05:19 PM] <Stoot> ab so you get another result key in your response
7[7:06:21 PM] <rcrit> I'd dare say that all add/modify calls return the resulting entry to avoid another round trip
8[7:06:55 PM] <Stoot> rcrit that's pretty odd and unnecessary
9[7:07:30 PM] <rcrit> in your opinion
10[7:08:20 PM] <Stoot> rcrit why does someone a list when he wants to add a group to a user ? do you know what happens ona response with 100k's of users ? It's like you are having a bad visit at the toilet
11[7:08:24 PM] <Stoot> ^that slow
12[7:08:51 PM] <Stoot> *need a list
13[7:09:08 PM] <rcrit> I'm not going to argue with you about it
14[7:09:12 PM] <Crys> Stoot, you have a tendency to affront others even when you don't get the full picture.
15[7:09:31 PM] <Stoot> Crys you don't seem to know how response data work ?
16[7:09:45 PM] <Crys> Stoot: Q.E.D.
17[7:09:56 PM] <Stoot> rcrit why not, you don't need the response, if you want to there should be an arg you can set for it
18[7:10:14 PM] <Stoot> Crys I speak with words, are you a millenial ?
19[7:10:21 PM] <Stoot> *millenial
20[7:10:33 PM] * rcrit notes he still has op
21[7:11:00 PM] <Stoot> rcrit indeed, I also don't like it when people pop up to start a fight like Crys ;)
22[7:11:15 PM] <rcrit> it's not him
23[7:11:23 PM] <Stoot> in your opinion
24[7:11:45 PM] <rcrit> if you have a suggestion for improving the api feel free to file a ticket at https://pagure.io/freeipa/new_issue
25[7:11:47 PM] <Stoot> it's a simple fact that API's don't return full lookups for a simple action
26[7:11:56 PM] <Stoot> yes I will add one, sure
27[7:12:41 PM] <Stoot> if you want response, set some arg for it (I also have this in my ORM) otherwise... don't bother and keep your datasets small and fast
28[7:12:43 PM] <Crys> Stoot: you don't get the full picture. Turn it down a nodge and then think: Why does the API behave like it does now.
29[7:12:55 PM] <Crys> Stoot: hint: the current behavior is an optimization.
30[7:13:15 PM] <Stoot> Crys in your opinion, compare it to other systems... if you want data, query for it
31[7:13:59 PM] <Stoot> Crys I know you always think the opposite way when there is no opposite advantage, I can't help that
32[7:14:19 PM] <Stoot> optimization would be... do you want to have return results, set an arg for it
33[7:14:30 PM] <Crys> Stoot: no, not in my opinion. In my expertise of over two decades as a software engineer and somebody who understands how LDAP and internals of API work.
34[7:14:54 PM] <Stoot> Crys wow and you are one of dozens who don't agree ;)
35[7:15:30 PM] <Stoot> Crys it's not related to ldap, it's related to the API
36[7:15:46 PM] <Stoot> I wonder who is taking the half pictures here ;)
37[7:16:00 PM] <Stoot> anyways, won't waste my time on you further, thanks
38[7:20:11 PM] <simo> wow I missed the drama ?
39[7:20:44 PM] <Stoot> simo no, the nonense of someone that doesn't understand how an API works
40[7:21:11 PM] <simo> Stoot: I suggest you be more respectufl if you want to lurk in this channel
41[7:22:10 PM] <simo> You should be able to convey arguments without baseless name calling
42[7:22:19 PM] <Stoot> simo how can someone be respectful about nonsense ? It's simple, do you know what kind of data 100K's of users is in a response when you don't need it ?
43[7:22:38 PM] <Stoot> ok, their ID's, but still, too much data
44[7:22:58 PM] <rcrit> one more chance
45[7:23:05 PM] ⓘ ChanServ gives ops to simo
46[7:23:37 PM] <simo> next is a ban too
47[7:23:59 PM] <Crys> simo: It's not the first time. Stoot has insulted Sokel before because Stoot didn't grok his answers.
48[7:24:18 PM] <simo> yeah this kind of behavior is not acceptable
49[7:24:18 PM] <Stoot> simo, I don't get any proof why that data would be usefull, it isn't, I design ORM's, I know what I'm talking about
50[7:24:31 PM] <simo> we can vehemently disagree without calling people nonsensical
51[7:24:55 PM] <simo> Stoot: you didn't design IPA, you do not know what the common use cases are, so ask and learn before spotuing gospel
52[7:25:06 PM] <Stoot> simo huh ? someone his words can be, doesn't mean the person in general, that is just someone his own opinion
53[7:25:48 PM] <simo> Stoot: you've been advised, now it is on you to behave accordingly, I do not need to debate that further
54[7:26:05 PM] <Stoot> simo it's an API, that doesn't have anything todo with the design itself. If you want to say, oh the API is used by the UI as well then you (might) have a point but it's still very optimal in data response
55[7:26:44 PM] <Crys> Stoot: that's the wrong way to reply. The correct answer is: "I'm sorry, I didn't meant to insult you. Let's start over."
56[7:28:07 PM] <Stoot> Crys I don't agree, you might have misunderstood that there are more people with knowledge and you should not put yourself above someone else by showing off, simple.
57[7:28:29 PM] <Stoot> If you agree I like to continue, if you don't... then not.