Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [Reps-General] reps-general subscribers maintenance [Requires action]

7 views
Skip to first unread message

Majken Connor

unread,
Jan 10, 2015, 2:23:30 PM1/10/15
to reps-...@lists.mozilla.org, Leo McArdle
Using the Reps portal API would be the correct way to control a Reps Group
on Discourse. The portal is where Reps, Mentors, and Council are tracked.
Connecting to Mozillians is going to be less accurate.

Leo, does the Reps API expose Mozillian profiles? Would we be able to use
that?

Reps WebDevs, if we can't use Mozillian profiles, is there a way to allow
discourse access to the emails? OR Will the Reps API and Mozillians API
talk to each other so that the Mozillians groups are automatically
maintained based on the Reps portal?

On Sat, Jan 10, 2015 at 6:28 AM, Leo McArdle <l...@mozilla.org.uk> wrote:

> Welp, I remembered just after I clicked send that actually the Reps API
> doesn't expose an email field [1], so... don't mind me!
>
> ~Leo
>
> [1] https://reps.mozilla.org/api/v1/rep/?format=json&profile__irc_name=leo
>
> On 10/01/15 11:24, Leo McArdle wrote:
> > On 09/01/15 22:20, Rubén Martín wrote:
> >> The problem right now is that we can't link Discourse to Reps group, so
> >> we can't restrict a category just to Reps automatically. In the near
> >> future when Discourse and Mozillians are linked, we will be able to have
> >> private discourse categories for NDA group, but not now.
> >
> > If it's considered important enough, we could have a reps-only group in
> > Discourse before Mozillians API v2 comes out (which IIRC was going to be
> > sometime at the end of Q1), by using the Reps Portal API.
> >
> > ~Leo
> >
>
>
> _______________________________________________
> reps-general mailing list
> reps-g...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/reps-general
> https://wiki.mozilla.org/ReMo/SOPs/Mailing_List_Policy
>
>

Leo McArdle

unread,
Jan 10, 2015, 5:28:48 PM1/10/15
to Majken Connor, reps-...@lists.mozilla.org
On 10/01/15 19:23, Majken Connor wrote:
> Leo, does the Reps API expose Mozillian profiles? Would we be able to
> use that?

It does, but it doesn't look like we can filter by it. [1]

Once Discourse has privileged access to mozillians.org, or API v2 is
released, it would be possible to find a user's reps profile
automatically using information on a mozillians.org profile like irc name.

We could also do everything the good ol' fashioned way (at least
initially), and add a new field on Discourse in user preferences for
'Reps Profile URL/Username'.

~Leo

[1]
https://reps.mozilla.org/api/v1/rep/?format=json&profile__mozillians_profile_url=https%3A%2F%2Fmozillians.org%2Fen-US%2Fleo

signature.asc

Majken Connor

unread,
Jan 10, 2015, 8:47:42 PM1/10/15
to Leo McArdle, reps-...@lists.mozilla.org
Leo,

We'd need to be able to validate that they are actually the owners of that
profile though. Is there a way to do that? If not, then the best way to do
this to start would be manually and at that point it might be worth waiting.

Nikos Roussos

unread,
Jan 11, 2015, 6:26:33 AM1/11/15
to reps-...@lists.mozilla.org
On 01/10/2015 09:23 PM, Majken Connor wrote:
> Using the Reps portal API would be the correct way to control a Reps Group
> on Discourse. The portal is where Reps, Mentors, and Council are tracked.
> Connecting to Mozillians is going to be less accurate.

I think on the long run it would be better to rely on mozillians.org as
the single point of truth for Mozillians identity and data.

> Leo, does the Reps API expose Mozillian profiles? Would we be able to use
> that?

AFAIK, Reps API exists only for internal and not public use. That's why
it's not documented.

Leo McArdle

unread,
Jan 11, 2015, 8:21:25 AM1/11/15
to reps-...@lists.mozilla.org, Majken Connor
On 11/01/15 01:47, Majken Connor wrote:
> We'd need to be able to validate that they are actually the owners of
> that profile though. Is there a way to do that?

Oh yes, that's a point. No, it's not possible without extended access to
either the mozillians.org API or reps portal API.

On the mozillians.org side once we have access to an email's
mozillians.org username, and something we could query the reps api with
(like irc name, or a link to their profile) then we could verify the
mozillians.org account isn't spoofing the rep by ensuring the username
we got from mozillians.org matches the mozillians.org url the rep has on
their profile.

I think the easiest thing to do would be to add a "Discourse Profile"
field to the Reps Portal, which one can query through the API. I'd be
happy to help implement that.

~Leo

signature.asc

Rubén Martín

unread,
Jan 12, 2015, 6:14:42 AM1/12/15
to reps-...@lists.mozilla.org
Yes, Reps Portal doesn't have a public API.

There is something similar just for internal use and not documented.

Depending on priorities and time, we will review this in 2015.

Regards.

El 11/01/15 a las 12:25, Nikos Roussos escribió:
> _______________________________________________
> reps-webdev mailing list
> reps-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/reps-webdev


--
Rubén Martín [Nukeador]
Mozilla Reps Mentor
http://www.mozilla-hispano.org
http://twitter.com/mozilla_hispano
http://facebook.com/mozillahispano

Leo McArdle

unread,
Jan 12, 2015, 11:49:42 AM1/12/15
to reps-...@lists.mozilla.org
On 12/01/15 11:14, Rubén Martín wrote:
> Yes, Reps Portal doesn't have a public API.

Are you sure about that? https://reps.mozilla.org/api/v1/rep/ seems
pretty public to me.

> There is something similar just for internal use and not documented.

Documentation isn't an issue when you can go and read the code which
produces the API. [1] Or am I misunderstanding what you mean when you
say "internal" and "public"?

It might be obfuscated, but it definitely isn't private.

~Leo

[1] https://github.com/mozilla/remo/blob/master/remo/api/urls.py
signature.asc

Rubén Martín

unread,
Jan 12, 2015, 1:56:00 PM1/12/15
to reps-...@lists.mozilla.org
El 12/01/15 a las 17:49, Leo McArdle escribió:
> On 12/01/15 11:14, Rubén Martín wrote:
>> Yes, Reps Portal doesn't have a public API.
> Are you sure about that? https://reps.mozilla.org/api/v1/rep/ seems
> pretty public to me.
>
>> There is something similar just for internal use and not documented.
> Documentation isn't an issue when you can go and read the code which
> produces the API. [1] Or am I misunderstanding what you mean when you
> say "internal" and "public"?
>
> It might be obfuscated, but it definitely isn't private.

Sorry I mean it's not intended or maintained for general public use, it
can change anytime since what we have right now is just for internal use
and tests.

Regards.
0 new messages