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

🐛 Business services: Fix create/edit when owner is included #1418

Merged
merged 1 commit into from
Sep 29, 2023

Commits on Sep 29, 2023

  1. 🐛 Business services: Fix create/edit when owner is included

    The `owner` field on the `BusinessService` payload needs to be a pure
    `Ref` object or it will be rejected by the REST API call.  Adopt the
    same set of data transforms used in the application-form to handle
    getting the correct set of data.
    
    Related changes:
      - Business service related REST API functions updated to have the
        correct response types
    
      - Business service queries updated to pass REST API response and
        input values to `onSuccess()` and `onError()` handlers
    
      - `BusinessServiceForm` updated to use mutation response data to
        display the name of the business service in success messages
    
      - Refactored `business-service-form.tsx` to move all data
        access/mutation code to hook `useApplicationFormData() to logically
        divide concerns (data access v. UI handling)
    
    Resolves: https://issues.redhat.com/browse/MTA-1346
    
    Signed-off-by: Scott J Dickerson <[email protected]>
    sjd78 committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    6da1079 View commit details
    Browse the repository at this point in the history