Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

US-190 avec ou sans internet #217

Merged
merged 27 commits into from Jan 6, 2017
Merged

US-190 avec ou sans internet #217

merged 27 commits into from Jan 6, 2017

Conversation

bdavidxyz
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 83.005% when pulling f300af4 on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Dec 21, 2016

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 83.005% when pulling 5ca5acf on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Dec 21, 2016

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 83.005% when pulling 447e17f on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Dec 21, 2016

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Coverage increased (+9.6%) to 93.08% when pulling ca0fa3e on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Dec 26, 2016

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Coverage increased (+9.3%) to 92.857% when pulling 7d91c40 on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Dec 28, 2016

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

Copy link
Contributor

@jbuget jbuget left a comment

Choose a reason for hiding this comment

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

Quelques interrogations et des micro-modifs en mode "easy".

Il y a aussi plein de commentaires – je suis pas fan car tout code en commentaire est un gros risque de code obsolète avant / sans même qu'on s'en rende compte – mais j'ai pas envie de bloquer l'US pour ça.

@@ -1 +1,4 @@
extends: '../.eslintrc'

globals:
include: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Pourquoi est-on obligé d'autoriser le mot include ? question vraiment naïve : je ne connais pas la différence avec require et j'imagine que ESLint a une raison pour ne pas l'accepter de base.

Copy link
Contributor

Choose a reason for hiding this comment

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

Avec la modif de api/lib/settings.js je vois pour quoi on l'ajoute. Par contre, j'ai une remarque sur cette ligne, cf. ci-dessous.

global.abs_path = function(path) {
return global.base_dir + path;
};
global.include = function(file) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Dans quel cas faut-il utiliser la méthode custom include plutôt que l'import standard require ?

expect(challenge.attributes.instruction).to.equal('Que peut-on dire des œufs de catégorie A ?\n');
expect(challenge.attributes.proposals).to.equal('- Ils sont bio.\n- Ils pèsent plus de 63 grammes.\n- Ce sont des oeufs frais.\n- Ils sont destinés aux consommateurs.\n- Ils ne sont pas lavés.\n');
expect(challenge.attributes.type).to.equal('QCM');
expect(challenge.attributes['has-internet-and-tools']).to.equal(true);
done();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Merci pour la transformation :-)

@@ -48,6 +48,33 @@ describe('Unit | Utils | lodash-utils', function () {
});


describe('areCSVequivalent', function () {
it('when no arg are given, should return false', function (done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Une question que je me pose, est-ce qu'on décide qu'on se force à utiliser done même quand on n'est pas dans un contexte asynchrone ? Dans ce cas et ceux qui suivent, par exemple, on fait un simple expect tout ce qu'il y a de plus synchrone. On peut peut-être s'économiser des lignes et de l'énergie en ommettant done, non ? WDYT ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

si pas besoin de done(), on le supprime

@@ -1,26 +1,14 @@
import Ember from 'ember';
import _ from 'lodash/lodash';
// import _ from 'pix-live/utils/lodash-custom';
Copy link
Contributor

Choose a reason for hiding this comment

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

code mort

@@ -64,7 +63,8 @@
"replace": "^0.3.0",
"stylelint": "^7.2.0",
"stylelint-config-standard": "^13.0.0",
"tap-xunit": "^1.4.0"
"tap-xunit": "^1.4.0",
"phantomjs-prebuilt":"2.1.14"
Copy link
Contributor

Choose a reason for hiding this comment

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

Du coup, il faut modifier le README à la racine pour supprimer dans la partie "installation" le prérequis de PhantomJS, non ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

README à jour. Je vais envoyer un mail aux dev pour prévenir du changement de version. Je n'ai pas réussi à supprimer la dépendance globale.

});

it('renders', function() {
// Set any properties with this.set('myProperty', 'value');
Copy link
Contributor

Choose a reason for hiding this comment

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

code mort ?

@coveralls
Copy link

Coverage Status

Coverage increased (+9.3%) to 92.833% when pulling 5f8f51b on 190-no-internet into 6420662 on dev.

@jbuget
Copy link
Contributor

jbuget commented Jan 4, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 85fc3fa on 190-no-internet into ** on dev**.

@jbuget
Copy link
Contributor

jbuget commented Jan 4, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a4d5c68 on 190-no-internet into ** on dev**.

@jbuget
Copy link
Contributor

jbuget commented Jan 4, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a4d5c68 on 190-no-internet into ** on dev**.

@jbuget
Copy link
Contributor

jbuget commented Jan 4, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8554134 on 190-no-internet into ** on dev**.

@jbuget
Copy link
Contributor

jbuget commented Jan 4, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7507fb9 on 190-no-internet into ** on dev**.

@jbuget
Copy link
Contributor

jbuget commented Jan 6, 2017

I've deployed this PR to http://190-no-internet.pix.beta.gouv.fr. Please check it out

@bdavidxyz bdavidxyz merged commit 476cbc7 into dev Jan 6, 2017
@bdavidxyz bdavidxyz deleted the 190-no-internet branch January 6, 2017 14:49
@mackwic mackwic added this to the no-milestone milestone Dec 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants