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

feat: [PE-763] CGN partner search #432

Merged
merged 9 commits into from
Nov 12, 2024
Merged

Conversation

freddi301
Copy link
Collaborator

Short description

Adds new endpoints for search CGN partners by text

List of changes proposed in this pull request

  • add /search endpoint

How to test

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.

Project coverage is 63.95%. Comparing base (ab8e660) to head (54a2a5f).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/routers/features/cgn/merchants.ts 23.07% 8 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #432      +/-   ##
==========================================
- Coverage   64.04%   63.95%   -0.10%     
==========================================
  Files         167      167              
  Lines        5399     5412      +13     
  Branches      739      751      +12     
==========================================
+ Hits         3458     3461       +3     
+ Misses       1940     1808     -132     
- Partials        1      143     +142     
Files with missing lines Coverage Δ
src/routers/features/cgn/merchants.ts 35.80% <23.07%> (-2.44%) ⬇️

... and 33 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 db5f6c5...54a2a5f. Read the comment docs.

@freddi301 freddi301 marked this pull request as ready for review November 6, 2024 09:04
@freddi301 freddi301 requested a review from a team as a code owner November 6, 2024 09:04
package.json Outdated
@@ -8,8 +8,8 @@
"io_session_manager_api": "https://raw.githubusercontent.com/pagopa/io-auth-n-identity-domain/[email protected]/apps/io-session-manager/api/internal.yaml",
"io_session_manager_public_api": "https://raw.githubusercontent.com/pagopa/io-auth-n-identity-domain/[email protected]/apps/io-session-manager/api/public.yaml",
"api_public_specs": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_public.yaml",
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn.yaml",
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn_operator_search.yaml",
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend//refs/tags/v16.2.0-RELEASE/api_cgn.yaml",
Copy link
Contributor

Choose a reason for hiding this comment

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

typo here, please edit only the version without adding the refs tags

Suggested change
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend//refs/tags/v16.2.0-RELEASE/api_cgn.yaml",
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend/v16.2.0-RELEASE/api_cgn.yaml",

package.json Outdated
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn.yaml",
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn_operator_search.yaml",
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend//refs/tags/v16.2.0-RELEASE/api_cgn.yaml",
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend//refs/tags/v16.2.0-RELEASE/api_cgn_operator_search.yaml",
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Suggested change
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend//refs/tags/v16.2.0-RELEASE/api_cgn_operator_search.yaml",
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend/v16.2.0-RELEASE/api_cgn_operator_search.yaml",

Copy link
Contributor

@Hantex9 Hantex9 left a comment

Choose a reason for hiding this comment

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

LGTM

@Hantex9 Hantex9 merged commit 75aa572 into master Nov 12, 2024
8 checks passed
LeleDallas added a commit to pagopa/io-app that referenced this pull request Nov 13, 2024
## Short description
Added a partner's search new screen.
Refer to screens in https://pagopa.atlassian.net/browse/PE-630
description.
See https://pagopa.atlassian.net/browse/PE-758 for no search results
screen

## List of changes proposed in this pull request
- add labels
- remove search functionality in discount list by operators
- add new search page

## How to test

To test with dev-api-server this PR is needed
pagopa/io-dev-api-server#432
I did not made this PR depend on it since it is testable using other
backend environments

Going to the new search screen option 1:
- login into the app
- go to CGN card trough wallet (add it if necessary)
- press discover opportunities
- press magnifying icon in the top bar

Going to the new search screen option 2:
- login into the app
- go to CGN card trough wallet (add it if necessary)
- press discover opportunities
- go to any category
- press magnifying icon in the top bar

Testing the search screen

- Go to the new search screen
- search for partner
- check if you see the results
- press on a result and check if it opens the correct screen

| overview |
| - |
| <video
src="https://github.com/user-attachments/assets/ded627b4-a068-43c3-8a15-c3b8af2ae998"/>
|

---------

Co-authored-by: Emanuele Dall'Ara <[email protected]>
Co-authored-by: Alessandro <[email protected]>
Co-authored-by: mariateresaventura <[email protected]>
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