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

Add/run create error #410

Merged
merged 9 commits into from
Nov 13, 2024
Merged

Conversation

dscervantes
Copy link
Contributor

What?

Explain what the change is linking any relevant JIRAs or Issues.
add an error message to the response from the dispatch api call
https://issues.redhat.com/browse/RHCLOUD-35452

Why?

Consider what business or engineering goal does this PR achieves.
https://issues.redhat.com/browse/RHCLOUD-35452

How?

Describe how the change is implemented. Any noteable new libaries, APIs, or features.

Testing

Did you add any tests for the change?

Anything Else?

Any other notes about the PR that would be useful for the reviewer.

Secure Coding Practices Checklist Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • [ x] General Coding Practices

Copy link
Contributor

@dehort dehort left a comment

Choose a reason for hiding this comment

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

Looking good. I left one comment.

internal/api/controllers/private/runsCreateActions.go Outdated Show resolved Hide resolved
Copy link
Contributor

@dehort dehort left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I want to understand why our IQE tests are not running before we merge this though.

@dehort
Copy link
Contributor

dehort commented Nov 7, 2024

Oh! The pr check is back! Yay! \o/

@dehort
Copy link
Contributor

dehort commented Nov 7, 2024

I just thought of something. We need to add the message field to the openapi spec:
https://github.com/RedHatInsights/playbook-dispatcher/blob/master/schema/private.openapi.yaml#L246

@dehort dehort self-requested a review November 7, 2024 17:24
Copy link
Contributor

@dehort dehort left a comment

Choose a reason for hiding this comment

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

I just thought of something. We need to add the message field to the openapi spec:
https://github.com/RedHatInsights/playbook-dispatcher/blob/master/schema/private.openapi.yaml#L246

@dehort
Copy link
Contributor

dehort commented Nov 8, 2024

/retest

@dehort
Copy link
Contributor

dehort commented Nov 8, 2024

@dscervantes I think this is failing because the api code needs to be regenerated because we changed the openapi spec. Can you run make generate-api and see if that resolves that failure?

@skarekrow
Copy link
Contributor

skarekrow commented Nov 11, 2024

This looks related to: golang/go#69361

@skarekrow skarekrow force-pushed the add/runCreateError branch 2 times, most recently from fa16ee9 to 1f733a8 Compare November 11, 2024 20:15
@skarekrow
Copy link
Contributor

/retest

Copy link
Contributor

@dehort dehort left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@dehort dehort merged commit 3ee410a into RedHatInsights:master Nov 13, 2024
11 of 13 checks passed
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