Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377563 - Web application gives an error when trying to set a user as "Mentor"
Summary: Web application gives an error when trying to set a user as "Mentor"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: RecruitingWebapp (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joachim Bartosik (RETIRED)
URL:
Whiteboard:
Keywords:
: 377561 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-03 14:57 UTC by Markos Chandras (RETIRED)
Modified: 2011-09-20 13:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2011-08-03 14:57:57 UTC
When I was trying to change phajdan.jr's role from Recruit -> Mentor I got the following error

"To proceed please correct the following:
Nick not found this nick amoung Gentoo Developers."


There is also a type in "amoung" here

Thank you
Comment 1 Joachim Bartosik (RETIRED) gentoo-dev 2011-08-03 16:00:23 UTC
That's because phajdan.jr is not listed as Gentoo Developer nick in.

http://www.gentoo.org/proj/en/devrel/roll-call/devlist.xml?mode=yaml

Thanks for noticing typo.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-08-03 16:10:10 UTC
(In reply to comment #1)
> That's because phajdan.jr is not listed as Gentoo Developer nick in.
> 
> http://www.gentoo.org/proj/en/devrel/roll-call/devlist.xml?mode=yaml
> 
> Thanks for noticing typo.

I don't understand how this is possible. He is listed here

http://www.gentoo.org/proj/en/devrel/roll-call/devlist.xml
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2011-08-03 16:10:53 UTC
*** Bug 377561 has been marked as a duplicate of this bug. ***
Comment 4 Mike Gilbert gentoo-dev 2011-08-03 17:49:03 UTC
I'm no xsl expert, but I think yaml mode is excluding anyone who does not have their latitude set in LDAP.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?revision=1.10

<!-- yaml mode -->
<xsl:template match="/devlist" mode="yaml">
<xsl:text>{
  "developers": [
</xsl:text>
<xsl:apply-templates select="exslt:node-set($rollcall)/user[location/@lat and not(status)]" mode="yaml"/>
<xsl:text>  ]
}
</xsl:text>
</xsl:template>
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2011-08-03 20:35:02 UTC
(In reply to comment #4)
> I'm no xsl expert, but I think yaml mode is excluding anyone who does not have
> their latitude set in LDAP.
> 
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?revision=1.10
> 
> <!-- yaml mode -->
> <xsl:template match="/devlist" mode="yaml">
> <xsl:text>{
>   "developers": [
> </xsl:text>
> <xsl:apply-templates select="exslt:node-set($rollcall)/user[location/@lat and
> not(status)]" mode="yaml"/>
> <xsl:text>  ]
> }
> </xsl:text>
> </xsl:template>

Infra: If so can we get everyone there?
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-08-11 21:53:11 UTC
Ok, this should work now. Not closing the bug until you confirm it works AND that the devmap isn't broken.

/var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v  <--  devlist.xsl
new revision: 1.11; previous revision: 1.10
/var/cvsroot/gentoo/xml/htdocs/xsl/devmap.xsl,v  <--  devmap.xsl
new revision: 1.2; previous revision: 1.1

Should be live in an hour or two.
Comment 7 Mike Gilbert gentoo-dev 2011-08-11 23:16:30 UTC
The devlist has phajdan.jr now, and the devmap appears to still work.
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2011-09-20 13:08:16 UTC
This seems to work so closing