Skip to content

Commit f1ba8d2

Browse files
committed
Group Tools and Tips
Let's group these pages and we'll update them later! Signed-off-by: Igor Zubiaurre García <[email protected]>
1 parent d5f1f27 commit f1ba8d2

25 files changed

Lines changed: 86 additions & 16 deletions

tools-and-tips/attraction-and-retention.md renamed to docs/tools-and-tips/attraction-and-retention.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
layout: default
3+
title: Attraction & retention
4+
nav_order: 2
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
111
# Attraction & retention
212

313
[ Warning: this is work in progress, use at your own risk! ]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
title: Copying indexes
4+
nav_order: 5
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
11+
## Copying indexes
12+
13+
Python script to copy indexes:
14+
[`elastic_cp.py`](https://github.com/jgbarah/GrimoireLab-training/blob/master/tools-and-tips/scripts/elastic_cp.py).

tools-and-tips/csv-from-jenkins-enriched-index.md renamed to docs/tools-and-tips/csv-from-jenkins-enriched-index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
layout: default
3+
title: Obtain CSV from Jenkins enriched indexes in ElasticSearch
4+
nav_order: 4
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
111
## Obtain CSV from Jenkins enriched indexes in ElasticSearch
212

313
To illustrate how to get data from an enriched index (produced using `grimoire_elk`), let's review the script [`enriched_elasticsearch_jenkins.py`](https://github.com/jgbarah/GrimoireLab-training/blob/master/tools-and-tips/scripts/enriched_elasticsearch_jenkins.py). This script will query a Jenkins enriched index, producing a CSV file with some of the fields in it, since a certain number of days.
@@ -74,4 +84,4 @@ for job in response:
7484
))
7585
```
7686

77-
Once executed, we will just loop through the result, printing one line of the CSV file for each iteration. Before that, we will write the header of the CVS file, with names for all the fields to show.
87+
Once executed, we will just loop through the result, printing one line of the CSV file for each iteration. Before that, we will write the header of the CVS file, with names for all the fields to show.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
## Elasticsearch
1+
---
2+
layout: default
3+
title: ElasticSearch REST API
4+
nav_order: 1
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
11+
## Elasticsearch REST API
212

313
Some tips to work with Elasticsearch using its REST interface.
414

tools-and-tips/html5-app-latest-activity.md renamed to docs/tools-and-tips/html5-app-latest-activity.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
layout: default
3+
title: HTML5 app for latest activity
4+
nav_order: 3
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
111
## HTML5 app: latest activity
212

313
Let's build a simple HTML5 app showing the latest activity of a project or a set of projects. For that, we will create in fact two applications:
@@ -187,4 +197,4 @@ This code also decides when to call to `update()` next time: once the marquee wa
187197

188198
So, we will see the marquee rolling until no new eevents come in `events.json`, when it will stop for at a certain number of 10 seconds periods, until new events come again, which will make the marquee to roll again. And so on.
189199

190-
Funnny, isn't it?
200+
Funnny, isn't it?

docs/tools-and-tips/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
title: Tools and Tips
4+
permalink: /tools-tips
5+
nav_order: 12
6+
has_children: true
7+
has_toc: true
8+
---
9+
10+
# Tools and tips
11+
12+
This describes some useful tips, including the usage minor tools.
13+
14+
Through this tutorial, we are using several systems that are not part
15+
of GrimoireLab. Find here some tips on how to profit from them. This
16+
content is probably useful beyond GrimoireLab, but in any case is a
17+
good context for it.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
## Perceval
1+
---
2+
layout: default
3+
title: Perceval Git Counter
4+
nav_order: 5
5+
parent: Tools and Tips
6+
has_children: false
7+
has_toc: false
8+
---
9+
10+
11+
## Perceval Git Counter
212

313
This section shows some scripts using Perceval.
414

@@ -19,4 +29,4 @@ python perceval_git_counter.py --help
1929

2030
There is an option to print commit hashes for all commits in the repository: `--print`.
2131

22-
This utility illusrates how the generator provided by Perceval classes for the different kinds of repositories can be used to run through all the items in them.
32+
This utility illusrates how the generator provided by Perceval classes for the different kinds of repositories can be used to run through all the items in them.
File renamed without changes.

0 commit comments

Comments
 (0)