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

Resolve triggers pagination issue by calling GetPipelineTrigger #173

Merged

Conversation

jhuntoo
Copy link

@jhuntoo jhuntoo commented Sep 6, 2019

Resolves #172 .

@ghost ghost added the size/XS label Sep 6, 2019
found = true
break
if response.StatusCode == 404 {
log.Printf("[WARN] removing PipelineTrigger %d from state because it no longer exists in gitlab", pipelineTriggerID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do not do this anymore in the prodiver

Copy link
Author

Choose a reason for hiding this comment

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

I just followed the existing logic .

if !found {	
   log.Printf("[WARN] removing PipelineTrigger %d from state because it no longer exists in gitlab", pipelineTriggerID)		
   d.Set("description", pipelineTrigger.Description)
   d.SetId("")		d.Set("token", pipelineTrigger.Token)
}

So this should be removed as part of this PR ?

Copy link
Author

Choose a reason for hiding this comment

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

I've removed the code in question.

@jhuntoo jhuntoo force-pushed the fix-pipeline-triggers-pagination-issue branch from 86821f9 to 32570e6 Compare September 12, 2019 10:38
@roidelapluie roidelapluie merged commit dcaa86d into gitlabhq:master Sep 16, 2019
@roidelapluie
Copy link
Collaborator

Thanks!

@michaelbannister
Copy link

@roidelapluie can you give any indication on when you might make a release including this fix? :)

@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

[Bug] Unable to find computed trigger token.
3 participants