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

Fix #33 : Port is now configureable via 'npm config' #50

Merged
merged 77 commits into from
May 23, 2016

Conversation

hoshin
Copy link

@hoshin hoshin commented Apr 13, 2016

-> removed old way of setting port
-> if no port is set, default is still 3000
-> documentation updated to reflect change

This should fix #33

hoshin added 13 commits April 5, 2016 17:12
ludwig is creating pull requests to (not automatically master)
+ Updated documentation and sample configuration file to reflect the fact we don't need the acceptedTestsLocation property anymore
user's Github DisplayName (and connects the user if he is not)
display name (filter now uses the github user id which should be less
ambiguous + very stable)
-> removed old way of setting port
-> if no port is set, default is still 3000
-> documentation updated to reflect change
…ate format is now the same as in the history page
@@ -121,6 +121,19 @@ Deux autres paramètres sont configurés par clefs de configuration NPM :

Pour automatiser l'enregistrement de toutes les clefs de configuration npm, un script est disponible dans `./scripts/setupNPMVariables.sh`. Cela reste partiellement manuel mais aucune clef n'est oubliée et cela devrait éviter les fautes de frappe.

#### Autres options de configuration

Il est possible de configurer le port que va utiliser le serveur Ludwig. Par défaut, ludwig se lancera éécoutera sur le port `3000`. Cependant, il est possible de définir le port que vous souhaitez en configurant la clef `ludwig:port` par npm config.
Copy link
Member

Choose a reason for hiding this comment

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

« se lancera éécoutera » 😉

npm config (avec les ```)

 - Removed callbacks in xUnitParser in favor of promises
 - Renamed parsed.js into testSuiteParserUtils.js to try an better
   convey intent
 - renamed methods in parsed.js to better convey intent too
 - various refactors to try and not mix operations (checking vs building) in xUnitParser.parse
Renamed the configuration object to make it more explicit that the
configuration needed by the testResultsCollector is the app's
configuration
There is no need for GithubHelper & XUnitParser to be instantiated each
time the collector needs them.
Created a DAO to try and better separate concerns and have a
testResultsCollector that only manipulates data and does not get into
mongodb internals
We don't need to explicitly assign some of the elements of the callback
call in the collectTestHistoryDataForTest for now. Shorthand
assignations will do the job
testService does not have another purpose than to wrap database calls,
we might as well use the dedicated DAO to do this
Explicitly setting userIdFilter at the beginning of the listTests
handler is not mandatory.
+ reformatted a bit githubHelper
hoshin and others added 28 commits May 2, 2016 19:41
- also refactored getSystemOutputsForTests to try to better reveal intent
- the aim of this is to avoid making tons of call to the github API and trigger abuse mechanisms
- at the moment, the most likely way to trigger githubs abuse mechanisms is when importing test results
- githelper aims to try and do most of the "data intensive" work (like getting initial commiter info) offline on a cloned app repo, instead of systematically make calls to the github API
- this should avoid triggering rate-limit based errors
- App does not rely on GH API for commit history anymore (local checkout
  & exploration)
- Metadata comes solely from git logs
- Filter in the GUI filter based on email / github login / github display name (not GH id)
- It should not be possible to start processing the contents of a repo
  if it's not finished cloning / updating anymore
- Changed the tests around (and the gitHelper) to allow testing of the
  simpleGit configuration at each call
Batch retrieves initial file author + author is displayed in list ...
- Function to send data to ludwig now uses the default formatter and can use a custom one
- Modified the test.ejs template to give a json object for expected data
- Widget is now able to POST a suggestion (vanilla JS workflow w/ form
  creation in the DOM + post called on it)
- form added to the DOM is checked for presence and removed if need be
- Added a route to handle the post that works like the get one
- Updated example template to use POST to create a PR from the ludwig
  server
- Updated documentation to reflect the new widget API
- mostly by using imports instead or requires and getting rid or var statements
- search now properly uses GitHub API to search for a single reference
  (and not get whatever random of list of references is returned first
by the API).
- no more actual search logic supported by the helper, everything is
  delegated to the GitHub API
…erence

Fix githelper gets exact branch reference
- Function to send data to ludwig now uses the default formatter and can use a custom one
- Modified the test.ejs template to give a json object for expected data
- Widget is now able to POST a suggestion (vanilla JS workflow w/ form
  creation in the DOM + post called on it)
- form added to the DOM is checked for presence and removed if need be
- Added a route to handle the post that works like the get one
- Updated example template to use POST to create a PR from the ludwig
  server
- Updated documentation to reflect the new widget API
…gmap/ludwig into widget_update_custom_format_for_ludwig
-> removed old way of setting port
-> if no port is set, default is still 3000
-> documentation updated to reflect change
- Removed duplicate section about port config
- Removed typos in port config section
@hoshin hoshin merged commit fadc0a0 into master May 23, 2016
@hoshin hoshin deleted the custom_port_setup branch June 20, 2016 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to specify port
2 participants