Skip to content

Go client expects PipelineQueue to return Activity list, but it returns Feed list #2679

@runephilosof-karnovgroup

Description

Component

other

Describe the bug

In the Go client PipelineQueue expects an Activity list

func (c *client) PipelineQueue() ([]*Activity, error) {

But GetPipelineQueue in the server returns a Feed list

func (s storage) GetPipelineQueue() ([]*model.Feed, error) {

Activity and Feed does not match

Activity

Feed

type Feed struct {

Either both server and go client should use the same file as model, or CI should ensure that they stay compatible.

System Info

next

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions