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 find_file functionality from plotting service to api #424

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

HumzahJavid
Copy link
Contributor

@HumzahJavid HumzahJavid commented Nov 25, 2024

As part of refactoring, and preventing duplication of code

Closes #423 (in combination with related PR for the plotting_service repo)

Description

This PR will:

  • Add the find_file endpoints, utility functions and tests to the FIA API

As part of refactoring, and preventing duplication of code
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 70.31250% with 19 lines in your changes missing coverage. Please review.

Project coverage is 84.34%. Comparing base (c5befd2) to head (f09323c).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
fia_api/router.py 36.84% 12 Missing ⚠️
fia_api/core/utility.py 84.44% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #424      +/-   ##
==========================================
- Coverage   86.92%   84.34%   -2.59%     
==========================================
  Files          28       28              
  Lines         895      958      +63     
==========================================
+ Hits          778      808      +30     
- Misses        117      150      +33     

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

fia_api/core/utility.py Dismissed Show dismissed Hide dismissed
fia_api/core/utility.py Dismissed Show dismissed Hide dismissed
fia_api/core/utility.py Dismissed Show dismissed Hide dismissed
The cause of the test failing (due to misreading the type) is not clear, this is a test fix for the tests
fia_api/core/utility.py Dismissed Show dismissed Hide dismissed
Some functions were hastily moved over to FIA-API during find_files refactor but these were not needed, the related commit in plotting service fiaisis/plotting-service@0a5330d
@HumzahJavid HumzahJavid requested a review from Pasarus December 20, 2024 15:30
@HumzahJavid HumzahJavid self-assigned this Dec 20, 2024
Copy link
Member

@Pasarus Pasarus left a comment

Choose a reason for hiding this comment

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

Needs e2e tests and another change

level=logging.INFO,
)
logger = logging.getLogger(__name__)
logger.info("Starting Plotting Service")
Copy link
Member

Choose a reason for hiding this comment

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

Lets import the already existent logger

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.

Refactor find_file from plotting-service to FIA-API including changing where DataViewer calls.
2 participants