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: obey rate limits for all request types correctly #170

Merged
merged 1 commit into from
Aug 28, 2018
Merged

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

merged 1 commit into from
Aug 28, 2018

Conversation

max-wittig
Copy link
Contributor

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

Waiting for #169 to be merged

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

@jetersen jetersen Aug 22, 2018

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
Contributor Author

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

});
try {
if (type === 'get') {
Copy link
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
Contributor Author

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

@jdalrymple
Copy link
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
Owner

🎉 This PR is included in version 3.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@max-wittig
Copy link
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