-
Notifications
You must be signed in to change notification settings - Fork 71
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 payment component by default in addLayoutSet endpoint when adding a payment layoutset #13102
Add payment component by default in addLayoutSet endpoint when adding a payment layoutset #13102
Conversation
backend/tests/Designer.Tests/Controllers/AppDevelopmentController/AddLayoutSetTests.cs
Dismissed
Show dismissed
Hide dismissed
a21798b
to
c47128a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13102 +/- ##
=======================================
Coverage 91.88% 91.88%
=======================================
Files 1426 1426
Lines 19957 19958 +1
Branches 2389 2389
=======================================
+ Hits 18338 18339 +1
Misses 1360 1360
Partials 259 259 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontend part looks good 🙂👍
backend/src/Designer/Infrastructure/GitRepository/AltinnAppGitRepository.cs
Outdated
Show resolved
Hide resolved
… a payment layoutset
2d098f6
to
f34bd70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"payment" is used multiple times. It would be nice to create constants for TaskType?
f34bd70
to
751c2a9
Compare
Description
Pass the taskType from frontend in addition to the actual layoutSetConfig when adding a task in the processEditor.
Check in the AddLayoutSet endpoint in backend if the taskType is
payment
and add a default component in the new default layout if so.Related Issue(s)
Verification