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

Go client RepoListOpts: Deprecate sync argument #2083

Closed
5 tasks done
runephilosof-karnovgroup opened this issue Aug 1, 2023 · 2 comments · Fixed by #2090
Closed
5 tasks done

Go client RepoListOpts: Deprecate sync argument #2083

runephilosof-karnovgroup opened this issue Aug 1, 2023 · 2 comments · Fixed by #2090
Labels
breaking will break existing installations if no manual action happens refactor delete or replace old code

Comments

@runephilosof-karnovgroup
Copy link
Contributor

Component

other

Describe the bug

RepoListOpts first argument is sync

func (c *client) RepoListOpts(sync, all bool) ([]*Repo, error) {

Which controls the argument flush, sent to the server

uri := fmt.Sprintf(pathRepos+"?flush=%v&all=%v", c.addr, sync, all)

However, the server only cares about the all argument and ignores the flush.

So deprecate the sync argument (by documenting it with a code comment?)

System Info

github.com/woodpecker-ci/woodpecker v1.0.0

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.
@runephilosof-karnovgroup runephilosof-karnovgroup added the bug Something isn't working label Aug 1, 2023
@runephilosof-karnovgroup
Copy link
Contributor Author

flush was removed in 0970f35

@runephilosof-karnovgroup
Copy link
Contributor Author

Remove the sync argument in v2.0

@qwerty287 qwerty287 added breaking will break existing installations if no manual action happens refactor delete or replace old code and removed bug Something isn't working labels Aug 1, 2023
@6543 6543 closed this as completed in #2090 Aug 3, 2023
6543 pushed a commit that referenced this issue Aug 3, 2023
Closes #2083 

This is breaking because I removed the old, unused `sync` parameter
(#2083).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking will break existing installations if no manual action happens refactor delete or replace old code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants