[jira] [Commented] (SLING-7262) Generate reusable list of repositories for machine consumption

2018-01-29 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-7262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16343313#comment-16343313
 ] 

Bertrand Delacretaz commented on SLING-7262:


I have now linked this ticket with the similar SLING-7331, and created 
[http://sling.apache.org/repolist.html] last week based on the list generated 
by [https://github.com/apache/sling-aggregator] . We'll need to consolidate 
those efforts at some point!

> Generate reusable list of repositories for machine consumption
> --
>
> Key: SLING-7262
> URL: https://issues.apache.org/jira/browse/SLING-7262
> Project: Sling
>  Issue Type: Task
>  Components: Build and Source Control
>Reporter: Robert Munteanu
>Priority: Major
>
> We currently have two 'clients' that query the github repos and the 
> .sling-module.xml descriptors:
> * the jenkins job creation DSL script
> * the repo manifest creation script
> We've also discussed in SLING-7161 the possibility of listing all 
> repositories on the website.
> To minimize the effort of talking to github in each location and reduce the 
> number of calls to Github ( for rate limiting purposes ) we should generate a 
> JSON/XML file that contains all information about the git repos. This file is 
> in turns read by various "clients" that need the information.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SLING-7262) Generate reusable list of repositories for machine consumption

2018-01-26 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-7262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16341323#comment-16341323
 ] 

Konrad Windszus commented on SLING-7262:


There is already the file {{.sling-module.xml}} within 
https://github.com/apache/sling-aggregator which could be used instead as 
starting point.

> Generate reusable list of repositories for machine consumption
> --
>
> Key: SLING-7262
> URL: https://issues.apache.org/jira/browse/SLING-7262
> Project: Sling
>  Issue Type: Task
>  Components: Build and Source Control
>Reporter: Robert Munteanu
>Priority: Major
>
> We currently have two 'clients' that query the github repos and the 
> .sling-module.xml descriptors:
> * the jenkins job creation DSL script
> * the repo manifest creation script
> We've also discussed in SLING-7161 the possibility of listing all 
> repositories on the website.
> To minimize the effort of talking to github in each location and reduce the 
> number of calls to Github ( for rate limiting purposes ) we should generate a 
> JSON/XML file that contains all information about the git repos. This file is 
> in turns read by various "clients" that need the information.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SLING-7262) Generate reusable list of repositories for machine consumption

2017-11-23 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-7262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16264327#comment-16264327
 ] 

Bertrand Delacretaz commented on SLING-7262:


You're welcome! I have now also added a {{OncePerBuild}} mechanism that we 
might use to create that modules json file, I think it's cleaner than having an 
additional Maven setup?

The code that talks to Git should not run if the json file already exists, to 
avoid slowing down interactive staging.

See commit https://github.com/apache/sling-site/commit/03c78d0

I'm not planning to implement the Git -> json code now but that should make it 
easy for you to adapt what you have in your prototype.

> Generate reusable list of repositories for machine consumption
> --
>
> Key: SLING-7262
> URL: https://issues.apache.org/jira/browse/SLING-7262
> Project: Sling
>  Issue Type: Task
>  Components: Build and Source Control
>Reporter: Robert Munteanu
>
> We currently have two 'clients' that query the github repos and the 
> .sling-module.xml descriptors:
> * the jenkins job creation DSL script
> * the repo manifest creation script
> We've also discussed in SLING-7161 the possibility of listing all 
> repositories on the website.
> To minimize the effort of talking to github in each location and reduce the 
> number of calls to Github ( for rate limiting purposes ) we should generate a 
> JSON/XML file that contains all information about the git repos. This file is 
> in turns read by various "clients" that need the information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (SLING-7262) Generate reusable list of repositories for machine consumption

2017-11-23 Thread Konrad Windszus (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-7262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16264252#comment-16264252
 ] 

Konrad Windszus commented on SLING-7262:


[~bdelacretaz] Thanks a lot. Looks much cleaner now!

> Generate reusable list of repositories for machine consumption
> --
>
> Key: SLING-7262
> URL: https://issues.apache.org/jira/browse/SLING-7262
> Project: Sling
>  Issue Type: Task
>  Components: Build and Source Control
>Reporter: Robert Munteanu
>
> We currently have two 'clients' that query the github repos and the 
> .sling-module.xml descriptors:
> * the jenkins job creation DSL script
> * the repo manifest creation script
> We've also discussed in SLING-7161 the possibility of listing all 
> repositories on the website.
> To minimize the effort of talking to github in each location and reduce the 
> number of calls to Github ( for rate limiting purposes ) we should generate a 
> JSON/XML file that contains all information about the git repos. This file is 
> in turns read by various "clients" that need the information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (SLING-7262) Generate reusable list of repositories for machine consumption

2017-11-23 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-7262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16264231#comment-16264231
 ] 

Bertrand Delacretaz commented on SLING-7262:


I saw that Konrad's prototype duplicates some code from page.tpl, to avoid that 
I have refactored the templates utility code in 
https://github.com/apache/sling-site/commit/e21451fabcb1e7d36164b54f0393181b7f08d3f2

> Generate reusable list of repositories for machine consumption
> --
>
> Key: SLING-7262
> URL: https://issues.apache.org/jira/browse/SLING-7262
> Project: Sling
>  Issue Type: Task
>  Components: Build and Source Control
>Reporter: Robert Munteanu
>
> We currently have two 'clients' that query the github repos and the 
> .sling-module.xml descriptors:
> * the jenkins job creation DSL script
> * the repo manifest creation script
> We've also discussed in SLING-7161 the possibility of listing all 
> repositories on the website.
> To minimize the effort of talking to github in each location and reduce the 
> number of calls to Github ( for rate limiting purposes ) we should generate a 
> JSON/XML file that contains all information about the git repos. This file is 
> in turns read by various "clients" that need the information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)