-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Retrieving events #61
Comments
Must of missed that! Hmm right now the full responses are hidden for clarity, but maybe adding a debug option to expose those would be helpful |
I can make a PR, do you want to remove the validateEventOptions all together or do you have a different idea about that? |
That would be amazing if you dont mind! I think validateEventOptions should still be used, but only validate if the options exist. If they dont exist it should assume things are valid. Not sure what the best way to go about that would be. Maybe
|
Fixing it now :) |
Should be fixed now! |
Hey @jdalrymple ;-) In 4.2.2, the I would like to list all events with |
Oh man, sorry :( Ill look soon |
Just released to npm and the next build! |
## [4.2.3](4.2.2...4.2.3) (2018-11-26) ### Bug Fixes * Filtering all events shouldnt require an action or a target [#61](#61) ([cda23b8](cda23b8))
@jdalrymple Thanks very much for doing it so fast. In the hurry you made a small mistake. You wrote: if (action || !(action in ACTION_TYPES)) {
/// ...
if (target || !(target in TARGET_TYPES)) { instead of: if (action && !(action in ACTION_TYPES)) {
/// ...
if (target && !(target in TARGET_TYPES)) { |
Oops! One moment! |
@jdalrymple It works!! 🎉 Thanks very much! |
When trying to retrieve all events from a project via the new Event service i came across the following difference between this package and the gitlab api:
https://docs.gitlab.com/ee/api/events.html#list-a-project-39-s-visible-events
The API states that: action and targetType are optional yet this package makes them mandatory as seen in: https://github.com/jdalrymple/node-gitlab-api/blob/4e78749edcd6022736cb8c0471df008de2fc3d19/src/services/Events.js#L27
This prevents me from using the Events service as i cant retrieve all the events.
(ps. i'm only interested in pushed events on the project, but i get an empty response when using:
{ action: 'pushed', targetType: 'project' }, that's how i found the difference between the API and the Service)
(ps2. how can i see the complete response and not only the parsed response for debugging purposes)
The text was updated successfully, but these errors were encountered: