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

Add survey report settings page #1810

Merged
merged 16 commits into from
Jul 11, 2023
Merged

Conversation

jadmsaadaot
Copy link
Collaborator

Description of changes:

  • Add survey report settings page
  • Add survey report services
  • Add ClientSidePagination wrapper component for MetTable
  • Update resource path

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@jadmsaadaot jadmsaadaot self-assigned this Jul 7, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 7, 2023

Codecov Report

Merging #1810 (41ce895) into main (c0bcf62) will decrease coverage by 0.03%.
The diff coverage is 54.83%.

❗ Current head 41ce895 differs from pull request most recent head 4d8417b. Consider uploading reports for the commit 4d8417b to get more accurate results

@@            Coverage Diff             @@
##             main    #1810      +/-   ##
==========================================
- Coverage   70.85%   70.82%   -0.03%     
==========================================
  Files         389      389              
  Lines       11846    11840       -6     
  Branches      893      893              
==========================================
- Hits         8393     8386       -7     
- Misses       3300     3301       +1     
  Partials      153      153              
Flag Coverage Δ
metapi 79.17% <53.33%> (-0.04%) ⬇️
metweb 63.21% <100.00%> (ø)

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

Impacted Files Coverage Δ
met-web/src/apiManager/endpoints/index.ts 100.00% <ø> (ø)
...api/src/met_api/services/report_setting_service.py 61.95% <18.18%> (-3.16%) ⬇️
met-api/src/met_api/resources/report_setting.py 63.41% <64.28%> (-2.66%) ⬇️
met-api/src/met_api/resources/__init__.py 100.00% <100.00%> (ø)
met-api/src/met_api/services/survey_service.py 77.30% <100.00%> (+0.49%) ⬆️
met-web/src/components/common/Table/index.tsx 82.08% <100.00%> (ø)

@jadmsaadaot jadmsaadaot marked this pull request as ready for review July 7, 2023 21:32
@jadmsaadaot
Copy link
Collaborator Author

Front end unit tests will follow this PR

@jadmsaadaot jadmsaadaot merged commit 978208c into bcgov:main Jul 11, 2023
14 checks passed
@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

NatSquared pushed a commit that referenced this pull request Oct 19, 2023
* implement client side pagination

* add fetch report settings

* Add checkbox and refine components

* call patch update with the updated settings

* handle navigation on save

* validate survey during update

* fix lint and unit test

* Add service test

* replace double quote with single

* Complete dashboard url copy functionality

* load engagement slug

* remove generate dashboard button setting from report settings

* remove only from unit test

* update docstring and function names
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.

4 participants