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

client: set fiat auth user for delete pipelines request #91

Closed
wants to merge 2 commits into from

Conversation

its-aqeel
Copy link

@its-aqeel its-aqeel commented Feb 15, 2024

Summary of Changes

all request going via wrapper request but delete function deleting stale pipelines directly and was missing header for fiat user

PR Checklist

Make sure the following checklist items are done before merging this PR.

  • Update CHANGELOG.md in the ## Unreleased section (instructions here)
  • Make sure tests are passing

all request going via wrapper `request` but delete function deleting stale pipelines directly and was missing header for fiat user
@its-aqeel its-aqeel requested a review from a team as a code owner February 15, 2024 13:06
@its-aqeel its-aqeel changed the title set fiat auth user for delete request client: set fiat auth user for delete pipelines request Feb 15, 2024
@coveralls
Copy link

Coverage Status

coverage: 59.971% (-0.2%) from 60.177%
when pulling 32a3876 on its-aqeel:master
into 153d734 on armory:master.

@@ -280,6 +280,10 @@ func (c *Client) Delete(url, traceparent string) error {
if err != nil {
return err
}
if c.FiatUser != "" {
request.Header.Set(SpinFiatUserHeader, c.FiatUser)
request.Header.Set(SpinFiatAccountHeader, c.FiatUser)
Copy link
Contributor

Choose a reason for hiding this comment

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

I've temporarily approved but TECHNICALLY account header isn't the right spot for the fiat user. SHouldn't set that JUST the user header.

Copy link
Contributor

Choose a reason for hiding this comment

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

ALSO be kinda nice if a test on this...

Copy link
Author

Choose a reason for hiding this comment

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

tested in private environment and it's working fine

@jasonmcintosh
Copy link
Contributor

Closing in favor of another PR which adds this.

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.

3 participants