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

Feature #318 test local infile #332

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Conversation

John-Sharples
Copy link

Changes

  • small refactor of how the database connection is setup in run_sql. This change allows "local_infile" setting to be configured from the XML load file. This is optional and should not impact existing functionality.

  • Bugfix in run_sql.py to select the correct column names

  • tests for the above

  • added some RHIST and PHIST data and extended tests to include this data

Pull Request Testing

  • Describe testing already performed for these changes:

    tested locally

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

    NA

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes or No]
    yes

  • Do these changes include sufficient testing updates? [Yes or No]
    yes

  • Will this PR result in changes to the test suite? [Yes or No]

    If yes, describe the new output and/or changes to the existing output:

    yes, more tests

  • Do these changes introduce new SonarQube findings? [Yes or No]

    If yes, please describe:

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

See the METplus Workflow for details.

  • Add any new Python packages to the METplus Components Python Requirements table.
  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s) and Development issue
    Select: Milestone as the version that will include these changes
    Select: Coordinated METplus-X.Y Support project for bugfix releases or METdataio-X.Y.Z Development project for official releases
  • After submitting the PR, select the ⚙️ icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

* small refactor to make "local_infile" configurable
from XML load file.

* fix apparent bugin run_sql  in when load_infile = false

* add test that same result loaded when  local_infile true/false

* add rhist data and test
@John-Sharples John-Sharples added this to the METdataio-3.0.0 milestone Sep 13, 2024
@John-Sharples John-Sharples linked an issue Sep 13, 2024 that may be closed by this pull request
23 tasks
Copy link
Collaborator

@bikegeek bikegeek left a comment

Choose a reason for hiding this comment

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

looks good

@bikegeek bikegeek merged commit 49f7d37 into develop Sep 13, 2024
15 checks passed
@bikegeek bikegeek deleted the feature_318_test_local_infile branch September 13, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏁 Done
Development

Successfully merging this pull request may close these issues.

Create additional tests to METdataio to increase code coverage
2 participants