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

*: change gateway runs api #323

Merged

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Feb 28, 2022

  • Don't expose the runservice run id. In future, if needed, we should
    choose how to generate it considering if we want to shard to multiple
    runservices.

  • The gateway exposed runs are now per project/user (direct runs) and
    not global and referenced by the project/user reference plus the run
    number. So the gateway will only accept requests targeting a specific
    project/user.

  • Also notification commit status will use the run number (it already
    also use the project id). This will break current commit status links
    that uses instead the run id since there's no more gateway api to
    fetch a run by id.

Implements #310
Related agola-web PR: agola-io/agola-web#62

@sgotti
Copy link
Member Author

sgotti commented Feb 28, 2022

@alessandro-sorint Feel free to test/review it and report your feedback.

* Don't expose the runservice run id. In future, if needed, we should
  choose how to generate it considering if we want to shard to multiple
  runservices.

* The gateway exposed runs are now per project/user (direct runs) and
  not global and referenced by the project/user reference plus the run
  number. So the gateway will only accept requests targeting a specific
  project/user.

* Also notification commit status will use the run number (it already
  also use the project id). This will break current commit status links
  that uses instead the run id since there's no more gateway api to
  fetch a run by id.
@sgotti sgotti force-pushed the gateway_make_runs_api_related_to_project_user branch from 0dc3da1 to 788554a Compare March 10, 2022 08:50
@sgotti sgotti marked this pull request as ready for review March 15, 2022 10:54
@sgotti sgotti merged commit 95e67a3 into agola-io:master Mar 17, 2022
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…ated_to_project_user

*: change gateway runs api
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…ated_to_project_user

*: change gateway runs api
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.

1 participant