Skip to content

fix: obey rate limits for all request types correctly#170

Merged
jdalrymple merged 1 commit into
jdalrymple:masterfrom
siemens:fix/rate-limit
Aug 28, 2018
Merged

fix: obey rate limits for all request types correctly#170
jdalrymple merged 1 commit into
jdalrymple:masterfrom
siemens:fix/rate-limit

Conversation

@max-wittig

@max-wittig max-wittig commented Aug 22, 2018

Copy link
Copy Markdown
Contributor

Waiting for #169 to be merged

@@ -1,4 +1,7 @@
import { RequestHelper } from '../../../src/infrastructure';
import Gitlab from '../../..';

@jetersen jetersen Aug 22, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be '../../../src'
Please fix the import statement: https://travis-ci.org/jdalrymple/node-gitlab/jobs/419127291#L3209-L3210

@max-wittig max-wittig changed the title fix: obey rate limits for all request types correctly WIP: fix: obey rate limits for all request types correctly Aug 22, 2018
@max-wittig max-wittig changed the title WIP: fix: obey rate limits for all request types correctly fix: obey rate limits for all request types correctly Aug 22, 2018
@max-wittig

Copy link
Copy Markdown
Contributor Author

I sadly had to drop the tests, as jest runs out of order and in parallel.

Comment thread src/infrastructure/RequestHelper.js Outdated
[body]: options,
});
try {
if (type === 'get') {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

wouldnt a switch statement here be better?

@max-wittig

Copy link
Copy Markdown
Contributor Author

@jdalrymple Any blockers? I think the pipeline failure is a random occurrance. Right?

@jdalrymple

Copy link
Copy Markdown
Owner

Looks like a few of the properties changed in the application settings test. Just need to add the missing props

@jdalrymple jdalrymple merged commit 4bc7c69 into jdalrymple:master Aug 28, 2018
jdalrymple pushed a commit that referenced this pull request Aug 28, 2018
## [3.11.2](3.11.1...3.11.2) (2018-08-28)

### Bug Fixes

* obey rate limits for all request types correctly ([#170](#170)) ([4bc7c69](4bc7c69)), closes [#165](#165)
* Testing negated npmignore ([86960c4](86960c4))
@jdalrymple

Copy link
Copy Markdown
Owner

🎉 This PR is included in version 3.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@max-wittig

Copy link
Copy Markdown
Contributor Author

@jdalrymple Sorry I haven't found the time to adjust the tests.
Thanks for the merge :)

jdalrymple added a commit that referenced this pull request Sep 5, 2018
* chore: Introduce typescript 
* chore: Remove lodash.pick, use native js instead
* chore: Add tslint and extend Airbnb ruleset
* chore: Remove Babel Dependency, replace build steps with tsc
* chore: change target for modern env from es2017 to es6 (async/await should be transpiled to downlevel js)
* chore(package): Updating packages
* fix: Fix error while throwing an error in RequestHelper (#156)
* feat: Support rejectUnauthorized parameter (#164)
* feat: Adding project archive abilities
* fix(test): Application settings API updated (#177)
* fix: Removing token requirement (#176)
* chore: Removing npmignore and using files instead.
* fix: obey rate limits for all request types correctly (#170)
* fix: Camel casing broke the body params
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.

3 participants