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

🐛 Fix application edit data source #2008

Merged
merged 2 commits into from
Jul 11, 2024
Merged

🐛 Fix application edit data source #2008

merged 2 commits into from
Jul 11, 2024

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jul 11, 2024

Resolves: #2007
Resolves: https://issues.redhat.com/browse/MTA-3232

Summary of changes:

  • The application edit form needs to use the base Application data and not the DecoratedApplication as its basis for generating an update request. Extra information added by the decoration will be unknown to the hub endpoint and will cause issues.

  • All references to Application in the application table code have been updated to DecoratedApplication

  • Any adjustments needed when a DecoratedApplication is passed to a child component as an Application have been made

  • The dereferencing part of decoration has been moved to a direct container. This will allow the reuse of the Application property name without replacing it.

Resolves: konveyor#2007

Summary of changes:
  - The application edit form needs to use the base
    `Application` data and not the `DecoratedApplication`
    as its basis for generating an update request.  Extra
    information added by the decoration will be unknown
    to the hub endpoint and will cause issues.

  - All references to `Application` in the application
    table code have been updated to `DecoratedApplication`

  - Any adjustments needed when a `DecoratedApplication` is
    passed to a child component as an `Application` have
    been made

  - The dereferencing part of decoration has been moved to
    a `direct` container.  This will allow the reuse of the
    `Application`` property name without replacing it.

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.19%. Comparing base (b654645) to head (ec3b308).
Report is 190 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2008      +/-   ##
==========================================
+ Coverage   39.20%   42.19%   +2.99%     
==========================================
  Files         146      171      +25     
  Lines        4857     5479     +622     
  Branches     1164     1309     +145     
==========================================
+ Hits         1904     2312     +408     
- Misses       2939     3151     +212     
- Partials       14       16       +2     
Flag Coverage Δ
client 42.19% <ø> (+2.99%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@rszwajko rszwajko left a comment

Choose a reason for hiding this comment

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

Code looks good! No problems in smoke tests.

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.

[BUG] Cannot edit an application that has a credential/identity assigned
2 participants