Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot Integration #17

Merged
merged 13 commits into from
Jun 1, 2016
Merged

Reboot Integration #17

merged 13 commits into from
Jun 1, 2016

Conversation

tmerlier
Copy link
Contributor

Réf #16

@tmerlier tmerlier self-assigned this May 31, 2016
return communes.get(codeInsee);
return {
commune: communes.get(codeInsee),
communesLoad: communes.size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oulà c'est complexe. Je crois pas que ce soit justifié d'altérer cette fonction.

@tmerlier tmerlier added this to the 1.0 milestone May 31, 2016
@tmerlier
Copy link
Contributor Author

tmerlier commented Jun 1, 2016

Il reste à tester les cas particulier des villes à arrondissement et les tests de l'intégration devrait être terminé.

@jdesboeufs
Copy link
Contributor

On va aussi mettre @ThibautGery comme ça on aura plusieurs sons de cloches ;)

const debug = require('debug')('integration');
const centroid = require('turf-centroid');
const streamify = require('stream-array');
const integrate = require('./lib/integrate').integration;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu devrais rendre tout ça homogène, ainsi que les scripts dans le package.json.
integrate partout ça me semble pas mal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu voudrais remplacer tous les "integration" par '"integrate"? C'est l'idée

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Au moins à cet endroit, car tu renommes la variable du coup.
Et sinon tu peux faire :

const { integrate } = require('./lib/integrate');


// Init paths
const paths = {
communesFilePath: options.communesFilePath || __dirname + '/data/communes-dp25.json',
Copy link
Contributor

@jdesboeufs jdesboeufs Jun 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça ne marchera pas.
Mets plutôt : __dirname + '/../data/communes-dp25.json'

@jdesboeufs
Copy link
Contributor

Sinon good job ! ;)


// Init paths
const paths = {
communesFilePath: options.communesFilePath || __dirname + '../data/communes-dp25.json',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken

// Init paths
const paths = {
communesFilePath: options.communesFilePath || __dirname + '../data/communes-dp25.json',
codesPostauxFilePath: options.codesPostauxFilePath || __dirname + '../data/laposte_hexasmal.json',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken

@jdesboeufs jdesboeufs merged commit 1d51fdc into master Jun 1, 2016
@jdesboeufs jdesboeufs deleted the reboot-integration branch June 1, 2016 14:48
@tmerlier tmerlier mentioned this pull request Jun 1, 2016
3 tasks
@jdesboeufs jdesboeufs removed this from the 1.0 milestone Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants