-
Notifications
You must be signed in to change notification settings - Fork 10
Fix Docker runtime issues, add CI checks, and refactor eFP schemas #296
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
Open
rmobmina
wants to merge
20
commits into
BioAnalyticResource:dev
Choose a base branch
from
rmobmina:fix/refactor-efp-data-and-schemas
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix Docker runtime issues, add CI checks, and refactor eFP schemas #296
rmobmina
wants to merge
20
commits into
BioAnalyticResource:dev
from
rmobmina:fix/refactor-efp-data-and-schemas
+21,505
−401
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Replace manual REGEX with BARUtils validators for all species - Add descriptive error messages for each species (e.g., "Invalid Cannabis gene ID") - Add comprehensive Sphinx/reST docstrings to all ORM files - Improve validation logic to handle both AGI and probeset IDs correctly - Fix SQL injection vulnerability by validating schema identifiers - Add identifier validation (alphanumeric + underscore only) before SQL construction Security: Addresses CodeQL high-severity SQL injection alert by validating all database/table/column identifiers match safe pattern before use in queries
- Fix trailing whitespace and blank line issues in efp_proxy.py - Fix missing blank lines in microarray_gene_expression.py - Add noqa comments for E402 in test_efp_data.py (imports after sys.path modification) - Remove unused variable retry_url - Fix spacing after commas in long list - Fix indentation issues
- Fix syntax error in efp_data.py (incomplete regex pattern) - Refactor efp_data.py to use class-based static methods (EFPDataService) following the BARUtils pattern for consistency - Add backward compatibility wrappers for existing function imports - Simplify efp_schemas.py by grouping similar schemas: * Created _simple_schema() helper for 5-column schemas * Created _schema_with_qa_columns() helper for QA column schemas * Reduced code duplication while maintaining same functionality - All changes tested with Docker build and Python syntax checks
- Updated _schema_with_qa_columns to properly handle length for string types - Added file_name_len and call_len parameters with defaults - Fixed shoot_apex schema to specify lengths for string columns (16, 2) - Fixes KeyError: 'length' in efp_dynamic.py model generation
- Fixes bootstrap script MySQL connection in Docker - Bootstrap script now connects to BAR_mysqldb instead of localhost socket - API starts successfully and serves on port 5000
- Check HTTP status code before parsing JSON response - Return 502 Bad Gateway when external API fails or returns non-200 - Catch JSONDecodeError when external API returns invalid response - Fixes test failure when atted.jp API is down or returns 403
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.