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

chore: [IOBP-660] Add remote feature flag to the new payment section #383

Merged
merged 4 commits into from
May 29, 2024

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented May 27, 2024

⚠️ This PR depends on pagopa/io-services-metadata#782 ⚠️

Short description

This PR adds a mock remote feature flag to the new payment section

List of changes proposed in this pull request

  • Upgraded the swagger definitions
  • Added the new attribute newPaymentSection from the backend.ts file

Copy link

dpulls bot commented May 27, 2024

🎉 All dependencies have been resolved !

Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.78%. Comparing base (54c1d40) to head (d9ea53c).
Report is 4 commits behind head on master.

Current head d9ea53c differs from pull request most recent head e7dc08e

Please upload reports for the commit e7dc08e to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #383      +/-   ##
==========================================
- Coverage   69.87%   69.78%   -0.10%     
==========================================
  Files         153      156       +3     
  Lines        4886     4997     +111     
  Branches      562      605      +43     
==========================================
+ Hits         3414     3487      +73     
+ Misses       1471     1432      -39     
- Partials        1       78      +77     
Files Coverage Δ
src/payloads/backend.ts 100.00% <ø> (ø)

... and 25 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ec8883...e7dc08e. Read the comment docs.

@Hantex9 Hantex9 merged commit 889128f into master May 29, 2024
6 checks passed
@Hantex9 Hantex9 deleted the IOBP-660-remote-feature-flag-payment-section branch May 29, 2024 09:18
Hantex9 added a commit to pagopa/io-app that referenced this pull request May 29, 2024
…5798)

## ⚠️ This PR depends on
pagopa/io-services-metadata#782 ⚠️

## Short description
This PR adds the remote feature flag to the new payment section. It will
be visible only when the remote or local FF is enabled. (The local
feature flag is considered only if the remote one is disabled)

## List of changes proposed in this pull request
- Added a new `isNewPaymentSectionEnabledSelector` selector that takes
into account remote configuration
- Replaced the previous `isNewWalletSectionEnabledSelector` with this
new one but the previous one is still available in order to show the
local feature flag.

## How to test
- Checkout this PR: pagopa/io-dev-api-server#383
- Try to change the `enabled` attribute from the `newPaymentSection`
into the `backend.ts` file on the dev-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants